Create abilities
How to create abilities
To create an item ability you can add a code to run for a specific action, for example: item.setLeftAction(core.createRunnable("<code>")) // The "<code>" will run when the player will left click with this item. You will also have another special variable for each action, the "event" variable is the event it self (used to cancel it, etc)
Here is the action list:
You can have multiple actions for one item.
Last updated