HyperScript 1.7.14
Items with a name of their own, crafting recipes, cooldowns you start yourself, fake blocks by the box, and a way to watch a script run line by line.
Added
Items you name once
item magic wand:at the left margin of a file, with one line under it that describes the item asgivetakes it. After thatmagic wandworks wherever an item is expected, in any script:give player magic wand,player is holding magic wand,slot 5 is magic wand.- Such an item is recognised by a hidden tag, so it is still the same item after a player renames it on an anvil.
on right click with <item>:andon left click with <item>:run only for players holding that item. Any item can be written there.
Recipes
recipe for <item>:adds a crafting recipe. Give it ashape:with a line for each letter, oringredients:when the arrangement does not matter. What it makes can be an item of your own.
Cooldowns by name
start cooldown "kit" of 1 hour,end cooldown "kit", the conditionplayer is on cooldown "kit", andcooldown "kit"for the time left. Addfor <who>orof <who>for another player. For waits thatcooldown:does not cover: one that starts only when the trigger succeeds, one shared by several commands, one on an item or a menu button.
Fake blocks
set fake blocks from <location> to <location> to <block>shows a whole box of them.clear fake blocks from <location> to <location>, andclear all fake blocksfor every one a player has been shown.
Regions
- The condition
player is in region "spawn".
Finding mistakes
/hyperscript debug <player>shows every line of every script as it runs for that player, with its file and line number./hyperscript debug offstops it.
Settings in one file
- With
options-file: trueinconfig.yml, theoptions:of every script are collected inplugins/HyperScript/options.yml, where they can be changed without opening a script. It is off unless you turn it on.
Website
- The playground can copy a link that carries the script, so a script can be sent to someone ready to check and run. The script is kept in the part of the address that is not sent to the website.
- The playground suggests what to write as you type; Ctrl+Space takes the first suggestion.
Changed
- An item with a hidden tag is now matched by that tag alone. Before,
is holdingandhasalso compared the display name, so a tagged item that a player had renamed was no longer recognised.