Items
This page explains how to define custom items in YAML format.
Example
compressed_coal:
type: coal
amount: 1
name: "&8Compressed Coal"
lore:
- "&7A dense chunk of coal, ready for use."
model-data: 1003
damage: 0
repair-cost: 10
flags:
- hide enchants
unbreakable: false
enchants:
smite: 1
attributes:
- knockback_resistance 0.2 operation=multiply slot=chest name=stabilityOptions
type
typeDescription: The base Minecraft material.
Example:
coal,diamond_sword,iron_ingot.
amount
amountDescription: Stack size of the item.
Default:
1
name
nameDescription: Custom display name. Supports Minecraft color codes (
&).Example:
&8Compressed Coal
lore
loreDescription: List of lore lines shown under the item name. Supports color codes.
Example:
model-data
model-dataDescription: Custom model data value for use with resource packs.
Example:
1003
damage
damageDescription: The item’s durability damage.
Default:
0
repair-cost
repair-costDescription: Repair cost in an anvil.
Example:
10
flags
flagsDescription: A list of ItemFlags 1.16.5-1.18.2, 1.19.4-1.21.4, 1.21.5+
Example:
unbreakable
unbreakableDescription: Whether the item is unbreakable.
Default:
false
enchants
enchantsDescription: A section of enchantments and their levels. 1.16.5-1.17.1, 1.18-1.18.2, 1.19-1.20.4, 1.20.5+
Example:
attributes
attributesDescription: List of custom attribute modifiers.
Format:
Operations:
Example: