Item Modifier
The unit that changes the display item.
The unit that changes the display item.
stone-button:
slot: 1
id: stone
name: "&cThis is a stone button"
lore:
- "This is just a stone button"
- "&uNothing special"
This modifier will set the material of the item.
material: <material>
id: <material>
mat: <material>
stone-button:
slot: 1
id: stone
player-head:
slot: 2
id:
- player_head
- skull_item:3
This modifier will set the display name of the item.
name: "<name>"
stone-button:
slot: 1
id: stone
name: "&cThis is a stone button"
This modifier will set the lore of the item.
lore: <lore>
lore:
- <lore>
- <lore>
- <lore>
...
stone-button:
slot: 1
id: stone
name: "&cThis is a stone button"
lore:
- "This is just a stone button"
- "&uNothing special"
This modifier will set the amount of the item.
amount: <amount>
stone-button:
slot: 1
id: stone
amount: 10
name: "&cThis is 10 stone buttons"
lore:
- "This is just 10 stone buttons"
- "&uNothing special"
This modifier will set the durability of the item.
durability: <durability>
damage: <durability>
durability-armor:
NAME: '&aDamaged armor'
LORE:
- 'This armor is damaged.'
ID: diamond helmet
DAMAGE: 100
POSITION-X: 1
POSITION-Y: 1
This modifier will add the enchants to the item.
enchantment:
- <enchantment>, [level]
- <enchantment>, [level]
- <enchantment>, [level]
...
enchant:
- <enchantment>, [level]
- <enchantment>, [level]
- <enchantment>, [level]
...
enc:
- <enchantment>, [level]
- <enchantment>, [level]
- <enchantment>, [level]
...
[level]
of the <enchantment>
. It’s optional.enchanted-sword:
NAME: '&aEnchanted sword'
LORE:
- 'This sword is glowing.'
ID: diamond_sword
ENCHANTMENT:
- "durability, 1"
POSITION-X: 1
POSITION-Y: 1
This modifier will add the flags to the item.
flag:
- <flag>
- <flag>
- <flag>
...
item-flags:
- <flag>
- <flag>
- <flag>
...
itemflag:
- <flag>
- <flag>
- <flag>
...
itemflags:
- <flag>
- <flag>
- <flag>
...
item-flag:
- <flag>
- <flag>
- <flag>
...
enchanted-sword-flag:
NAME: '&aEnchanted sword'
LORE:
- 'This sword is glowing. (literally)'
ID: diamond_sword
ENCHANTMENT:
- "durability, 1"
FLAG:
- HIDE_ENCHANTS
POSITION-X: 1
POSITION-Y: 1
This modifier will add the potion effects to the item.
potion:
- <potion>, [duration], [amplifier]
- <potion>, [duration], [amplifier]
- <potion>, [duration], [amplifier]
...
effect:
- <potion>, [duration], [amplifier]
- <potion>, [duration], [amplifier]
- <potion>, [duration], [amplifier]
...
[duration]
and [amplifier]
of the <potion>
effect. These are optional.potion:
position-x: 1
position-y: 1
name: "&bPotion"
id: potion
potion:
- "SPEED"
- "WEAKNESS, 30, 1"
This modifier will set the skull of the item.
skull: <skull>
head: <skull>
skull-owner: <skull-owner>
<skull>
accepts a player name, an UUID (unique id), a Base64 value, or a texture.minecraft.net
URLskull:
position-x: 1
position-y: 1
name: "&bSkull"
id: player_head
skull: "HSGamer"
#skull: "7acc67dc-8b84-4f8d-b7ad-ec81e758f5a1"
#skull: "http://textures.minecraft.net/texture/ffcdae586b52403b92b1857ee4331bac636af08bab92ba5750a54a83331a6353"
#skull: "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTM1ODNkNTNlOWNhZjE3MGUwNWI1MTYxN2E2N2QxMzEwZDJkODExYTUxNTg4NjI5ODZjMTVlMjg2NzhhNTA1ZiJ9fX0="
per-player-skull:
position-x: 2
position-y: 1
name: "&bPer Player Skulls"
id: player_head
skull: "{player}"
This modifier will apply the NBT data to the item.
This modifier will reset all item settings. Therefore, It’s recommended to order the settings in the following pattern: ID (Material)
, NBT
, other item settings
.
nbt: <nbt>
nbt-data: <nbt>
custom-model-chestplate:
id: leather_chestplate
nbt:
CustomModelData: 104230
#nbt: "{CustomModelData:104230}"
name: "&aCustom Model Chestplate"
lore:
- "This is a custom model chestplate"
position-x: 1
position-y: 1
colored-leather-chestplate:
id: leather_chestplate
nbt:
display:
color: 16175144
#nbt: "{display:{color:16175144}}"
name: "&aColored Leather Chestplate"
lore:
- "This is a colored leather chestplate"
position-x: 2
position-y: 1
In 1.20.5 and above, Mojang decided to replace NBT with their new Item Component.
To use Item Component, you can use its square-bracket format []
as the value to the modifier.
For example, for a typical /give
command like this:
/give @s leather_helmet[dyed_color={rgb:456345,show_in_tooltip:false}]
You can take this part [dyed_color={rgb:456345,show_in_tooltip:false}]
and use it in the modifier like this:
nbt: "[dyed_color={rgb:456345,show_in_tooltip:false}]"