-
Notifications
You must be signed in to change notification settings - Fork 0
Actions
timsixth edited this page Aug 7, 2023
·
16 revisions
Action executes when player click on item in inventory.
Library has two types of action.
The first simple action executes when player click on item in inventory.
This type has only two variables in YAML. (action_name and arguments).
The second action is a section action which must have extra section in YAML to work.
First type
click_action:
type: 'SEND_MESSAGE' #action name
args:
- '&aKOKOS' #arguments is always list
Second type
click_action:
type: 'GIVE_ITEMS' #action name
args:
- '' #arguments
items: #extra section
DIAMOND:
amount: 1