Components
An object used to store information and define certain behavior. Mostly used by items (and referred as "item components" or "item stack components") and partially implemented for block entities.
Info
See Minecraft Wiki: Data component format (List of components) for a list of component types used in items.
Examples
"components": {
"minecraft:custom_name": "{\"text\": \"Mysterious Item\", \"italic\": false}"
}
This example represents a component with the minecraft:custom_name component type, which defines the displayed name of an item.
"components": {
"minecraft:potion_contents": {
"potion": "minecraft:water"
},
"minecraft:rarity": "epic"
}
This example represents a component with the minecraft:potion_contents and the minecraft:rarity component types, which defines the applied potion effects (when an item is consumed) and the color of the name of an item.