This function changes the inventory title of the action.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
title | Allows MiniMessage format | Text | Yes | It's the title |
toAll | true or false | Boolean | No | If the title is changed only for the player who executes the action or for all players. |
setTitleInventory { title = text / toAll = true }
This function places an item in a slot of the current inventory or the one you enter as an argument.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
slot | 0 - max inventory slot | Number | Yes | It simply serves to know in which slot to place the item. |
item | all ItemStack or Adapter id | Java - ItemStack or Text | Yes | It is the item that is placed in the slot |
inventory | All Inventories | Java - Inventory | No | It is not necessary because by default it is the inventory that exists when the action is executed. |
SetItemInventory{ slot = 0 / inventory = $inventory$ / item = $item$ or mc:stone }
This function applies a stage, you must have it created to be able to apply it.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
stage | Id of Stage | Text | Yes | It is the config id of the stage |
page | 0- max pages | Number | No | Used to specify the page |
SetStage{stage = idStage / page = 0}
Place an item in storage in a specific slot and page
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
page | 0 - max pages | Number | No | The page on which the item will be placed in the default slot is the page on which the action is executed. |
slot | 0 - max slots | Number | Yes | The slot of the page in which the item is placed. |
item | all ItemStack or Adapter id | Java - ItemStack or Text | Yes | The item to be placed. This can be an ItemStack or an Adapter id. |
SetItemStorage{slot = 0 / page = 0 / item = $item$ or mc:stone }
Simply delete the item in the specified slot and page.
This function deletes the slot without taking into account if it is an interface item or if it is a protected slot
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
page | 0 - max pages | Number | No | The page in which the slot of the item to be deleted is located. |
slot | 0 - max slots | Number | Yes | The slot in which the item will be deleted |
ClearSlotPageStorage{slot = $slot$ / page = 0 }
Simply delete the item in the specified slot and page.
This function does check if you can delete the content.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
page | 0 - max pages | Number | No | The page in which the slot of the item to be deleted is located. |
slot | 0 - max slots | Number | Yes | The slot in which the item will be deleted |
ClearSlotPageStorageR{slot = $slot$ / page = 0 }
Simply delete the item in the specified slot and inventory.
Arg | Values | Type | Required | Usage |
---|---|---|---|---|
inventory | All Inventories | Java - Inventory | No | The inventory in which you delete in the specific slot if it is undeclared will be the inventory in which the action is executed. |
slot | 0 - max slots | Number | Yes | The slot in which the item will be deleted |
ClearSlotInventory{ slot = 1 / inventory = $inventory$ }