HyperScript 1.7.63
Quests, menus that take items, and events for redstone and machines.
Added
- Quests. A
quest "<name>":block is something to do a number of times, counted for each player and kept across restarts. The server counts blocks broken and placed and creatures killed;goal: do 3is one a script counts itself withadvance quest.
quest "miner":
goal: break 50 stone
reward:
give 5 diamond to player
command /quest:
trigger:
start quest "miner"
send "&eNew quest: mine 50 stone."
on quest complete "miner":
broadcast "&6%player.name% finished the Miner quest!"
With it come start quest, stop quest, advance quest, quest progress, quest goal, quest state, all quests and on quest complete.
- Menu slots that take items.
slot 14 takes items:is a slot a player can put an item into, from the cursor or by shift-clicking. The block under it runs with the item as{_item}: for selling, trading in and upgrading.
slot 14 takes items shown as "hopper" named "&ePut diamonds here":
if type of {_item} is "diamond":
add amount of {_item} * 10 to {%player%.coins}
else:
give {_item} to player
- Events for redstone and machines.
on redstone:(withevent.power),on piston extend:,on piston retract:,on dispense:andon hopper move:. cooldown of command "/kit": how long until a player may use a command again, for a menu or a scoreboard that shows it.yaml value "<key>" of file at "<path>"reads one value out of a YAML file, such as another plugin'sconfig.yml.