HyperScript 1.7.59
Commands that check more for you, events for one kind of thing, and two commands for trying and watching scripts from inside the game.
Added
- More kinds of argument. Next to
player,numberandinteger: <time:duration>takes30s,10m,2h; in the trigger it is that many seconds.<on:boolean>takes true, yes, on, false, no or off.<what:item>,<where:world>and<who:offline player>have to exist.<words:text>is everything to the end of the line, as one argument.<on|off>now has to be one of its words.
command /announce <words:text>:
trigger:
send "&6[!] &f%arg.1%" to all players
- Events for one kind of thing.
on block break of diamond ore:,on entity death of zombie:andon chat containing "help":. /hyperscript run <line>reads one line of script and runs it at once, as you: for trying something without writing a file./hyperscript watch {variable}tells you each time that variable is set, what it became and which line of which script ran last./hyperscript watch offstops.randomly:runs one of the blocks under it, by chance:
randomly:
70%:
give 1 bread to player
25%:
give 1 diamond to player
otherwise:
give 1 gold block to player
- Sorting by anything.
{_words} sorted by length of loop-value, lowest first, or withhighest firstbehind it. - A player's whole state.
save state of player as "before-arena"andrestore state of player from "before-arena": what they carry, health, food, experience, game mode and where they stand. random 3 of {list}: several different elements at once.- Text that fits.
<text> shortened to 16ends in…when it had to be cut, and<text> wrapped to 30gives lines of that length, for lore and signs. - A boss bar that counts down.
create bossbar ... for 30 seconds counting downempties as the time runs. - More words in French, Spanish, Portuguese and German:
randomly,any of,all of,sorted by,players only,containingand others.
Changed
<on|off>in a command's header was only what Tab offered; another word is now answered with the usage line and the trigger does not run.- Where a variable that was set for a time keeps its end is no longer listed by
/hyperscript variables. A time that was running when the server is updated from 1.7.58 no longer ends by itself; set it again.