Custom Mechanic
This mechanism allows you to realize an extremely customizable mechanism without programming
How does it work?
A comprehensive example
myitem:
Mechanics:
custom:
test:
one_usage: false
event: "CLICK:right:all"
conditions:
- '#player.hasPermission("example.permission")'
actions:
- "[console] give <player> cooked_beef 1"Available events
CLICK:click_type:target_type,
INV_CLICK:click_type:context_type
DROP, PICKUP, BREAK, EQUIP, UNEQUIP, INV_CLICK, DEATH, DROP_ALL
Available conditions
Permission-Condition
Available actions
Command-Action
Message-Action
ActionBar-Action
Sound-Action
Last updated