Item Data
Item Data is optional data used when giving items, quest rewards, or matching specific items in quest objectives.
Use it for custom names, lore, enchantments, components, NBT, and modded item data.
Minecraft 1.21.1 named item
[custom_name='{"text":"Bonk Stick","color":"red"}']
Minecraft 1.21.1 enchanted item
[custom_name='{"text":"Bonk Stick","color":"red"}',enchantments={levels:{"minecraft:knockback":2}}]
Minecraft 1.20.1 named item
{display:{Name:'{"text":"Bonk Stick","color":"red"}'}}
Item with data in target fields
Some quest target fields accept item data after a pipe:
minecraft:stick | [custom_name='{"text":"Viewer Stick","color":"gold"}']