Inventory Item
Creating a item
"0":
# The items material
material: GRASS_BLOCK
# Sets the material to PLAYER_HEAD
# Sets the skull owner to the player that opened the inventory
skull: "<player>"
# Used to set the display name of the item
name: "&6&lItem"
# Used to set the lore of the item
lore:
- "&7This is a line of lore"
- "&7This is the second line or lore"
# Used to set specific nbt values
nbt:
Key: "value"
# The durability of the item
# Defaults to full durability
durability: 100
# The amount of the item
# Defaults to 1
amount: 2
# The enchants applied to the item
enchants:
sharpness: 1
unbreaking: 3
# If you want the item to look enchanted
# This will apply unbreaking 1 and hide the enchants
enchanted: true
# The items flags
flags:
- HIDE_ENCHANTMENTS
- HIDE_ATTRIBUTES
- HIDE_UNBREAKABLE
- HIDE_CAN_DESTROY
- HIDE_CAN_PLACE_ON
- OTHER
commands:
# Executes these commands as a player.
# Only commands registered with the leaf plugin will work.
- "servers"
- "inventory_command"
# Some commands that have an inventory have
# options to add a special function.
# This was taken from the friend#list command.
function:
type: "player"