OVER 200 EVENTS • COMPLETELY CUSTOMIZE your server with custom EVENTS & ACTIONS!
handlers:
loop:
interval: 20 # number of ticks between when actions run (20 ticks = 1 second). default value is 20
actions:
-
action: setGlobal
name: "myprefix_*"
value: "{global.myprefix_* - 2}"
loop0: # add more loops by putting a number at the end of "loop"
interval: 100 # run every 100 ticks = 5 seconds
actions:
-
# ...
handlers:
EntityDamage:
actions:
- action: consoleRunCommands
if:
entityItemInHand: "DIAMOND_AXE"
commands:
- "say {entity.name} has a diamond axe!"
else:
action: consoleRunCommand
command: "say {entity.name} DOESN'T have a diamond axe!"
handlers:
BlockBreak:
actions:
-
if: "2 < 1"
then:
- action: playerSendMessages
messages:
- "first"
- "{player.health + 2 + block.x}"
else:
- action: playerSendMessages
message: "This is the else action"