HyperScript 1.7.44
Containers, the creatures around a place, and a handful of values.
Added
- More to do with a chest.
remove 5 diamond from chest at <location>takes items out,number of <item> in chest at <location>counts them, andchest slot <n> at <location>reads one slot, sets it, or empties it withdelete. - Where an opened container stands.
on inventory open:andon inventory close:now haveevent's location, so a chest can be locked in a few lines:
on inventory open:
if nbt "owner" of block at event's location is set:
if nbt "owner" of block at event's location is not player.name:
cancel event
- The creatures around a place.
entities within <n> blocks of <location>is a list of them, nearest first, andentities of zombie within ...the same for one kind.nearest player to <location>,nearest other player to player,nearest zombie to <location>andnearest entity to <location>.entities in region <name>.random location in region <name>: a place somewhere inside a region.horizontal distance between <a> and <b>: how far apart on the map, whatever the heights.time until schedule <name>: how long a namedschedulestill has; unset when nothing waits under that name, sois setsays whether one is pending.- Text:
<text> centered to <n>,words of <text>as a list, andbetween(text, before, after)for what stands between two pieces of a text. lerp(from, to, t): the number that far along from one to the other.
Changed
- The VS Code extension is 1.0.7 and knows the new syntax.
- Two addons have something new of their own: HyperHolograms 1.0.2 (a hologram that follows a player) and HyperPerms 1.1.2 (how long a time-limited group still lasts).