HyperScript 1.7.2
Version 1.7.2
Big change
Check your scripts before updating to 1.7.2
stop sound ...andstop all soundsare now statements.stopon a line of its own still ends the trigger.hologramsis a value (the list of hologram names), anditem cooldown of ...is no longer read as "item numbercooldownof a list".set item <n> of <list> to <value>used to be an error; it now changes the list.
Holograms, toasts, player heads, item cooldowns, eight more events and eight more ready-made scripts. Most of what 1.7.1 listed as left out is in this one.
Changed (check existing scripts)
stop sound ...andstop all soundsare now statements.stopon a line of its own still ends the trigger.hologramsis a value (the list of hologram names), anditem cooldown of ...is no longer read as "item numbercooldownof a list".set item <n> of <list> to <value>used to be an error; it now changes the list.
Added
Holograms
create hologram <name> at <location> with lines <text>, <text>puts floating text in the world. Creating one under a name that exists replaces it, which is also how to move it.set line <n> of hologram <name> to <text>rewrites one line; a line past the end is added.delete hologram <name>, andhologramsfor a list of their names.- Holograms are saved in the world and listed in
plugins/HyperScript/holograms.yml, so they are still there, and can still be changed, after a restart.
Toasts
send toast <text> [with icon <item>] [as task|goal|challenge] [to <who>]shows the pop-up in the top corner that advancements use, with the frame and sound of the kind chosen.
Players
give head of <name> to <who>: a player head with that player's skin.set item cooldown of <item> for <who> to <duration>greys an item out the way ender pearls are;item cooldown of <item> for <who>reads what is left.stop sound <name> [for <who>]andstop all sounds [for <who>].absorption of <who>(settable),protocol version of <who>(from ViaVersion if installed, otherwise Paper) andclient brand of <who>(Paper).<who> has not played before, the opposite ofhas played before.
Lists
set item <n> of <variable> to <value>replaces one element of a list.
Events
on player move:(only when the player ends up in another block),on portal use:,on bed leave:,on item damage:,on harvest:,on glide toggle:,on entity mount:andon entity dismount:.
Ready-made scripts (on the website's Scripts page, each # Requires: 1.7.2)
Bounties.hs:/bounty,/bounties; the killer takes the coins and the victim's head.Mail.hs:/mail send|read|clear, with a toast on joining when mail is waiting.Nicknames.hs:/nick,/realname; checked for length, letters and names already taken.Reports.hs:/reportfor players,/reportsfor staff, who are told at once.RandomTeleport.hs:/rtpto dry ground somewhere in the wild.Coinflip.hs: players bet coins against each other.Vanish.hs:/vanishfor staff, kept through a relog.Holograms.hs:/holo create|add|set|move|delete|list, with a live player count.
That makes 27 scripts.
Documented, not new
givehas always dropped at the player's feet whatever does not fit in the inventory. The Docs now say so; there is no separate "give or drop".- The fade times of a title are set where it is sent:
send title "..." with fadein 10 stay 60 fadeout 10.
Not included
- The name of a player's game version (
1.20.4):protocol version ofgives its number. - Player heads as values, for example in a menu slot: only
give head ofexists. - Holograms that show an item or follow a player.