Actions
Actions executed once you click the button
Example
'Close':
update: [-1, 5, -1, -1]
display:
material: Red Stained Glass Pane
name: ['&cC&7lose', '&cCl&7ose', '&cClo&7se', '&cClos&7e', '&cClose']
# actions section
actions:
# Click type (all of the supported ones)
all: close '*':
update: [-1, 5, 20, -1]
display: # ...
# Actions section
actions:
# Click type (left click)
left:
- 'set-meta: icon_server_hide true'
- 'sound: BLOCK_NOTE_BLOCK_BIT-1-0'
- 'refresh'Click types
Tips
You can easily combine multiple click types to execute the same actions
Note
Actions support multiple action types, the same as those in the Periodic Tasks and in the Menu Events. They will be listed and detailed later.
The
actionssection must be at the same level as thedisplaysectionBoth default button icons and conditionnal icons can have seperated actions.
Last updated
Was this helpful?