SlotsΒΆ
Slots have a number of components that can be assigned to them. Below is an example of a basic slot.
'0': #Index to be placed at, starting at 0
icon: "DIRT" #Icon for the slot
More complex example of a slot.
'0': #Index to be placed at, starting at 0
amount: 2 #2 of the item, default is 1
icon: "DIRT" #Icon for the slot
name: "&cDirt but red" #Name supports color codes
lore: #Lore for the item
- "&cThere is dirt in this slot"
- "&fLore can also have multiple lines!"
functions: #Functions to run on click
- "broadcast: &fThis is a simple test"
Example of using fail functions.
'0': #Index to be placed at, starting at 0
icon: "DIRT" #Icon for the slot
functions: #Functions to run on click
- "pay: 1000"
pay-failfunctions: #Didn't have 1000 to pay
- "pmsg: You do not have enough money"