ItemWrapper
Name | Type | Description | Optional | Default |
---|---|---|---|---|
material | Material | The material | No | N/A |
amount | int | The amount | Yes | 1 |
name | String | The name, can have colors | Yes | Client-side |
lore | List<String> | The lore, can have colors | Yes | None |
enchants | Map<Enchantment, Integer> | The enchantments with their levels | Yes | None |
flags | ItemFlag | The flags | Yes | None |
unbreakable | boolean | Whether the item should be unbreakable | Yes | false |
glowing | boolean | Whether the item should glow as if it was enchanted | Yes | false |
customModelData | int | The custom model data | Yes | None |
attributeModifiers | Multimap<Attribute, AttributeModifier> | The attribute modifiers | Yes | None |
persistentData | Map<String, Object> | The persistent data | Yes | None |
{
"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"
}
}