HyperScript 1.7.15
What minigames and boss fights are made of: inventories that are put away and given back, creatures with health and equipment of their own, areas that are copied and put back, and texts in each player's language.
Added
Inventories
save inventory of player as "before-arena"puts away everything a player carries, armour and off hand included.restore inventory of player from "before-arena"gives it back, anddelete saved inventory "before-arena"throws the copy away.- The condition
player has saved inventory "before-arena". - Saved inventories are kept with the other data, so they survive a restart.
Creatures of your own
summontakes details after the position:with health 200,with speed 1.5,with damage 12,holding <item>,wearing <item>, <item>,dropping <item>, <item>, andglowing,silent,baby.- What a creature holds and wears does not fall when it dies;
droppingsays what does.
Drops
- In
on entity death::set drops to <item>, <item>,add <item> to drops,clear drops. %event.drops%now also works inon entity death:.
Shooting
shoot arrow from player, withwith speed 2if wanted. Works with arrows, snowballs, eggs, fireballs, ender pearls, tridents and the like.
Copying areas
copy blocks from <location> to <location> as "name", orcopy region "arena" as "name".paste "name"puts the blocks back where they came from;paste "name" at <location>puts them somewhere else.delete copy "name"forgets a copy.- A copy holds up to 250,000 blocks. What is inside chests and written on signs is not kept.
Chance
random item of <list> weighted by <list>picks unevenly, for crates and loot.
Recipes
smelting recipe for <item>:adds a furnace recipe, withfrom:, andtime:andexperience:if wanted.
Languages
- A
messages:block holds a script's texts once for each language, andmessage "welcome"gives the one in the player's own. A language or text that is missing falls back on the first language in the block.