Skip to main content

ItemWrapper

NameTypeDescriptionOptionalDefault
materialMaterialThe materialNoN/A
amountintThe amountYes1
nameStringThe name, can have colorsYesClient-side
loreList<String>The lore, can have colorsYesNone
enchantsMap<Enchantment, Integer>The enchantments with their levelsYesNone
flagsItemFlagThe flagsYesNone
unbreakablebooleanWhether the item should be unbreakableYesfalse
glowingbooleanWhether the item should glow as if it was enchantedYesfalse
customModelDataintThe custom model dataYesNone
attributeModifiersMultimap<Attribute, AttributeModifier>The attribute modifiersYesNone
persistentDataMap<String, Object>The persistent dataYesNone
{
"material": "DIAMOND_SWORD",
"name": "%gold%Excalibur",
"lore": ["%gold%A legendary sword!"],
"enchants": {
"minecraft:sharpness": 5,
"minecraft:knockback": 2
},
"flags": ["HIDE_UNBREAKABLE"],
"unbreakable": true,
"attributeModifiers": {
"GENERIC_MAX_HEALTH": [
{
"name": "generic_max_health",
"amount": 10
}
]
},
"persistentData": {
"id": "EXCALIBUR"
}
}