Skip to content

Actions

timsixth edited this page Aug 7, 2023 · 16 revisions

What are actions ?

Action executes when player click on item in inventory.
Library has to 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
Clone this wiki locally