HyperScript 1.5.8
Added
Players
healandfeed, and values that can be read and set:health of player,max health of player,food of player,level of player,gamemode of player,flight of player. The numeric ones work withaddandsubtract.- Potion effects:
apply speed 2 to player for 30 seconds,clear effects of player,clear speed effect of player, and the conditionplayer has effect speed. ignite/extinguish,freeze/unfreeze(held in place, can still look around) andvanish/unvanish(hidden from everyone else), with the conditionsis frozen,is vanishedandis flying.
Events
- Eleven more:
on block place:,on sign change:,on player teleport:,on entity click:,on craft:,on consume:,on fish:,on level up:,on bed enter:, andon region enter:/on region leave:for the regions made withcreate region. - New values:
%event.region%,%event.lines%,%event.clicked%,%event.level%and%event.old_level%.block,item,entityandcausework in the new events too.
GUIs
- Pages. A gui knows its page:
gui page,page <n> of <list> with <k> per page,pages of <list> with <k> per page, and in a click blocknext page,previous pageandset gui page to <n>. refresh guidraws the gui again after a click changed what it shows.- Turning a page or refreshing happens in the same window; it does not close and reopen.
Top lists
top 10 players by {coins}gives the names of the players with the most, including those who are offline, andrank of player by {coins}gives one player's place.
Items
tagged "wand"puts a hidden label on an item that players cannot see or fake, and<item> is tagged "wand"recognises it.hasandremove ... fromrespect tags.model 12sets an item's custom model number, for resource packs.
Timers
- Times of day:
every day at 18:00:andevery monday at 00:00:(any weekday), by the server's clock.
Files
- Subfolders. Scripts can be sorted into folders inside
scripts/. Every.hsfile under it is loaded and hot-reloaded, and is named by its path:/hyperscript check minigames/spleef.hs.
Changed
event's locationnow also answers inside player events that had no location before, such ason player command:, where it is where the player is standing.- Local variables changed inside an
open guiblock no longer change them for the lines after the block. The block runs on its own copy so that it can be run again for another page.
Documentation website
- Four more scripts on the Scripts page:
Spawn.hs(a spawn with a protected area),StaffTools.hs(/heal,/feed,/fly,/gm,/vanish,/freeze),Warps.hs(warps with a paged menu and a navigator compass) andPlaytime.hs(time played, top lists, and a weekly winner).