HyperScript 1.7.45
A batch of small things: new conditions, the block under somebody's feet, sounds for whoever is near, and a block that runs by chance.
Added
- Conditions
<who> is riding, andvehicle of <who>for what they sit on or in.<who> is looking at <target>, where the target is a location or somebody: true when their crosshair is on it, give or take a few degrees.<who> is in biome <name>; a location works in place of a player.<number> is even,is oddandis divisible by <n>.- Each takes
not:player is not riding. block below <who>andblock above <who>: the kind of block under somebody's feet or over their head.block undermeans the same asblock below, and a location works in place of a player.
on player jump:
if block below player is "slime_block":
push player upward with force 2
play sound <name> for players within <n> blocks of <location>plays a sound to everybody that close, each hearing it beside them.chance of <n>%:as a block of its own. Its lines run about that often; it isif chance of <n>%:without theif.
on block break:
chance of 10%:
give player 1 emerald
give <item> to <who> or drop. Giving has always dropped what does not fit at the player's feet;or dropmay now be written to say so.
Changed
- The docs say how syntax is written.
<name>stands for a value, something in square brackets such as[or drop]may be left out, and round brackets with a slash such as(below/above)mean one of those words. The new entries are written that way. - The VS Code extension is 1.0.8 and knows the new syntax.