Item example
Example 1
Example 1
items:
item:
material: DIRT
display_name: "&7Example"
lore:
- "&aExample lore"
data: 2
slots:
- 1
- 2
click_commands:
- "[console] minecraft:give diamond 1"
Example 2
Example 1
items:
item2:
material: DIAMOND_BLOCK
display_name: "&7Example with permission"
lore:
- "&aExample lore"
slot: 1
click_commands:
- "if"
- " [require(permission;tmpanels.gamemode)]"
- "do"
- " [console] gamemode creative %player_name%"
- " [message] &aYou are now in &ccreative&a."
- "else"
- " [message] &cYou don't have permission!"
- "end"
Item buy example (money)
items:
item2:
material: DIAMOND_BLOCK
display_name: "&7Diamond Block"
lore:
- "&aClick to buy for 100$"
slot: 1
click_commands:
- "[buy(money)] 100"
- "[console] gamemode creative %player_name%"
- "[message] &aYou are now in &ccreative&a."
Last updated