HyperScript 1.7.57
/hyperscript update asks before it updates addons and shows how far every download is, and loops and everyday lines got shorter to write.
Added
/hyperscript updateasks about addons. It fetches a newer HyperScript as before. If addons that are installed have a newer version too, it lists them and asks whether to update them as well;/hyperscript update addonsis the yes, and a player can click the line./hyperscript update allfetches everything without asking.- Download progress everywhere. Updating HyperScript, updating addons,
/hyperscript addon installand/hyperscript update scriptsnow show how far each download is, by name: to a player on the action bar as a bar that fills, to the console at every quarter. Installing a script already did. - Loops over some players only.
loop all players with permission "staff":,in world "arena":,within 20 blocks of player:, orwhere <condition>:withloop-playeras each player in turn. The same afterall playersanywhere:
send "&d[Staff] %player.name%: &f%arg.1%" to all players with permission "staff.chat"
loop <list> where <condition>:goes through the elements the condition holds for.- Loops over the world.
blocks within <n> blocks of <location>andblocks from <location> to <location>give the location of every block there, anditems in inventory of <who>what a player carries, so:
loop blocks within 3 blocks of player:
if block at loop-value is "fire":
set block at loop-value to air
loop entities within 10 blocks of player: works the same way.
else:under a loop runs when the loop never went round: an empty list, nobody online.
loop {%player%.homes}:
send "&7- &f%loop-value%"
else:
send "&7You have no homes."
- One-line checks.
stop if {_coins} < 100,continue if loop-player is player.name,break unless ..., andstop with "&cNot enough coins." if {_coins} < 100, which tells the player why first. case 1 to 5:in aswitch: every number from the one to the other, also in a list with other values (case 1 to 5, 10:).after 5 seconds:runs the block under it later, while the lines below carry on at once.multiply {x} by 2anddivide {x} by 2, next toaddandsubtract.plural(5, "coin")gives5 coins, and1 coinfor 1; a third value is the word for many where ansis not it:plural(2, "wolf", "wolves").wait between 1 and 3 seconds: a pause of another length every time.
Changed
loop {list}:over a list that was never set goes round no times, asfor eachdoes, where 1.7.56 refused it.plural,multiply,divideandafterare words of the language now, so a function of your own cannot have one of these names.