{{About|the new format introduced in [[Java Edition 1.20.5]]|the legacy format|Item format|the format of item components in Bedrock Edition|Item components}} {{redirect|Component|the text format|Raw JSON text format}} {{exclusive|java}} {{TOC|right}} '''Data components''', or simply '''components''', are structured data used to define and store various properties. They are used on [[item]]s, where they are referred as '''item components''' or '''item stack components''', and [[block entities]], partially replacing [[NBT format]]. Data components are used in various places, including the [[Player.dat format|player's inventory]], container [[Chunk format#Block entity format|block entities]] and [[structure file]]s. Data components are [[Resource location|namespaced identifiers]], and can be of different data types, [[#List of components|listed here]]. == Usage == === Command format === Data component can be used in the [[Argument types#minecraft:item_stack|item_stack]] and [[Argument types#minecraft:item_predicate|item_predicate]] argument types. In commands that take an item_stack argument, such as {{cmd|give}}, items are represented in the format ''item_id''[''component1''=''value'',''component2''=''value''], with ''component'' being the [[namespaced ID]], the namespace defaulting to minecraft, as usual, and the ''value'' being the value of the component in [[NBT format#SNBT format|SNBT format]]. Components can be removed by prefixing them with an exclamation mark, like item_id[!''component3'']. If no components are specified, the square brackets can be removed, leaving just the item ID. See [[Argument types#minecraft:item_stack|item_stack]] for details. In commands that take an item_predicate argument, such as {{cmd|clear}}, items are represented in the format ''item_type''[''tests''], with ''tests'' can be tests of data components or an [[item sub-predicate]]. See [[Argument types#minecraft:item_predicate|item_predicate]] for details. === Item format === Items are stored in the [[NBT format]]. Sometimes a {{nbt|byte|Slot}} tag is used to specify the slot the item is in, such as with chests; other times there is no {{nbt|byte|Slot}} tag, such as with dropped items. Item types hold a set of default components on an item, that individual item stacks can override. Default components are not saved on individual item stacks.
{{:Item format/Item|components=the [[#List of components|list of components below]]}}
=== Block entity format === {{Main|Block entity format}} Block entities are stored in the [[NBT format]]. While they still use NBT for their specific properties, they keep the data components defined on the block item when placed.
* {{nbt|compound}} The root tag. {{:Chunk format/BlockEntity|components=the [[#List of components|list of components below]]}}** Additional tags depending on the block entity ID. See [[Block entity format]].
== List of components == === attribute_modifiers ===
* {{nbt|compound|components}}: Parent tag. {{/attribute modifiers}}
''Example:'' {{cmd|give @s stick[attribute_modifiers{{=}}[{type:"minecraft:scale",slot:"hand",id:"example:grow",amount:4,operation:"add_multiplied_base"}]]}} * Gives a stick that causes the player to grow 4x when holding it. === banner_patterns ===
* {{nbt|compound|components}}: Parent tag. {{/banner patterns}}
''Example:'' {{cmd|/give @s black_banner[banner_patterns{{=}}[{pattern:"triangle_top",color:"red"},{pattern:"cross",color:"white"}]]}} * Gives a black banner with a red triangle and white cross pattern. === base_color ===
* {{nbt|compound|components}}: Parent tag. {{/base color}}
''Example:'' {{cmd|give @s shield[base_color{{=}}"lime"]}} * Gives a lime shield. === bees ===
* {{nbt|compound|components}}: Parent tag. {{/bees}}
''Example:'' {{cmd|give @s bee_nest[bees{{=}}[{entity_data:{id:"bee",CustomName:'"Maya"'},min_ticks_in_hive:60,ticks_in_hive:0}]]}} * Gives a bee nest containing a single bee named ''Maya'', which exits the bee nest in 3 seconds. === block_entity_data ===
* {{nbt|compound|components}}: Parent tag. {{/block entity data}}
''Example:'' {{cmd|give @s spawner[block_entity_data{{=}}{id:"spawner",SpawnData:{entity:{id:"spider"}}}]}} * Gives a spider spawner. Placing this spawner requires the player to have [[Permission level|operator permissions]]. === block_state ===
* {{nbt|compound|components}}: Parent tag. {{/block state}}
''Example:'' {{cmd|give @s bamboo_slab[block_state{{=}}{type:"top"}]}} * Gives a bamboo slab that is always placed in the top half of the block. === bucket_entity_data ===
* {{nbt|compound|components}}: Parent tag. {{/bucket entity data}}
''Example:'' {{cmd|give @s tropical_fish_bucket[bucket_entity_data{{=}}{BucketVariantTag:117506305}]}} * Gives a bucket of tropical fish that always has the [[Tropical Fish#Names|Anemone]] type. === bundle_contents ===
* {{nbt|compound|components}}: Parent tag. {{/bundle contents}}
''Example:'' {{cmd|give @s bundle[bundle_contents{{=}}[{id:"diamond",count:2}]]}} * Gives a bundle containing exactly 2 diamonds. === can_break ===
* {{nbt|compound|components}}: Parent tag. {{/can break}}
''Example:'' {{cmd|give @s netherite_pickaxe[can_break{{=}}{blocks:['black_concrete','coal_ore','iron_ore','gold_ore','diamond_ore','emerald_ore']}]}} * Gives a netherite pickaxe that can only mine some ores. === can_place_on ===
* {{nbt|compound|components}}: Parent tag. {{/can place on}}
''Example:'' {{cmd|give @s target[can_place_on{{=}}{blocks:'sandstone'}]}} * Gives a target block that can only be placed on sandstone. === charged_projectiles ===
* {{nbt|compound|components}}: Parent tag. {{/charged projectiles}}
''Example:'' {{cmd|give @s crossbow[charged_projectiles{{=}}[{id:"spectral_arrow"}]]}} * Gives a crossbow that is already charged with a spectral arrow. Note: Adding an invalid projectile or item id charges an arrow that, when collected, grants the wrong item. Ex: wind_charge causes it to fire an arrow that grants a wind charge when collected. === consumable ===
* {{nbt|compound|components}}: Parent tag. {{/consumable}}
''Example:'' {{cmd|/give @s gold_ingot[consumable{{=}}{consume_seconds:3.0, animation:'eat', sound:'entity.generic.eat', has_consume_particles:true, on_consume_effects:[{type:'minecraft:clear_all_effects'}]}]}} * Gives a gold ingot which can be eaten in 3 seconds and upon consuming, clears all effects. === container ===
* {{nbt|compound|components}}: Parent tag. {{/container}}
''Example:'' {{cmd|give @s barrel[container{{=}}[{slot:0,item:{id:apple}}]]}} * Gives a barrel with an apple in the first slot. === container_loot ===
* {{nbt|compound|components}}: Parent tag. {{/container loot}}
''Example:'' {{cmd|give @s chest[container_loot{{=}}{loot_table:"chests/desert_pyramid"}]}} * Gives a chest that contains the desert pyramid loot when opened. === custom_data ===
* {{nbt|compound|components}}: Parent tag. {{/custom data}}
''Example:'' {{cmd|give @s iron_sword[custom_data{{=}}{foo:1}]}} * Gives an iron sword with custom data {foo:1}. === custom_model_data === {{wip|section=1|Explain more how it works}}
* {{nbt|compound|components}}: Parent tag. {{/custom model data}}
''Example:'' : {{cmd|give @s bone[custom_model_data{{=}}{floats:[4.0, 5.6, 99.1],strings:["foo:bar"]}]}} * Gives a bone with custom model data. === custom_name ===
* {{nbt|compound|components}}: Parent tag. {{/custom name}}
''Example:'' {{cmd|give @s stick[custom_name{{=}}'{"text":"Magic Wand","color":"light_purple","italic":false}']}} * Gives a stick named "Magic Wand" in light purple non-italicized text. === damage ===
* {{nbt|compound|components}}: Parent tag. {{/damage}}
''Example:'' {{cmd|give @s diamond_axe[damage{{=}}500]}} * Gives a diamond axe with 500 points of damage. === damage_resistant ===
* {{nbt|compound|components}}: Parent tag. {{/damage_resistant}}
=== debug_stick_state ===
* {{nbt|compound|components}}: Parent tag. {{/debug stick state}}
''Example:'' {{cmd|give @s debug_stick[debug_stick_state{{=}}{"minecraft:oak_fence": "west", "minecraft:candle": "lit"}]}} * Gives a debug stick with the [[oak fence]] block state property set to west and the [[candle]] block state property set to lit. === death_protection ===
* {{nbt|compound|components}}: Parent tag. {{/death_protection}}
''Example:'' {{cmd|/give @s nether_star[death_protection{{=}}{death_effects:[{type:'minecraft:clear_all_effects'}]}]}} * Gives a nether star which protects the holder from death and when did so, removes all status effects from the holder. === dyed_color ===
* {{nbt|compound|components}}: Parent tag. {{/dyed color}}
''Example:'' {{cmd|give @s leather_helmet[dyed_color{{=}}{rgb:456345,show_in_tooltip:false}]}} * Gives a blueish-green leather helmet that does not display ''Dyed'' in the tooltip. {{Calculator|decimalColor}} === enchantable ===
* {{nbt|compound|components}}: Parent tag. {{/enchantable}}
''Example:'' {{cmd|/give @s elytra[enchantable{{=}}{value:15}]}} * Gives an elytra that can be enchanted in an enchanting table with an enchantment value of 15. === enchantment_glint_override ===
* {{nbt|compound|components}}: Parent tag. {{/enchantment glint override}}
''Example:'' {{cmd|give @s experience_bottle[enchantment_glint_override{{=}}false]}} * Gives an experience bottle without the visual enchantment glint, which is otherwise applied by default. === enchantments ===
* {{nbt|compound|components}}: Parent tag. {{/enchantments}}
''Example:'' {{cmd|give @s wooden_sword[enchantments{{=}}{sharpness:3,knockback:2}]}} * Gives a wooden sword with sharpness III and knockback II. ''Note'': This component adds active enchantments and should not be confused with the [[Data component format#stored enchantments|{{cd|minecraft:stored_enchantments}}]] component, which is used to add inactive enchantments, such as with [[Enchanted Book|enchanted books]]. To illustrate the difference, hitting an entity with an {{cd|enchanted_book[enchantments{{=}}{knockback:2}]}} would knock any entity hit per knockback II while hitting an entity with an {{cd|enchanted_book[stored_enchantments{{=}}{knockback:2}]}} would not. Furthermore the latter would be able to add knockback II to an enchantable item in an anvil, while the former would not. === entity_data ===
* {{nbt|compound|components}}: Parent tag. {{/entity data}}
''Example:'' {{cmd|give @s armor_stand[entity_data{{=}}{id:"armor_stand",Small:1b}]}} * Gives an armor stand that is small when placed down. === equippable ===
* {{nbt|compound|components}}: Parent tag. {{/equippable}}
''Example:'' {{cmd|/give @s glass[equippable{{=}}{slot:"head",equip_sound:"block.glass.break",dispensable:true}]}} * Gives a glass block that can be equipped in the helmet slot. === firework_explosion ===
* {{nbt|compound|components}}: Parent tag. {{/firework explosion}}
=== fireworks ===
* {{nbt|compound|components}}: Parent tag. {{/fireworks}}
=== food ===
* {{nbt|compound|components}}: Parent tag. {{/food}}
''Example 1:'' {{cmd|give @s melon_slice[food{{=}}{nutrition:3,saturation:1,can_always_eat:true}]}} * Gives a melon slice which can be eaten at any time and restores 3 food points and 1 saturation. ''Example 2:'' {{cmd|give @s minecraft:sponge[consumable{{=}}{consume_seconds:2.4},food{{=}}{nutrition:5,saturation:5,can_always_eat:true}]}} * Gives a sponge which can be eaten at any time, takes 2.4 seconds to consume, and restores 5 food points and 5 saturation. === glider ===
* {{nbt|compound|components}}: Parent tag. {{/glider}}
''Example:'' {{cmd|/give @s nether_star[equippable{{=}}{slot:"head"},glider{{=}}{}]}} * Gives a nether star that can be equipped in the head slot and if on the head, allows the player to glide. === hide_additional_tooltip ===
* {{nbt|compound|components}}: Parent tag. {{/hide_additional_tooltip}}
''Example:'' {{cmd|give @s ominous_bottle[hide_additional_tooltip{{=}}{}]}} * Gives an ominous bottle without the additional tooltip (the ''status effect'' is now hidden under the name). === hide_tooltip ===
* {{nbt|compound|components}}: Parent tag. {{/hide tooltip}}
''Example:'' {{cmd|give @p dirt[hide_tooltip{{=}}{}]}} * Gives a dirt block with no tooltip whatsoever. === instrument ===
* {{nbt|compound|components}}: Parent tag. {{/instrument}}
''Example:'' {{cmd|give @s goat_horn[instrument{{=}}"feel_goat_horn"]}} * Gives a [[goat horn]] that plays the ''Feel'' sound. === intangible_projectile ===
* {{nbt|compound|components}}: Parent tag. {{/intangible projectile}}
''Example:'' {{cmd|1=give @s arrow[intangible_projectile={}]}} * Gives an arrow that cannot be picked up by the player === item_model ===
* {{nbt|compound|components}}: Parent tag. {{/item_model}}
''Example:'' {{cmd|/give @s netherite_sword[item_model{{=}}"minecraft:diamond_sword"]}} * Gives a netherite sword that looks like a diamond sword. === item_name ===
* {{nbt|compound|components}}: Parent tag. {{/item name}}
=== jukebox_playable ===
* {{nbt|compound|components}}: Parent tag. {{/jukebox_playable}}
''Example:'' {{cmd|1=give @s diamond[minecraft:jukebox_playable={song:"pigstep"}]}} * Gives a diamond that plays Pigstep when inserted into a jukebox === lock ===
* {{nbt|compound|components}}: Parent tag. {{/lock}}
''Example:'' {{cmd|give @p chest[minecraft:lock{{=}}{components:{"minecraft:item_model":"minecraft:diamond"}}]}} * Gives a chest that is locked, opening only if the player is holding an item with the same model as a Diamond. ''Example:'' {{cmd|give @p furnace[minecraft:lock{{=}}{components:{"minecraft:custom_name":"'Furnace Key'"}}]}} * Gives a furnace that opens only if the player is holding an item with the custom name "Furnace Key". ''Example:'' {{cmd|give @p barrel[minecraft:lock{{=}}{items:["minecraft:oak_planks","minecraft:diamond"],count:6,predicates:{custom_data:{bar:foo}}}]}} * Gives a barrel that opens only if the player is holding exactly 6 [[Planks#Oak|oak planks]] or 6 [[diamond]]s that has the custom data {{cd|bar:foo}} === lodestone_tracker ===
* {{nbt|compound|components}}: Parent tag. {{/lodestone tracker}}
''Example:'' {{cmd|1=give @s compass[minecraft:lodestone_tracker={target:{pos:[I;1,2,3],dimension:"overworld"}}]}} * Gives a compass that points towards a lodestone that is located in the Overworld at x=1,y=2,z=3 === lore ===
* {{nbt|compound|components}}: Parent tag. {{/lore}}
''Example:'' {{cmd|give @p stick[lore{{=}}['{text:"This Stick is very sticky."}']]}} * Gives a stick with lore in its tooltip. ''Example:'' {{cmd|give @p diamond[lore{{=}}['{text:"A shiny Diamond!",italic:false,color:gold}']]}} * Gives a diamond that has lore in its tooltip. The color of the lore is gold, and its italics have been removed. ''Example:'' {{cmd|give @p emerald[lore{{=}}['{text:"A shiny Emerald!",italic:false,color:gold}','{text:"Maybe share it with a friend?",italic:false,color:yellow}']]}} * Gives an emerald that has 2 lines of lore in its tooltip. The first line has a golden color, and the second has a yellow color. Both lines have had their italics removed. === map_color ===
* {{nbt|compound|components}}: Parent tag. {{/map color}}
''Example:'' {{cmd|give @s filled_map[map_color{{=}}16711680]}} * Gives a filled map with red markings on item texture. {{Calculator|decimalColor}} === map_decorations ===
* {{nbt|compound|components}}: Parent tag. {{/map decorations}}
=== map_id ===
* {{nbt|compound|components}}: Parent tag. {{/map id}}
=== max_damage ===
* {{nbt|compound|components}}: Parent tag. {{/max damage}}
''Example:'' {{cmd|give @s diamond_pickaxe[max_damage{{=}}4]}} * Gives a diamond pickaxe that can only be used 4 times before breaking. === max_stack_size ===
* {{nbt|compound|components}}: Parent tag. {{/max stack size}}
''Example:'' {{cmd|give @s acacia_boat[max_stack_size{{=}}64] 5}} * Gives a stack of 5 acacia boats all in a single slot. === note_block_sound ===
* {{nbt|compound|components}}: Parent tag. {{/note block sound}}
''Example:'' {{cmd|give @p minecraft:player_head[minecraft:profile{{=}}minecraftWiki,minecraft:note_block_sound{{=}}entity.item.pickup]}} * Gives a Player Head of the minecraftWiki. If placed on a Note Block, the Note Block plays the "Item Pickup" sound every time it's activated. === ominous_bottle_amplifier ===
* {{nbt|compound|components}}: Parent tag. {{/ominous bottle amplifier}}
=== pot_decorations ===
* {{nbt|compound|components}}: Parent tag. {{/pot decorations}}
''Example:'' {{cmd|1=give @s decorated_pot[pot_decorations=["skull_pottery_sherd","heart_pottery_sherd","blade_pottery_sherd","brick"]] }} * Gives a [[decorated pot]] with sherds: skull, heart and blade on its faces === potion_contents ===
* {{nbt|compound|components}}: Parent tag. {{/potion contents}}
{{Calculator|decimalColor}} === profile ===
* {{nbt|compound|components}}: Parent tag. {{/profile}}
''Example:'' {{cmd|give @p player_head[profile{{=}}MinecraftWiki]}} * Gives a player head of MinecraftWiki. {{Calculator|playerUuid}} === rarity ===
* {{nbt|compound|components}}: Parent tag. {{/rarity}}
''Example:'' {{cmd|give @p iron_sword[rarity{{=}}epic]}} * Gives an iron sword with a purple name. === recipes ===
* {{nbt|compound|components}}: Parent tag. {{/recipes}}
''Example:'' {{cmd|give @p knowledge_book[recipes{{=}}["minecraft:end_crystal","minecraft:diamond","minecraft:stone_sword","minecraft:blast_furnace"]]}} * Gives a Knowledge Book which, when used, gives the player the recipes listed inside the component. === repairable ===
* {{nbt|compound|components}}: Parent tag. {{/repairable}}
''Example:'' {{cmd|/give @s diamond_sword[repairable{{=}}{items:"stick"}]}} * Gives a diamond sword that can be repaired with sticks in an anvil. === repair_cost ===
* {{nbt|compound|components}}: Parent tag. {{/repair cost}}
=== stored_enchantments ===
* {{nbt|compound|components}}: Parent tag. {{/stored enchantments}}
=== suspicious_stew_effects ===
* {{nbt|compound|components}}: Parent tag. {{/suspicious stew effects}}
=== tool ===
* {{nbt|compound|components}}: Parent tag. {{/tool}}
''Example:'' {{cmd|give @s oak_fence[max_stack_size{{=}}1,max_damage{{=}}350,damage{{=}}0,tool{{=}}{default_mining_speed:1.5,damage_per_block:2,rules:[{blocks:"#mineable/pickaxe",speed:6,correct_for_drops:true}]}] 1}} * Gives an [[oak fence]] that has the properties of a [[pickaxe]]. === tooltip_style ===
* {{nbt|compound|components}}: Parent tag. {{/tooltip_style}}
=== trim ===
* {{nbt|compound|components}}: Parent tag. {{/trim}}
=== unbreakable ===
* {{nbt|compound|components}}: Parent tag. {{/unbreakable}}
=== use_cooldown ===
* {{nbt|compound|components}}: Parent tag. {{/use_cooldown}}
''Example:'' {{cmd|/give @s ender_pearl[use_cooldown{{=}}{seconds:10,cooldown_group:"foo:bar"}]}} * Gives an ender pearl that has a 10 second cooldown after being used, and also applies that cooldown to ''any'' item that shares its cooldown_group. ** If other items in the inventory share the same cooldown_group, but have different seconds, then using that item applies the seconds of ''itself'' to all other items in the inventory, rather than each item applying their own seconds to themselves. * Items can have their cooldowns disabled completely by removing the component with [!use_cooldown]. === use_remainder ===
* {{nbt|compound|components}}: Parent tag. {{/use_remainder}}
''Example:'' {{cmd|/give @s splash_potion[use_remainder{{=}}{id:"minecraft:gunpowder"}]}} * Gives a splash potion, which after being thrown, leaves gunpowder. ''Example:'' {{cmd|/give @s cooked_chicken[use_remainder{{=}}{id:"minecraft:bone",components:{custom_name:'{text:"Chicken Bone"}'},count:2}]}} * Gives a cooked chicken, which after being used, turns into 2 bones named "Chicken Bone". === writable_book_content ===
* {{nbt|compound|components}}: Parent tag. {{/writable book content}}
=== written_book_content ===
* {{nbt|compound|components}}: Parent tag. {{/written book content}}
== Non-encoded components == Two other data components exist and are used by the game internally, but are not encoded on items. Therefore, they cannot be used in commands, nor seen with {{cmd|data}}. === creative_slot_lock ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:creative_slot_lock}}: Only used internally to lock the informational [[paper]] items in the [[creative inventory]]. If set, this item cannot be taken out of its slot.
=== map_post_processing ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|int|minecraft:map_post_processing}}: Only used internally when this [[filled map]] has been duplicated or locked in a [[crafting table]] or a [[cartography table]]. Can be 0 (lock) or 1 (scale), adding the "Locked" line or "Scale" line in this item's tooltip, respectively.
== Temporary components == The following components were added and used in the [[April Fools' Day jokes|April Fools' Day joke]] snapshot [[24w14potato]] in 2024. {{Collapse|title=List of the components|head=1}} === clicks ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|int|minecraft:clicks}}: The number of times this [[poisonous potato plant]] has been clicked in the inventory.
=== contacts_messages ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|long-array|minecraft:contacts_messages}}: Used by the [[poisonous potato plant]].
=== explicit_foil ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|boolean|minecraft:explicit_foil}}: Whether or not this item should display a glint.
=== fletching ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:fletching}}: Information about this [[fletching table]]. *** {{nbt|string|quality}}: A single character defining the quality of this block. *** {{nbt|string|impurities}}: A single character defining the impurity of this block. *** {{nbt|string|next_level_impurities}}: A single character defining the impurity of the next level of this block. *** {{nbt|short|processs_time}}: The process time of this block, in ticks. *** {{nbt|boolean|explored}}: Whether this block has been explored.
=== heat ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:heat}}: Information about this [[hot potato]]. *** {{nbt|int|heat}}: The amount of heat. Has a maximum value of 200. *** {{nbt|int|slot}}: The inventory slot this item is in. *** {{nbt|int-array|owner}}: The UUID of the entity currently holding this item.
=== hovered ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|boolean|minecraft:hovered}}: Whether or not this [[poisonous potato plant]] is the last item stack hovered in the inventory.
=== lubrication ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:lubrication}} *** {{nbt|int|level}}: The level of slipperiness this item has when thrown on the ground.
=== potato_bane ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:potato_bane}}: Used by the [[potato peeler]]. *** {{nbt|float|damage_boost}}: The amount of bonus damage applied to potato mobs.
=== resin ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:resin}}: Information about this [[toxic resin]]. *** {{nbt|string|quality}}: A single character defining the quality of this item. Used to prefix the "Clarity" line on the tooltip. *** {{nbt|string|impurities}}: A single character defining the impurity of this item. Used to prefix the "Impurities" line on the tooltip.
=== secret_message ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|long|minecraft:secret_message}}: Used by the [[poisonous potato plant]].
=== snek ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|compound|minecraft:snek}}: Information about this [[snektato]]. *** {{nbt|boolean|revealed}}: Whether or not this item has been eaten yet. When {{cd|true}}, its name is "Venomous Potato" and its texture is different.
=== undercover_id ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|int|minecraft:undercover_id}}: Used by the [[poisonous potato plant]].
=== views ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|int|minecraft:views}}: Used by the [[poisonous potato plant]].
=== xp ===
* {{nbt|compound|components}}: Parent tag. ** {{nbt|int|minecraft:xp}}: The amount of experience points granted by this [[potato of knowledge]].
{{Collapse|tail=1}} == History == {{HistoryTable |{{HistoryLine|java}} |{{HistoryLine||1.20.5|dev=24w09a|Replaced {{nbt|compound|tag}} tag and all underlying item-specific tags with data components. |Replaced {{nbt|byte|Count}} with {{nbt|int|count}}.}} |{{HistoryLine|||dev=24w10a|Renamed {{cd|lodestone_target}} component to {{cd|lodestone_tracker}}, and moved {{nbt|int-array|pos}} and {{nbt|string|dimension}} fields to {{nbt|compound|target}}. |{{cd|d=and|profile|dyed_color|attribute_modifiers|potion_contents|enchantments|stored_enchantments}} components can now optionally be defined in simpler formats. |{{cd|lore}} and {{cd|fireworks}} components now allow up to 256 entries in their list. |{{cd|container}} component now applies to all [[container]]s, instead of only [[shulker box]]es. |{{nbt|string|name}} is no longer required in {{cd|profile}} component.}} |{{HistoryLine|||dev=24w12a|Added {{cd|d=and|food|max_stack_size|max_damage|fire_resistant|rarity|tool|hide_tooltip}} components. |The old {...} item format has been removed, and can no longer be used as a shortcut for {{cd|custom_data}} component.}} |{{HistoryLine|||dev=24w13a|Added {{cd|d=and|item_name|ominous_bottle_amplifier}} components. |Components with non-default values on block items are now stored on block entities when placed.}} |{{HistoryLine|||dev=24w14a|Renamed {{nbt|string|text}} to {{nbt|string|raw}} in {{cd|d=and|writable_book_content|written_book_content}} components.}} |{{HistoryLine|||dev=Pre-Release 1|Renamed {{nbt|float|saturation_modifier}} to {{nbt|float|saturation}} in {{cd|food}} component. |{{cd|d=and|max_damage|max_stack_size}} components can no longer be put together.}} |{{HistoryLine||1.21|dev=24w19a|{{cd|custom_data}} component can now be defined as a SNBT string. |Added {{nbt|compound|using_converts_to}} in {{cd|food}} component.}} |{{HistoryLine|||dev=24w21a|Added {{cd|jukebox_playable}} component. |Changed {{cd|attribute_modifiers}} component: removed {{nbt|string|name}} and {{nbt|int-array|uuid}} fields, added {{nbt|string|id}} field.}} |{{HistoryLine||1.21.2|dev=24w33a|Added repairable and enchantable components. |The title specified in the written_book_content component is now prioritized over custom_name and item_name for any item with a non-empty title in this component.}} |{{HistoryLine|||dev=24w34a|Added consumable, use_cooldown and use_remainder components. |The food component has been changed to become a data container which only holds the food stats applied when the item is consumed. The component no longer gives the item the ability to be consumed. Removed the {{nbt|float|eat_seconds}}, {{nbt|compound|using_converts_to}} and {{nbt|list|effects}} fields from food.}} |{{HistoryLine|||dev=24w36a|Added equippable, item_model, glider and tooltip_style components. |The item_name component is now always present on every item.}} |{{HistoryLine|||dev=24w37a|Added death_protection component. |Renamed fire_resistant component to damage_resistant, and added {{nbt|string|types}} field. |The name provided by the item_name component now always has the lowest priority. |Added {{nbt|string|custom_name}} in potion_contents component. |Added {{nbt|boolean|swappable}} and {{nbt|boolean|damage_on_hurt}} in equippable component.}} |{{HistoryLine|||dev=Pre-Release 1|Added {{nbt|string|camera_overlay}} in equippable component.}} |{{HistoryLine||1.21.4|dev=24w45a|{{cd|minecraft:custom_model_data}} now has more fields to accomodate new uses by various model property getters: {{cd|floats}}, {{cd|flags}}, {{cd|strings}} and {{cd|colors}}.}} }} == References == {{reflist}} == Navigation == {{Navbox Java Edition technical|general}} [[Category:Development]] [[de:Gegenstandsdaten]] [[fr:Format de composant de données]] [[ja:アイテムフォーマット]] [[pt:Formato de componente de dado]] [[uk:Формат компонента даних]] [[zh:物品堆叠组件]]