Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data components

Generated from the 26.2 decompile by tools/gen_reference.py. Do not edit by hand.

Every DataComponentType registered in DataComponents. Persistent components have a Codec and are written to disk; synced ones have a StreamCodec and are sent to the client; cache-encoded ones use the shared EncoderCache. A type that is neither persistent nor synced is transient and lives only in memory. See Data components.

111 components

idvalue typepersistentsynced
custom_data (DataComponents.CUSTOM_DATA)CustomDatayes
max_stack_size (DataComponents.MAX_STACK_SIZE)Integeryesyes
max_damage (DataComponents.MAX_DAMAGE)Integeryesyes
damage (DataComponents.DAMAGE)Integeryesyes
unbreakable (DataComponents.UNBREAKABLE)Unityesyes
use_effects (DataComponents.USE_EFFECTS)UseEffectsyesyes
custom_name (DataComponents.CUSTOM_NAME)Componentyes (cached)yes
minimum_attack_charge (DataComponents.MINIMUM_ATTACK_CHARGE)Floatyesyes
damage_type (DataComponents.DAMAGE_TYPE)Holder<…>yesyes
item_name (DataComponents.ITEM_NAME)Componentyes (cached)yes
item_model (DataComponents.ITEM_MODEL)Identifieryes (cached)yes
lore (DataComponents.LORE)ItemLoreyes (cached)yes
rarity (DataComponents.RARITY)Rarityyesyes
enchantments (DataComponents.ENCHANTMENTS)ItemEnchantmentsyes (cached)yes
can_place_on (DataComponents.CAN_PLACE_ON)AdventureModePredicateyes (cached)yes
can_break (DataComponents.CAN_BREAK)AdventureModePredicateyes (cached)yes
attribute_modifiers (DataComponents.ATTRIBUTE_MODIFIERS)ItemAttributeModifiersyes (cached)yes
custom_model_data (DataComponents.CUSTOM_MODEL_DATA)CustomModelDatayesyes
tooltip_display (DataComponents.TOOLTIP_DISPLAY)TooltipDisplayyes (cached)yes
repair_cost (DataComponents.REPAIR_COST)Integeryesyes
creative_slot_lock (DataComponents.CREATIVE_SLOT_LOCK)Unityes
enchantment_glint_override (DataComponents.ENCHANTMENT_GLINT_OVERRIDE)Booleanyesyes
intangible_projectile (DataComponents.INTANGIBLE_PROJECTILE)Unityes
food (DataComponents.FOOD)FoodPropertiesyes (cached)yes
consumable (DataComponents.CONSUMABLE)Consumableyes (cached)yes
use_remainder (DataComponents.USE_REMAINDER)UseRemainderyes (cached)yes
use_cooldown (DataComponents.USE_COOLDOWN)UseCooldownyes (cached)yes
damage_resistant (DataComponents.DAMAGE_RESISTANT)DamageResistantyes (cached)yes
tool (DataComponents.TOOL)Toolyes (cached)yes
weapon (DataComponents.WEAPON)Weaponyes (cached)yes
attack_range (DataComponents.ATTACK_RANGE)AttackRangeyes (cached)yes
enchantable (DataComponents.ENCHANTABLE)Enchantableyes (cached)yes
equippable (DataComponents.EQUIPPABLE)Equippableyes (cached)yes
repairable (DataComponents.REPAIRABLE)Repairableyes (cached)yes
glider (DataComponents.GLIDER)Unityesyes
tooltip_style (DataComponents.TOOLTIP_STYLE)Identifieryes (cached)yes
death_protection (DataComponents.DEATH_PROTECTION)DeathProtectionyes (cached)yes
blocks_attacks (DataComponents.BLOCKS_ATTACKS)BlocksAttacksyes (cached)yes
piercing_weapon (DataComponents.PIERCING_WEAPON)PiercingWeaponyes (cached)yes
kinetic_weapon (DataComponents.KINETIC_WEAPON)KineticWeaponyes (cached)yes
swing_animation (DataComponents.SWING_ANIMATION)SwingAnimationyesyes
additional_trade_cost (DataComponents.ADDITIONAL_TRADE_COST)Integeryes
stored_enchantments (DataComponents.STORED_ENCHANTMENTS)ItemEnchantmentsyes (cached)yes
dye (DataComponents.DYE)DyeColoryesyes
dyed_color (DataComponents.DYED_COLOR)DyedItemColoryesyes
map_color (DataComponents.MAP_COLOR)MapItemColoryesyes
map_id (DataComponents.MAP_ID)MapIdyesyes
map_decorations (DataComponents.MAP_DECORATIONS)MapDecorationsyes (cached)
map_post_processing (DataComponents.MAP_POST_PROCESSING)MapPostProcessingyes
charged_projectiles (DataComponents.CHARGED_PROJECTILES)ChargedProjectilesyes (cached)yes
bundle_contents (DataComponents.BUNDLE_CONTENTS)BundleContentsyes (cached)yes
potion_contents (DataComponents.POTION_CONTENTS)PotionContentsyes (cached)yes
potion_duration_scale (DataComponents.POTION_DURATION_SCALE)Floatyes (cached)yes
suspicious_stew_effects (DataComponents.SUSPICIOUS_STEW_EFFECTS)SuspiciousStewEffectsyes (cached)yes
writable_book_content (DataComponents.WRITABLE_BOOK_CONTENT)WritableBookContentyes (cached)yes
written_book_content (DataComponents.WRITTEN_BOOK_CONTENT)WrittenBookContentyes (cached)yes
trim (DataComponents.TRIM)ArmorTrimyes (cached)yes
debug_stick_state (DataComponents.DEBUG_STICK_STATE)DebugStickStateyes (cached)
entity_data (DataComponents.ENTITY_DATA)TypedEntityData<…>yesyes
bucket_entity_data (DataComponents.BUCKET_ENTITY_DATA)CustomDatayesyes
block_entity_data (DataComponents.BLOCK_ENTITY_DATA)TypedEntityData<…>yesyes
instrument (DataComponents.INSTRUMENT)InstrumentComponentyes (cached)yes
provides_trim_material (DataComponents.PROVIDES_TRIM_MATERIAL)Holder<…>yes (cached)yes
ominous_bottle_amplifier (DataComponents.OMINOUS_BOTTLE_AMPLIFIER)OminousBottleAmplifieryesyes
jukebox_playable (DataComponents.JUKEBOX_PLAYABLE)JukeboxPlayableyesyes
provides_banner_patterns (DataComponents.PROVIDES_BANNER_PATTERNS)HolderSet<…>yes (cached)yes
recipes (DataComponents.RECIPES)List<…>yes (cached)
lodestone_tracker (DataComponents.LODESTONE_TRACKER)LodestoneTrackeryes (cached)yes
firework_explosion (DataComponents.FIREWORK_EXPLOSION)FireworkExplosionyes (cached)yes
fireworks (DataComponents.FIREWORKS)Fireworksyes (cached)yes
profile (DataComponents.PROFILE)ResolvableProfileyes (cached)yes
note_block_sound (DataComponents.NOTE_BLOCK_SOUND)Identifieryesyes
banner_patterns (DataComponents.BANNER_PATTERNS)BannerPatternLayersyes (cached)yes
base_color (DataComponents.BASE_COLOR)DyeColoryesyes
pot_decorations (DataComponents.POT_DECORATIONS)PotDecorationsyes (cached)yes
container (DataComponents.CONTAINER)ItemContainerContentsyes (cached)yes
block_state (DataComponents.BLOCK_STATE)BlockItemStatePropertiesyes (cached)yes
bees (DataComponents.BEES)Beesyes (cached)yes
sulfur_cube_content (DataComponents.SULFUR_CUBE_CONTENT)SulfurCubeContentyes (cached)yes
lock (DataComponents.LOCK)LockCodeyes
container_loot (DataComponents.CONTAINER_LOOT)SeededContainerLootyes
break_sound (DataComponents.BREAK_SOUND)Holder<…>yes (cached)yes
villager/variant (DataComponents.VILLAGER_VARIANT)Holder<…>yesyes
wolf/variant (DataComponents.WOLF_VARIANT)Holder<…>yesyes
wolf/sound_variant (DataComponents.WOLF_SOUND_VARIANT)Holder<…>yesyes
wolf/collar (DataComponents.WOLF_COLLAR)DyeColoryesyes
fox/variant (DataComponents.FOX_VARIANT)Fox.Variantyesyes
salmon/size (DataComponents.SALMON_SIZE)Salmon.Variantyesyes
parrot/variant (DataComponents.PARROT_VARIANT)Parrot.Variantyesyes
tropical_fish/pattern (DataComponents.TROPICAL_FISH_PATTERN)TropicalFish.Patternyesyes
tropical_fish/base_color (DataComponents.TROPICAL_FISH_BASE_COLOR)DyeColoryesyes
tropical_fish/pattern_color (DataComponents.TROPICAL_FISH_PATTERN_COLOR)DyeColoryesyes
mooshroom/variant (DataComponents.MOOSHROOM_VARIANT)MushroomCow.Variantyesyes
rabbit/variant (DataComponents.RABBIT_VARIANT)Rabbit.Variantyesyes
pig/variant (DataComponents.PIG_VARIANT)Holder<…>yesyes
pig/sound_variant (DataComponents.PIG_SOUND_VARIANT)Holder<…>yesyes
cow/variant (DataComponents.COW_VARIANT)Holder<…>yesyes
cow/sound_variant (DataComponents.COW_SOUND_VARIANT)Holder<…>yesyes
chicken/variant (DataComponents.CHICKEN_VARIANT)Holder<…>yesyes
chicken/sound_variant (DataComponents.CHICKEN_SOUND_VARIANT)Holder<…>yesyes
zombie_nautilus/variant (DataComponents.ZOMBIE_NAUTILUS_VARIANT)Holder<…>yesyes
frog/variant (DataComponents.FROG_VARIANT)Holder<…>yesyes
horse/variant (DataComponents.HORSE_VARIANT)Variantyesyes
painting/variant (DataComponents.PAINTING_VARIANT)Holder<…>yesyes
llama/variant (DataComponents.LLAMA_VARIANT)Llama.Variantyesyes
axolotl/variant (DataComponents.AXOLOTL_VARIANT)Axolotl.Variantyesyes
cat/variant (DataComponents.CAT_VARIANT)Holder<…>yesyes
cat/sound_variant (DataComponents.CAT_SOUND_VARIANT)Holder<…>yesyes
cat/collar (DataComponents.CAT_COLLAR)DyeColoryesyes
sheep/color (DataComponents.SHEEP_COLOR)DyeColoryesyes
shulker/color (DataComponents.SHULKER_COLOR)DyeColoryesyes