Entity format
Entities are stored in the entities folder of respective dimension folders. It is stored like Minecraft Anvil format files, which are named in the form r.x.z.mca.
Directory structure
Entity inheritance
Abstract classes
- Entity:
Area Effect Cloud
End Crystal
Evoker Fangs
Experience Orb
Eye of Ender
Falling Block Entity
Interaction
Item Entity
Marker
Primed TNT
Display
- Hanging Entity
- Living Entity
Armor Stand- Mob
Ender Dragon- Ambient Creature
- Flying Mob
- Pathfinder Mob
Allay- Abstract Golem
- Ageable Mob
- Abstract Villager
- Animal
- Monster
- Water Animal
Dolphin- Abstract Fish
Pufferfish
Tadpole- Abstract Schooling Fish
Squid
Slime
Player
- Server Player
- Abstract Client Player
- Local Player
- Remote Player
Firework Rocket Entity
Fishing Hook
Llama Spit
Shulker Bullet- Abstract Arrow
- Abstract Hurting Projectile
Dragon Fireball
Wither Skull Entity- Abstract Wind Charge
- Fireball
- Throwable Projectile
- Throwable Item Projectile
- Abstract Minecart
Minecart
Minecart Command Block
Minecart Furnace
Minecart Spawner
Minecart TNT- Abstract Minecart Container
Boat
Interfaces
- Bucketable
Axolotl- Abstract Fish
Pufferfish
Tadpole- Abstract Schooling Fish
Chest Boat- Abstract Horse
Camel
Horse
Skeleton Horse
Zombie Horse- Abstract Chested Horse
Eye of Ender
Firework Rocket Entity- Abstract Wind Charge
- Fireball
- Throwable Item Projectile
- Player Rideable Jumping
- Abstract Horse
Camel
Horse
Skeleton Horse
Zombie Horse- Abstract Chested Horse
- Abstract Horse
Drowned
Illusioner
Snow Golem
Witch
Wither- Abstract Skeleton
- Crossbow Attack Mob
Llama
Camel
Horse
Skeleton Horse
Zombie Horse- Abstract Chested Horse
NBT structure
Every entity is an unnamed [NBT Compound / JSON Object] compound contained in the Entities list of a chunk file. The sole exception is the Player entity, stored in level.dat, or in <player>.dat files on servers.
- [NBT Compound / JSON Object] The root tag.
- [Int] DataVersion: Version of the chunk data.
- [Int Array] Position: Position of this chunk.
- [Int]: X coordinate.
- [Int]: Z coordinate.
- [NBT List / JSON Array] Entities: All the entities. Each compound in this list defines an entity in this chunk.
- [NBT Compound / JSON Object]: An entity. See #Entity format below.
Entity format
All entities are with the following structure:
- [NBT Compound / JSON Object] Entity data
- [Short] Air: How much air the entity has, in game ticks. Decreases when unable to breathe (except suffocating in a block). Increases when it can breathe. [Short] Air being
<= -20game ticks (while still unable to breathe) on a given game tick causes the entity to immediately lose 1 health to drowning damage. This resets [Short] Air to 0 game ticks. Most mobs can have a maximum of 300 game ticks (15 seconds) of [Short] Air, while dolphins can reach up to 4800 game ticks (240 seconds), and axolotls have 6000 game ticks (300 seconds). - [NBT Compound / JSON Object][NBT List / JSON Array][String] CustomName: The custom name text component of this entity. Appears in player death messages and villager trading interfaces, as well as above the entity when the player's cursor is over it. May be empty or not exist.
- [Boolean] CustomNameVisible:
1or0(true/false) - iftrue, and this entity has a custom name, the name always appears above the entity, regardless of where the cursor points. If the entity does not have a custom name, a default name is shown. May not exist. - [NBT Compound / JSON Object] data: Any custom data. Used to store data the
custom_dataentity component which can be checked by predicates. - [Double] fall_distance: Distance the entity has fallen. Larger values cause more damage when the entity lands.
- [Short] Fire: Number of game ticks until the fire is put out. Negative values reflect how long the entity can stand in fire before burning. Default to -20 when not on fire.
- [Boolean] Glowing:
1or0(true/false) - iftrue, the entity has a glowing outline. - [Boolean] HasVisualFire:
1or0(true/false) - iftrue, the entity visually appears on fire, even if it is not actually on fire. - [String] id: String representation of the entity's ID. Does not exist for the Player entity.
- [Boolean] Invulnerable:
1or0(true/false) - iftrue, the entity should not take damage. This applies to living and nonliving entities alike: mobs should not take damage from any source (including potion effects), and cannot be moved by fishing rods, attacks, explosions, or projectiles, and objects such as vehicles and item frames cannot be destroyed unless their supports are removed. Invulnerable player entities are also ignored by any hostile mobs. Note that these entities can be damaged by players in Creative mode. - [NBT List / JSON Array] Motion: List of 3 [Double] doubles describing the current
dX,dY, anddZvelocity of the entity in meters per game tick. Only allows between 10.0 and -10.0 (inclusive), else resets to 0. - [Boolean] NoGravity:
1or0(true/false) - iftrue, the entity does not fall down naturally. Set totrueby striders in lava. - [Boolean] OnGround:
1or0(true/false) - iftrue, the entity is touching the ground. - [NBT List / JSON Array] Passengers: The data of the entities that are riding this entity.
- [NBT Compound / JSON Object]: The same as this format (recursive). Note that each passenger entity, and the ridden entity (the vehicle) have equal control of the movement of the ridden entity. The topmost entity controls spawning conditions when the vehicle entity is created by a mob spawner.
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags unique to this passenger entity.
- [NBT Compound / JSON Object]: The same as this format (recursive). Note that each passenger entity, and the ridden entity (the vehicle) have equal control of the movement of the ridden entity. The topmost entity controls spawning conditions when the vehicle entity is created by a mob spawner.
- [Int] PortalCooldown: The number of game ticks before which the entity may be teleported back through a nether portal. Initially starts at 300 game ticks (15 seconds) after teleportation and counts down to 0.
- [NBT List / JSON Array] Pos: List of 3 [Double] doubles describing the current X, Y, and Z position (coordinates) of the entity.
- [NBT List / JSON Array] Rotation: List of 2 floats representing the rotation of the entity's facing direction, in degrees. Facing direction can also be described as a looking direction, for most entity's that have heads.
- [Float] 0: The yaw of the entity's orientation. Yaw is the rotation around the Y axis (called yaw). Values vary from -180 degrees to +180 degrees, rather than from 0 to 360. As the entity turns to the right, this value goes up, and as the entity turns left, this value does down. See table of specific values here: Chunk format/Entity/Rotation (yaw).
- [Float] 1: The pitch of the entity's orientation. Pitch is the offset from the horizon. Pitch = 0 means the direction is horizontal. A positive pitch (pitch > 0) means the entity is facing downward to some degree, or that the facing direction is facing below the horizon (toward the ground). A negative pitch (pitch > 0) means the entity is facing above the horizon (toward higher ground of the sky). Pitch is always between -90 and +90 degrees, where pitch = -90 means facing directly down, and pitch = +90 means facing directly up.
- [Boolean] Silent:
1or0(true/false) - iftrue, this entity is silenced. May not exist. - [NBT List / JSON Array] Tags: List of scoreboard tags of this entity. It is not preserved if it is removed.
- [Int] TicksFrozen: Optional. How many game ticks the entity has been freezing. Although this tag is defined for all entities, it is actually only used by mobs that are not in the
freeze_immune_entity_typesentity type tag. Increases while in powder snow, even partially, up to a maximum of 300 game ticks (15 seconds), and decreases at double speed while not in powder snow. - [Int Array] UUID: This entity's Universally Unique IDentifier. The 128-bit UUID is stored as four 32-bit integers ([Int] Ints), ordered from most to least significant.
- [Short] Air: How much air the entity has, in game ticks. Decreases when unable to breathe (except suffocating in a block). Increases when it can breathe. [Short] Air being
Mobs
Mobs are a subclass of Living Entity with additional tags to store their health, attacking/damaged state, potion effects, and more depending on the mob. Players and armor stands are a subclass of living entities.
- [NBT Compound / JSON Object] Mob data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Float] AbsorptionAmount: number of extra health added by Absorption effect.
- [NBT List / JSON Array] active_effects: The list of potion effects on this mob. May not exist.
- [NBT Compound / JSON Object] A potion effect
- [Boolean] ambient: 1 or 0 (
true/false) - iftrue, this effect is provided by a Beacon and therefore should be less intrusive on screen. - [Byte] amplifier: The potion effect level. 0 is level 1.
- [Int] duration: The number of game ticks before the effect wears off. -1 when infinite.
- [NBT Compound / JSON Object] hidden_effect: Lower amplifier effect of the same type, this replaces the above effect when it expires. (The duration of the effect still decreases in here too)
- [String] id: The effect name.
- [Boolean] show_icon: 1 or 0 (
true/false) - iftrue, effect icon is shown; iffalse, no icon is shown. - [Boolean] show_particles: 1 or 0 (
true/false) - iftrue, particles are shown (affected byambient); iffalse, no particles are shown.
- [Boolean] ambient: 1 or 0 (
- [NBT Compound / JSON Object] A potion effect
- [NBT List / JSON Array] attributes: A list of Attributes for this mob. These are used for many purposes in internal calculations, and can be considered a mob's "statistics". Valid attributes for a given mob are listed in the main article.
- [NBT Compound / JSON Object] An individual attribute.
- [String] id: The name of this attribute.
- [Double] base: The base value of this attribute.
- [NBT List / JSON Array] modifiers: A list of Modifiers acting on this attribute. Modifiers alter the base value in internal calculations, without changing the original copy. Note that a modifier never modifies base to be higher than its maximum or lower than its minimum for a given attribute.
- [NBT Compound / JSON Object] An individual modifier.
- [Double] amount: The amount by which this modifier modifies the base value in calculations.
- [String] id: A Resource location unique to this modifier. Used to identify the modifier so that the correct modifier can be added or removed.
- [String] operation:
add_value,add_multiplied_base,add_multiplied_total. Defines the operation this modifier executes on the attribute's base value.add_value: IncrementXbyAmount.add_multiplied_base: IncrementYbyX*Amount.add_multiplied_total: SetY = Y * (1 + Amount)(equivalent to IncrementYbyY * Amount).
- The specified modifiers are applied to the attribute, probably whenever the attribute is modified. To compute the effective value of the attribute, the game:
- Sets
X = Base. - Executes all add_value modifiers.
- Sets
Y = X. - Executes all add_multiplied_base modifiers.
- Executes all add_multiplied_total modifiers.
- The value Y is the final effective value of the attribute.
- Sets
- [NBT Compound / JSON Object] An individual modifier.
- [NBT Compound / JSON Object] An individual attribute.
- [NBT Compound / JSON Object] Brain: Everything this entity has to keep in mind.
- [NBT Compound / JSON Object] memories: Used for complex behaviors. The only mobs that have this tag are described below.
Piglin memories:
- [NBT Compound / JSON Object] minecraft:admiring_disabled: Piglins with this tag do not barter by right-clicking and are not distracted by gold items on the ground; set when converting, when attacked or when admiring an item.
- [Boolean] value: 1 or 0 (
true/false) - iftrue, admiring is disabled. - [Long] ttl: The number of game ticks before this memory is removed.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:admiring_item: If the piglin is admiring an item.
- [Boolean] value: 1 or 0 (
true/false) - iftrue, admiring an item. - [Long] ttl: The number of game ticks before this memory is removed, the piglin throws back another item when this reaches 0, if it held a gold ingot.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:angry_at: The target of this piglin. Set after a piglin or piglin brute is attacked.
- [Int Array] value: Universally Unique IDentifier of the entity that the piglin targets, stored as four ints.
- [Long] ttl: The number of game ticks before this memory is removed.
- [NBT Compound / JSON Object] minecraft:hunted_recently: If the piglin just hunted, and as such, don't hunt for a while. Set after hunting or spawning in a bastion remnant.
- [Boolean] value: 1 or 0 (
true/false) - iftrue, the piglin just hunted and cannot hunt. - [Long] ttl: The number of game ticks before this memory is removed.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:universal_anger: If the piglin is being universally angered. Only set when universal anger gamerule is enabled.
- [Boolean] value: 1 or 0 (
true/false) - iftrue, universally angered. - [Long] ttl: The number of game ticks before this memory is removed.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:admiring_disabled: Piglins with this tag do not barter by right-clicking and are not distracted by gold items on the ground; set when converting, when attacked or when admiring an item.
Piglin Brute memories:
- [NBT Compound / JSON Object] minecraft:angry_at: The target of this piglin brute. Set after a piglin or piglin brute is attacked.
- [Int Array] value: Universally Unique IDentifier of the entity that the piglin targets, stored as four ints.
- [Long] ttl: The number of game ticks before this memory is removed.
- [NBT Compound / JSON Object] minecraft:home: Where the piglin brute's patrol point is. Set after spawning in a bastion remnant.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the bed or of the patrol point.
- [Int Array] pos: The X, Y, and Z coordinates of the bed or the patrol point
- [NBT Compound / JSON Object] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:angry_at: The target of this piglin brute. Set after a piglin or piglin brute is attacked.
Warden memories:
- [NBT Compound / JSON Object] minecraft:is_emerging: Exists if the warden is emerging.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:dig_cooldown: The warden doesn't dig down if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 1200 game ticks (60 seconds).
- [NBT Compound / JSON Object] minecraft:is_sniffing: Exists if the warden is sniffing.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:recent_projectile: Exists if the warden was stimulated by a projectile recently.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 100 game ticks (5 seconds).
- [NBT Compound / JSON Object] minecraft:roar_sound_cooldown: The warden doesn't roar if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 60 game ticks (3 seconds).
- [NBT Compound / JSON Object] minecraft:roar_sound_delay: The warden doesn't roar if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 25 game ticks (1.25 seconds).
- [NBT Compound / JSON Object] minecraft:touch_cooldown: The warden doesn't increase anger at an entity by touching it if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 20 game ticks (1 second).
- [NBT Compound / JSON Object] minecraft:vibration_cooldown: The warden doesn't listen for vibrations if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 40 game ticks (2 seconds).
- [NBT Compound / JSON Object] minecraft:is_emerging: Exists if the warden is emerging.
Camel memories:
- [NBT Compound / JSON Object] minecraft:gaze_cooldown_ticks: Optional. If the camel is in a cool down for randomly looking around.
- [Int] value: The number of game ticks before the camel can randomly look around again and this tag is removed.
- [NBT Compound / JSON Object] minecraft:gaze_cooldown_ticks: Optional. If the camel is in a cool down for randomly looking around.
Axolotl memories:
- [NBT Compound / JSON Object] minecraft:has_hunting_cooldown: If the axolotl is in a hunting cooldown .
- [Boolean] value: 1 or 0 (
true/false) - iftrue, the axolotl just hunted. - [Long] ttl: The number of game ticks before this memory is removed.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:play_dead_ticks: Optional. If the axolotl is pretending to be dead.
- [Int] value: The number of game ticks before the axolotl stops to play dead and this tag is removed.
- [NBT Compound / JSON Object] minecraft:has_hunting_cooldown: If the axolotl is in a hunting cooldown .
Villager memories:
- [NBT Compound / JSON Object] minecraft:home: Where this villager's bed is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the bed or of the patrol point.
- [Int Array] pos: The X, Y, and Z coordinates of the bed or the patrol point
- [NBT Compound / JSON Object] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:job_site: Where this villager's job site block is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the job site block.
- [Int Array] pos: The X, Y, and Z coordinates of the job site block.
- [NBT Compound / JSON Object] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:last_slept: The game tick that the villager last slept in a bed.
- [Long] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:last_woken: The game tick that the villager last woke up from a bed.
- [Long] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:last_worked_at_poi: The game tick that the villager last worked at their job site.
- [Long] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:meeting_point: Where this villager's meeting point is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the meeting point.
- [Int Array] pos: The X, Y, and Z coordinates of the meeting point.
- [NBT Compound / JSON Object] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:potential_job_site: Where this villager's potential job site block is.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The dimension ID of the potential job site block.
- [Int Array] pos: The X, Y, and Z coordinates of the potential job site block.
- [NBT Compound / JSON Object] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:golem_detected_recently: If the villager has detected an iron golem recently.
- [Boolean] value: 1 or 0 (
true/false) - iftrue, the villager just saw an iron golem. - [Long] ttl: The number of game ticks before this memory is removed.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:home: Where this villager's bed is.
Frog memories:
- [NBT Compound / JSON Object] minecraft:is_in_water: Only exists if the frog is in water.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:is_pregnant: Only exists if the frog is pregnant.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [NBT Compound / JSON Object] minecraft:is_in_water: Only exists if the frog is in water.
Allay memories:
- [NBT Compound / JSON Object] minecraft:item_pickup_cooldown_ticks: The number of game ticks before the allay goes to pick up item again.
- [Int] value: The value of this memory, initially set to 100 game ticks (5 seconds), decreasing by 1 every tick.
- [NBT Compound / JSON Object] minecraft:liked_noteblock: The note block that the allay likes.
- [NBT Compound / JSON Object] value: The value of this memory.
- [String] dimension: The ID of the dimension where the note block is.
- [Int Array] pos: The X, Y, and Z coordinates of the note block.
- [NBT Compound / JSON Object] value: The value of this memory.
- [NBT Compound / JSON Object] minecraft:liked_noteblock_cooldown_ticks: The number of ticks before the allay stops putting items at the liked note block.
- [Int] value: The value of this memory, initially set to 600 game ticks (30 seconds), decreasing by 1 every tick.
- [NBT Compound / JSON Object] minecraft:liked_player: The player that the allay likes.
- [Int Array] value: The player's UUID, stored as four ints.
- [NBT Compound / JSON Object] minecraft:item_pickup_cooldown_ticks: The number of game ticks before the allay goes to pick up item again.
Goat memories:
- [NBT Compound / JSON Object] minecraft:long_jump_cooling_down: Optional. If the goat is in a cool down after a long jump.
- [Int] value: The number of game ticks before the goat can long jump again and this tag is removed.
- [NBT Compound / JSON Object] minecraft:ram_cooldown_ticks: Optional. If the goat is in a cool down after ram.
- [Int] value: The number of game ticks before the goat can ram again and this tag is removed.
- [NBT Compound / JSON Object] minecraft:long_jump_cooling_down: Optional. If the goat is in a cool down after a long jump.
Sniffer memories:
- [NBT Compound / JSON Object] minecraft:sniffer_explored_positions: The last 20 positions in which the sniffer has dug, cannot dig in these positions.
- [Int Array] value: The coordinates of a block at which the sniffer has dug. Can have up to 20 blocks stored.
- [NBT Compound / JSON Object] minecraft:sniffer_explored_positions: The last 20 positions in which the sniffer has dug, cannot dig in these positions.
- Memories shared by multiple mobs:
- [NBT Compound / JSON Object] minecraft:is_tempted: If the axolotl, camel, or goat is tempted by the player.
- [Boolean] value: 1 or 0 (
true/false) - iftrue, the mob is tempted.
- [Boolean] value: 1 or 0 (
- [NBT Compound / JSON Object] minecraft:sniff_cooldown: The warden and sniffer don't sniff if this memory exists.
- [NBT Compound / JSON Object] value: An empty compound tag.
- [Long] ttl: The number of game ticks before this memory is removed, initially set to 100 game ticks (5 seconds).
- [NBT Compound / JSON Object] minecraft:temptation_cooldown_ticks: Optional. If the axolotl, camel, or goat is in a cool down after being tempted.
- [Int] value: The number of game ticks before the mob can be tempted again and this tag is removed.
- [NBT Compound / JSON Object] minecraft:is_tempted: If the axolotl, camel, or goat is tempted by the player.
- [NBT Compound / JSON Object] memories: Used for complex behaviors. The only mobs that have this tag are described below.
- [Boolean] CanPickUpLoot: 1 or 0 (
true/false) - iftrue, the mob can pick up loot (wear armor it picks up, use weapons it picks up). - Tags common to all mobs with drops from loot tables see Template:Nbt inherit/death_lootable/template
- [Short] DeathTime: Number of ticks the mob has been dead for. Controls death animations. 0 when alive.
- [NBT Compound / JSON Object] drop_chances: Map between equipment slot type and chance value. If not specified or removed, chance is assumed as default (0.085f). Chance value between 0.0f and 1.0f applies a random damage value if dropped. For values higher than 1.0f the item damage is preserved. Equipment picked up by mobs is set to 2.0f.
- [Float] head : Chance value for the head item to drop.
- [Float] chest : Chance value for the chest item to drop.
- [Float] legs : Chance value for the legs item to drop.
- [Float] feet : Chance value for the feet item to drop.
- [Float] mainhand : Chance value for the mainhand item to drop.
- [Float] offhand : Chance value for the offhand item to drop.
- [Float] body : Chance value for the body item to drop.
- [Float] saddle : Chance value for the saddle item to drop.
- [NBT Compound / JSON Object] equipment: Map between equipment slot type and item stack.
- [NBT Compound / JSON Object] head: The item being held in mob's head slot.
- [NBT Compound / JSON Object] chest: The item being held in the mob's chest slot.
- [NBT Compound / JSON Object] legs: The item being held in the mob's legs slot.
- [NBT Compound / JSON Object] feet: The item being held in the mob's feet slot.
- [NBT Compound / JSON Object] mainhand: The item being held in the mob's main hand.
- [NBT Compound / JSON Object] offhand: The item being held in the mob's off hand.
- [NBT Compound / JSON Object] body: The item being held in the mob's body slot.
- [NBT Compound / JSON Object] saddle: The item being held in the mob's saddle slot.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Byte] FallFlying: Setting to 1 for non-player entities causes the entity to glide as long as they are wearing elytra in the chest slot. Can be used to detect when the player is gliding without using scoreboard statistics.
- [Float] Health: number of health the entity has.
- [Int Array] home_pos: Position of the "home" position. Mobs will limit their pathfinding to stay within the indicated area. Some mobs, like bats, slimes, magma cubes, phantoms and ender dragons may ignore it. Interacting with leashes or riding may change the home position of the mob.
- [Int] home_radius: Max radius of the data
home_pos. - [Int] HurtByTimestamp: The last time the mob was damaged, measured in the number of ticks since the mob's creation. Updates to a new value whenever the mob is damaged, then updates again 101 ticks later for reasons unknown. Can be changed with commands, but the specified value does not affect natural updates in any way, and is overwritten if the mob receives damage.
- [Short] HurtTime: Number of ticks the mob turns red for after being hit. 0 when not recently hit.
- [NBT Compound / JSON Object][Int Array] leash: Information about where this leash connects to. Does not exist if the entity is not leashed.
- The int array form ([Int Array]) represents the block location of the fence post that the leash is attached to (3 integers representing the X, Y, and Z coordinates respectively), or a compound containing information about the entity the leash is attached to.
- The compound form ([NBT Compound / JSON Object]) contains the UUID of the entity that the leash is attached to.
- [Int Array] UUID: This Universally Unique IDentifier of the entity that the leash is attached to.
- [Boolean] LeftHanded: 1 or 0 (
true/false) - iftrue, the mob renders the main hand as being left. - [NBT Compound / JSON Object] locator_bar_icon: The waypoint's icon visual data in the locator bar.
- [Int] color: The waypoint's color stored as 32-bit signed integer using two's complement, assuming the color is fully opaque.
- [String] style: The waypoint's style name from
waypoint_styledirectory in a resource pack.
- [Boolean] NoAI: 1 or 0 (
true/false) - Setting totruedisables the mob's AI. The mob does not and cannot move, to the extent of not falling when normally able. - [Boolean] PersistenceRequired: 1 or 0 (
true/false) - iftrue, the mob must not despawn naturally. - [Int Array] sleeping_pos: The coordinate of where the entity is sleeping, absent if not sleeping.
- [String] Team: This tag is actually not part of the NBT data of a mob, but instead used when spawning it, so it cannot be tested for. It makes the mob instantly join the scoreboard team with that name.
Mob-specific data
Many mobs additionally have individual data.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Long] DuplicationCooldown: The allay's duplication cooldown in ticks. This is set to 6000 game ticks (5 minutes) when the allay duplicates.
- [NBT List / JSON Array] Inventory: List of items the allay has picked up. This list can contain at most one compound tag. The item given by the player to the allay is stored in its
HandItems[0]tag, not here.- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] listener: The vibration event listener of this allay.
- [Int] distance: Nonnegative integer.
- [NBT Compound / JSON Object] event: Optional.
- [Int] distance: Nonnegative integer.
- [String] game_event: A resource location of the game event.
- [NBT List / JSON Array] pos: Three doubles representing the X, Y, and Z coordinates.
- [Int Array] projectile_owner: Optional. The projectile owner's UUID. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.
- [Int Array] source: Optional. The source entity's UUID. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.
- [Int] event_delay: Nonnegative integer.
- [Int] event_distance: Nonnegative integer.
- [Int] range: Nonnegative integer.
- [NBT Compound / JSON Object] source: Position source.
- [String] type: A resource location of the position source type.
- For type
block- [Int Array] pos: X, Y, and Z coordinates.
- For type
entity- [Int Array] source_entity: The entity's UUID. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.
- [Float] y_offset:
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] scute_time: The number of ticks until the armadillo drops a scute. A scute is dropped at 0 and this timer gets reset to a new random value between 6000 and 12000.
- [String] state: The name for the armadillo's current posture.
state:"idle"means the armadillo is standing normally and is not rolled up.state:"scared"means the armadillo has rolled up as it feels threatened by a nearby mob or player.state:"unrolling"means the armadillo is playing its unrolling animation, exiting its scared state. Any other string forstatedefaults to the same behavior as "idle".
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to mobs except
LeftHanded,DeathLootTable,DeathLootTableSeed,NoAI,leash,CanPickUpLootandPersistenceRequired. - [Int] DisabledSlots: Bit field allowing disable place/replace/remove of armor elements. For example, the value
16191or4144959disables placing, removing and replacing of all equipment. These can be found using the bitwise OR operator. - [Byte] Invisible: 1 or 0 (true/false) - if true, ArmorStand is invisible, although items on it still display.
- [Byte] Marker: 1 or 0 (true/false) - if true, ArmorStand's size is set to 0, has a tiny hitbox, and disables interactions with it. May not exist.
- [Byte] NoBasePlate: 1 or 0 (true/false) - if true, ArmorStand does not display the base beneath it.
- [NBT Compound / JSON Object] Pose: Rotation values for the ArmorStand's pose.
- [NBT List / JSON Array] Body: Body-specific rotations.
- [Float]: x-rotation.
- [Float]: y-rotation.
- [Float]: z-rotation.
- [NBT List / JSON Array] Head: Head-specific rotations.
- [Float]: x-rotation.
- [Float]: y-rotation.
- [Float]: z-rotation.
- [NBT List / JSON Array] LeftArm: Left Arm-specific rotations.
- [Float]: x-rotation.
- [Float]: y-rotation.
- [Float]: z-rotation.
- [NBT List / JSON Array] LeftLeg: Left Leg-specific rotations.
- [Float]: x-rotation.
- [Float]: y-rotation.
- [Float]: z-rotation.
- [NBT List / JSON Array] RightArm: Right Arm-specific rotations.
- [Float]: x-rotation.
- [Float]: y-rotation.
- [Float]: z-rotation.
- [NBT List / JSON Array] RightLeg: Right Leg-specific rotations.
- [Float]: x-rotation.
- [Float]: y-rotation.
- [Float]: z-rotation.
- [NBT List / JSON Array] Body: Body-specific rotations.
- [Byte] ShowArms: 1 or 0 (true/false) - if true, ArmorStand displays full wooden arms. If false, also place and replace interactions with the hand item slot are disabled.
- [Byte] Small: 1 or 0 (true/false) - if true, ArmorStand is much smaller, similar to the size of a baby zombie.
| Binary | Integer number | Result |
|---|---|---|
| 2^0 | 1 | Disable adding or changing mainhand item |
| 2^1 | 2 | Disable adding or changing boots item |
| 2^2 | 4 | Disable adding or changing leggings item |
| 2^3 | 8 | Disable adding or changing chestplate item |
| 2^4 | 16 | Disable adding or changing helmet item |
| 2^5 | 32 | Disable adding or changing offhand item |
| 2^8 | 256 | Disable removing or changing mainhand item |
| 2^9 | 512 | Disable removing or changing boots item |
| 2^10 | 1024 | Disable removing or changing leggings item |
| 2^11 | 2048 | Disable removing or changing chestplate item |
| 2^12 | 4096 | Disable removing or changing helmet item |
| 2^13 | 8192 | Disable removing or changing offhand item |
| 2^16 | 65536 | Disable adding mainhand item |
| 2^17 | 131072 | Disable adding boots item |
| 2^18 | 262144 | Disable adding leggings item |
| 2^19 | 524288 | Disable adding chestplate item |
| 2^20 | 1048576 | Disable adding helmet item |
| 2^21 | 2097152 | Disable adding offhand item |
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] FromBucket: 1 or 0 (
true/false) – iftrue, indicates the axolotl has been released from a bucket. - [Int] Variant: ID of the axolotl's variant.
| Variant | Numerical ID | Identifier |
|---|---|---|
0
|
lucy
| |
1
|
wild
| |
2
|
gold
| |
3
|
cyan
| |
4
|
blue
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] BatFlags: 1 or 0 (true/false) - true if the bat is hanging upside-down from a block, false if the bat is flying.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can become angry see Template:Nbt inherit/angerable/template
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] CannotEnterHiveTicks: Time left in ticks until the bee can enter a beehive. Used when the bee is angered and released from the hive by a player, but the hive is smoked by a campfire.
- [Int] CropsGrownSincePollination: How many crops the bee has grown since its last pollination. Used to limit number of crops it can grow.
- [Int Array] flower_pos: Block location, as 3 integers, of the flower that the bee is circling.
- [Boolean] HasNectar: 1 or 0 (true/false) - true if the bee is carrying pollen.
- [Boolean] HasStung: 1 or 0 (true/false) - true if the bee has stung a mob or player.
- [Int Array] hive_pos: Block location, as 3 integers, of the bee's hive.
- [Int] TicksSincePollination: Number of ticks passed since the bee's last pollination.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Long] LastPoseTick: The tick when the camel started changing its pose.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can be tamed by players see Template:Nbt inherit/tameable/template
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] CollarColor: The color of the cat's collar. Present even for stray cats (but does not render); default value is 14.
- [String] variant: The resource location of the variant of the cat.
| Variant | Resource location (Java Edition) | Data Value (Bedrock) |
|---|---|---|
minecraft:white
|
0
| |
minecraft:black
|
1
| |
minecraft:red
|
2
| |
minecraft:siamese
|
3
| |
minecraft:british_shorthair
|
4
| |
minecraft:calico
|
5
| |
minecraft:persian
|
6
| |
minecraft:ragdoll
|
7
| |
minecraft:tabby
|
8
| |
minecraft:all_black
|
9
| |
minecraft:jellie
|
10
|
| Color | Data value |
|---|---|
0
| |
1
| |
2
| |
3
| |
4
| |
5
| |
6
| |
7
| |
8
| |
9
| |
10
| |
11
| |
12
| |
13
| |
14
| |
15
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] EggLayTime: Number of ticks until the chicken lays its egg. Laying occurs at 0 and this timer gets reset to a new random value between 6000 and 12000.
- [Boolean] IsChickenJockey: 1 or 0 (true/false) - Whether or not the chicken is a jockey for a baby zombie. If true, the chicken can naturally despawn, drops 10 experience upon death instead of 1-3 and cannot lay eggs. Baby zombies can still control a ridden chicken even if this is set false.
- [String] variant: The variant of the chicken.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] FromBucket: 1 or 0 (
true/false) - Whether the fish had ever been released from a bucket.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [String] variant: The variant of the cow.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int Array] home_pos: Block location, as 3 integers, of the creaking's heart.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] ExplosionRadius: The radius of the explosion itself, default 3.
- [Short] Fuse: States the initial value of the creeper's internal fuse timer (does not affect creepers that fall and explode upon impacting their victim). The internal fuse timer returns to this value if the creeper is no longer within attack range. Default 30.
- [Byte] ignited: 1 or 0 (true/false) - Whether the creeper has been ignited by flint and steel.
- [Byte] powered: 1 or 0 (true/false) - May not exist. True if the creeper is charged from being struck by lightning.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Moistness: How moist this dolphin is. Set to 2400 when in water or rain. Decreases by 1 every tick otherwise. The dolphin takes damage when 0 or below.
- [Byte] GotFish: 1 or 0 (true/false) - if true, this dolphin got fish from a player.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Byte] ChestedHorse: 1 or 0 (true/false) - true if the horse has chests. A chested horse that is not a donkey or a mule crashes the game.
- [NBT List / JSON Array] Items: List of items. Exists only if ChestedHorse is true.
- [NBT Compound / JSON Object] An item, including the Slot tag. Slots are numbered 2 to 16 for donkeys and mules, and none exist for all other horses.
- An item see Template:Nbt inherit/item/template
- [NBT Compound / JSON Object] An item, including the Slot tag. Slots are numbered 2 to 16 for donkeys and mules, and none exist for all other horses.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all zombies see Template:Nbt inherit/zombie/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] DragonPhase: A number indicating the dragon's current state.
0means circling.1means strafing (preparing to shoot a fireball).2means flying to the portal to land (part of transition to landed state).3means landing on the portal (part of transition to landed state).4means taking off from the portal (part of transition out of landed state).5means landed, performing breath attack.6means landed, looking for a player for breath attack.7means landed, roar before beginning breath attack.8means charging player.9means flying to portal to die.10means hovering (flapping wings while pacing around a fixed point) (default when using the/summoncommand).
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can become angry see Template:Nbt inherit/angerable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] carriedBlockState: Optional. The block carried by the enderman.
- [String] Name: The resource location of the block.
- [NBT Compound / JSON Object] Properties: Optional. The block states of the block.
- [String] Name: The block state name and its value.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Lifetime: How long the endermite has existed in ticks. Disappears when this reaches around 2400.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all mobs spawnable in raids see Template:Nbt inherit/raidable/template
- [Int] SpellTicks: Number of ticks until a spell can be cast. Set to a positive value when a spell is cast, and decreases by 1 per tick.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] Crouching: 1 or 0 (true/false) – Whether the fox is crouching.
- [Byte] Sitting: 1 or 0 (true/false) – Whether the fox is sitting.
- [Byte] Sleeping: 1 or 0 (true/false) – Whether the fox is sleeping.
- [NBT List / JSON Array] Trusted: A list of players that the fox trusts. For a list with more than 2 elements, only the first and the last are considered.
- [Int Array]: The UUID of each trusted player, stored as four ints.
- [String] Type: ID of the fox's type.
| Variant | Identifier |
|---|---|
red
| |
snow
|
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [String] variant: ID of the frog's variant.
| Variant | Data value |
|---|---|
minecraft:temperate
| |
minecraft:warm
| |
minecraft:cold
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] ExplosionPower: The radius of the explosion created by the fireballs the ghast fires. Default value is 1.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] DarkTicksRemaining: Countdown of ticks remaining until the glow squid starts glowing. Not glowing while positive, glowing when countdown reaches zero.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] HasLeftHorn: 1 or 0 (true/false) – if true, indicates this goat has the left horn.
- [Byte] HasRightHorn: 1 or 0 (true/false) – if true, indicates this goat has the right horn.
- [Byte] IsScreamingGoat: 1 or 0 (true/false) – if true, indicates this is a screaming goat.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] still_timeout: Prevents the Happy Ghast from moving when greater than 0. Set to 10 when a player is less than 2 blocks above and decreases by 1 per tick otherwise. Movement resumes when it reaches 0.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Boolean] CannotBeHunted: 1 or 0 (true/false) - if true, piglins do not attack the hoglin. Set to true for hoglins spawned as a part of bastion remnants.
- [Boolean] IsImmuneToZombification: 1 or 0 (true/false) – if true, the hoglin does not transform to a zoglin when in the Overworld and
TimeInOverworlddoes not increment. - [Int] TimeInOverworld: The number of ticks that the hoglin has existed in the Overworld; the hoglin converts to a zoglin when this is greater than 300.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Int] Variant: The variant of the horse. Determines colors. Stored as
baseColor | (markings << 8). Unused values lead to white horses.
| White | Creamy | Chestnut | Brown | Black | Gray | Dark Brown | |
|---|---|---|---|---|---|---|---|
| None | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
| White | 256 | 257 | 258 | 259 | 260 | 261 | 262 |
| White Field | 512 | 513 | 514 | 515 | 516 | 517 | 518 |
| White Dots | 768 | 769 | 770 | 771 | 772 | 773 | 774 |
| Black Dots | 1024 | 1025 | 1026 | 1027 | 1028 | 1029 | 1030 |
Variant names taken from the names of the texture file they correspond to.
Summoning a horse without specifying the Variant value results in a white horse. Summoning a horse with a correct color byte but an incorrect marking byte results in a horse of the corresponding color but no markings. Summoning a horse with a correct marking byte but an incorrect color byte results in a white horse with the corresponding markings.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all zombies see Template:Nbt inherit/zombie/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all mobs spawnable in raids see Template:Nbt inherit/raidable/template
- [Int] SpellTicks: Number of ticks until a spell can be cast. Set to a positive value when a spell is cast, and decreases by 1 per tick.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can become angry see Template:Nbt inherit/angerable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] PlayerCreated: 1 or 0 (true/false) - if true, this golem is player-created and never attacks players.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Byte] ChestedHorse: 1 or 0 (true/false) - true if the llama has chests.
- [Int] DespawnDelay: A timer for trader llamas to despawn, present only in
trader_llama. The trader llama despawns when this value reaches 0. - [NBT List / JSON Array] Items: List of items. Exists only if
ChestedHorseis true.- [NBT Compound / JSON Object] An item, including the Slot tag.
- An item see Template:Nbt inherit/item/template
- [NBT Compound / JSON Object] An item, including the Slot tag.
- [Int] Strength: Ranges from 1 to 5, defaults to 3. Determines the number of items the llama can carry (items = 3 × strength). Also increases the tendency of wolves to run away when attacked by llama spit. Strengths 4 and 5 always causes a wolf to flee.
- [Int] Variant: The variant of the llama.
| Variant | Numerical ID | Identifier |
|---|---|---|
0
|
creamy
| |
1
|
white
| |
2
|
brown
| |
3
|
gray
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Size: The size of the magma cube. Note that this value is zero-based, so 0 is the smallest magma cube, 1 is the next larger, etc. The sizes that spawn naturally are 0, 1, and 3.
- [Byte] wasOnGround: 1 or 0 (true/false) - true if the magma cube is touching the ground.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT List / JSON Array] stew_effects: The effects applied to the suspicious stew from milking the mooshroom.
- [NBT Compound / JSON Object]
- [String] id: Optional. The Effect identifier of the status effect the brown mooshroom may give to a suspicious stew.
- [Int] duration: Optional. An integer indicating the duration of the status effect the brown mooshroom may give to a suspicious stew.
- [NBT Compound / JSON Object]
- [String] Type: ID of the mooshroom's type.
| Variant | Identifier |
|---|---|
red
| |
brown
|
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Byte] ChestedHorse: 1 or 0 (true/false) - true if the horse has chests. A chested horse that is not a donkey or a mule crashes the game.
- [NBT List / JSON Array] Items: List of items. Exists only if ChestedHorse is true.
- [NBT Compound / JSON Object] An item, including the Slot tag. Slots are numbered 2 to 16 for donkeys and mules, and none exist for all other horses.
- An item see Template:Nbt inherit/item/template
- [NBT Compound / JSON Object] An item, including the Slot tag. Slots are numbered 2 to 16 for donkeys and mules, and none exist for all other horses.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] Trusting: 1 or 0 (true/false) - true if the ocelot trusts players.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [String] HiddenGene: The secondary gene this panda has, that can transfer to the child.
- [String] MainGene: The primary gene this panda has, that determines the behavior and appearance of the panda and that can transfer to the child.
| Gene | Data value |
|---|---|
normal
| |
lazy
| |
worried
| |
playful
| |
brown
| |
weak
| |
aggressive
|
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can be tamed by players see Template:Nbt inherit/tameable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Variant: Specifies the color variant of the parrot, default is 0.
| Variant | Numerical ID | Identifier |
|---|---|---|
0
|
red_blue
| |
1
|
blue
| |
2
|
green
| |
3
|
yellow_blue
| |
4
|
gray
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] size: The size of the phantom. Ranges from
0to64, similar to slimes. Unlike slimes, phantoms always have a constant 20HP × 10 HP, and deal 6HP+Sizedamage. Naturally spawned phantoms are always size 0. - [Int Array] anchor_pos: The phantom, when not actively attacking, attempts to circle around X,Y,Z. Appears to reset to a point above the target player every time the phantom flies up after a swoop. Set to spawn location if not specified.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [String] variant: the variant of the pig.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] CannotHunt: 1 or 0 (true/false) – if true, the piglin does not attack hoglins. Set to true for piglins spawned as a part of bastion remnants.
- [NBT List / JSON Array] Inventory: Each compound tag in this list is an item in the piglin's inventory. It can hold a maximum of 8 items.
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- [Byte] IsBaby: 1 or 0 (true/false) – true if the piglin is a baby. May not exist.
- [Byte] IsImmuneToZombification: 1 or 0 (true/false) – if true, the piglin does not transform to a zombified piglin when in the Overworld.
- [Int] TimeInOverworld: The number of ticks that the piglin has existed in the Overworld; the piglin converts to a zombified piglin when this is greater than 300.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] IsImmuneToZombification: 1 or 0 (true/false) – if true, the piglin brute does not transform to a zombified piglin when in the Overworld.
- [Int] TimeInOverworld: The number of ticks that the piglin brute has existed in the Overworld; the piglin brute converts to a zombified piglin when this is greater than 300.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all mobs spawnable in raids see Template:Nbt inherit/raidable/template
- [NBT List / JSON Array] Inventory: Each compound tag in this list is an item in the pillager's inventory, up to a maximum of 5 slots. Items in two or more slots that can be stacked together are automatically be condensed into one slot. Pillagers don't change their inventory automatically or drop items from it upon death. The inventory is currently unused.
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- [NBT Compound / JSON Object] The root tag. In level.dat files, this tag is called
Player.- Tags common to all entities see Template:Nbt inherit/entity/template
- except for the tags:
CustomName,CustomNameVisible, andGlowing. - Tags common to all mobs see Template:Nbt inherit/mob/template
- except for the tags:,
CanPickUpLoot,LeftHanded,PersistenceRequired,Leash,drop_chances. - [NBT Compound / JSON Object] abilities: The abilities this player has.
- [Byte] flying: 1 or 0 (
true/false) -trueif the player is currently flying. - [Float] flySpeed: The flying speed, set to
0.05. - [Byte] instabuild: 1 or 0 (
true/false) - Iftrue, the player can place blocks without depleting them. This istruefor Creative mode, andfalsefor other game modes. - [Byte] invulnerable: 1 or 0 (
true/false) - Behavior is not the same as the invulnerable tag on other entities. Iftrue, the player is immune to all damage and harmful effects except for void damage and/kill. Also, all mobs, whether hostile or not, are passive to the player.truewhen in Creative or Spectator mode, andfalsewhen in Survival or Adventure mode. - [Byte] mayBuild: 1 or 0 (
true/false) - Iftrue, the player can place blocks.truewhen in Creative or Survival mode, andfalsewhen in Spectator or Adventure mode. - [Byte] mayfly: 1 or 0 (
true/false) - Iftrue, the player can fly and doesn't take fall damage.truewhen in Creative and Spectator modes, andfalsewhen in Survival and Adventure modes. - [Float] walkSpeed: The walking speed, set to
0.1.
- [Byte] flying: 1 or 0 (
- [NBT List / JSON Array] current_explosion_impact_pos: Position where the player was when the last explosion happened. Used for wind charge fall damage reduction.
- [Int] DataVersion: Version of the player NBT structure. Is increased with every new snapshot and release. See Data version.
- [String] Dimension: The ID of the dimension the player is in. Used to store the players last known location along with
Pos. - [NBT List / JSON Array] EnderItems: Each compound tag in this list is an item in the player's 27-slot ender chest inventory. When empty, list type may have unexpected value.
- [NBT Compound / JSON Object] An item in the inventory.
- Includes the [Byte] Slot tag - slots are numbered
0–26, inclusive. - See Item_format § NBT_structure.
- Includes the [Byte] Slot tag - slots are numbered
- [NBT Compound / JSON Object] An item in the inventory.
- [NBT List / JSON Array] entered_nether_pos: May not exist. A list of 3 doubles, describing the Overworld position from which the player entered the Nether. Used by the
nether_traveladvancement trigger. Set every time the player passes through a portal from the Overworld to the Nether. When entering a dimension other than the nether (not by respawning) this tag is removed. Entering the Nether without using a portal does not update this tag.- [Double] x: The X coordinate in the Overworld.
- [Double] y: The Y coordinate in the Overworld.
- [Double] z: The Z coordinate in the Overworld.
- [Float] foodExhaustionLevel: See Hunger § Mechanics.
- [Int] foodLevel: The value of the hunger bar. Referred to as hunger. See Hunger.
- [Float] foodSaturationLevel: Referred to as saturation. See Hunger § Mechanics.
- [Int] foodTickTimer: See Hunger.
- [Boolean] ignore_fall_damage_from_current_explosion: 1 or 0 (
true/false) -trueif the current explosion should apply a fall damage reduction. Only used by explosions from wind charges. - [NBT List / JSON Array] Inventory: Each compound tag in this list is an item in the player's inventory. (Note: when empty, list type may have unexpected value.)
- [NBT Compound / JSON Object] An item in the inventory.
- [NBT Compound / JSON Object] LastDeathLocation: May not exist. Location of the player's last death.
- [String] dimension: Dimension of last death.
- [Int Array] pos: Coordinates of last death.
- [Int] playerGameType: The current game mode of the player.
0means Survival,1means Creative,2means Adventure, and3means Spectator. - [Int] previousPlayerGameType: The previous game mode of the player.
- [NBT Compound / JSON Object] recipeBook: Contains a JSON object detailing recipes the player has unlocked.
- Tags related to the recipe book see Template:Nbt inherit/Recipe Book/template
- [NBT Compound / JSON Object] RootVehicle: May not exist. The root entity that the player is riding.
- [Int Array] Attach: The UUID of the entity the player is riding, stored as four ints.
- [NBT Compound / JSON Object] Entity: The NBT data of the root vehicle.
- See .
- [Int] Score: The score displayed upon death.
- [Byte] seenCredits: 1 or 0 (
true/false) -trueif the player has entered the exit portal in the End at least once. - [NBT Compound / JSON Object] SelectedItem: Data of the item currently being held by the player, excluding the Slot tag. Only exists when using the /data command, this value is not saved in the player.dat format.
- See item format.
- [Int] SelectedItemSlot: The selected hotbar slot of the player.
- [NBT Compound / JSON Object] ShoulderEntityLeft: The entity that is on the player's left shoulder. Always displays as a parrot.
- See .
- [NBT Compound / JSON Object] ShoulderEntityRight: The entity that is on the player's right shoulder. Always displays as a parrot.
- See .
- [Short] SleepTimer: The number of game ticks the player had been in bed.
0when the player is not sleeping. When in bed, increases up to 100 ticks, then stops. Skips the night after enough players in beds have reached 100 (see Bed § Passing the night). When getting out of bed, instantly changes to 100 ticks and then increases for another 9 ticks (up to 109 ticks) before returning to 0 ticks. - [NBT Compound / JSON Object] respawn: May not exist. The respawn information of the player. Removed when the player attempts to respawn with no valid bed or respawn anchor to spawn at at these coordinates. They are unaffected by breaking a bed or respawn anchor at these coordinates, and are unaffected by the player's death.
- [Int Array] pos: block position to spawn at
- [Float] angle: angle to spawn with (default: 0.0)
- [String] dimension: dimension id to spawn in (default minecraft:overworld)
- [Boolean] forced: true if this spawn was set through commands (default: false)
- [NBT Compound / JSON Object] warden_spawn_tracker: Contains data about the warden spawning process for this player.
- [Int] warning_level: A warning level between
0, and3(inclusive). The warden spawns at level 3. - [Int] cooldown_ticks: The number of game ticks before the
warning_levelcan be increased again. Decreases by 1 every tick. It is set to 200 game ticks (10 seconds) every time the warning level is increased. - [Int] ticks_since_last_warning: The number of game ticks since the player was warned for warden spawning. Increases by 1 every tick. After 12000 game ticks (10 minutes) it resets to level 3, and the
warning_leveldecreases by 1 level.
- [Int] warning_level: A warning level between
- [Int] XpLevel: The level shown on the experience bar.
- [Float] XpP: The progress across the experience bar to the next level, stored as a percentage.
- [Int] XpSeed: The seed used for the next enchantment in enchanting tables.
- [Int] XpTotal: The total amount of experience the player has collected over time; used for the score upon death.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can become angry see Template:Nbt inherit/angerable/template
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] FromBucket: 1 or 0 (
true/false) - iftrue, the fish has been released from a bucket. - [Int] PuffState: A value from 0–2.
0means the fish is deflated1means it is halfway puffed-up2means it is fully puffed-up
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] MoreCarrotTicks: Set to 40 when a carrot crop is eaten, decreases by 0–2 every tick until it reaches 0. Rabbit can eat another crop only when it reaches 0.
- [Int] RabbitType: Determines the skin of the rabbit. Also determines if rabbit should be hostile.
| Variant | Numerical ID | Identifier |
|---|---|---|
0
|
brown
| |
1
|
white
| |
2
|
black
| |
3
|
white_splotched
| |
4
|
gold
| |
5
|
salt
| |
99
|
evil
| |
| none | none |
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all mobs spawnable in raids see Template:Nbt inherit/raidable/template
- [Int] AttackTick: Attack cooldown for this ravager.
- [Int] RoarTick: Roar attack cooldown for this ravager.
- [Int] StunTick: Stun attack cooldown for this ravager.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] FromBucket: 1 or 0 (
true/false) - Whether the fish had ever been released from a bucket. - [String] type: Can be
small,medium, orlarge. The size of the salmon.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] Color: The color of the sheep. Default is 0.
- [Byte] Sheared: 1 or 0 (true/false) - true if the sheep has been shorn.
| Color | Data value |
|---|---|
0
| |
1
| |
2
| |
3
| |
4
| |
5
| |
6
| |
7
| |
8
| |
9
| |
10
| |
11
| |
12
| |
13
| |
14
| |
15
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] AttachFace: Which face of its block the shulker is attached to. The shulker also opens up in the direction going from the center of the block to that face.
0bmeans the top face.1bmeans the bottom face.2bmeans the north face.3bmeans the south face.4bmeans the west face.5bmeans the east face. - [Byte] Color: The color of the shulker. Default is 0. Shulkers spawned by eggs or as part of End cities have value 16.
- [Byte] Peek: "Height" of the head of the shulker.
- This "height" is measured in pixels from the bottom of the shulker, where 1 pixel = 1/16th of a block.
- This "height" goes in the direction that the shulker is facing according to
AttachFace.
| Color | Data value |
|---|---|
0
| |
1
| |
2
| |
3
| |
4
| |
5
| |
6
| |
7
| |
8
| |
9
| |
10
| |
11
| |
12
| |
13
| |
14
| |
15
| |
16
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] StrayConversionTime: The number of ticks until this skeleton converts to a stray (default value is -1, when no conversion is under way).
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Byte] SkeletonTrap: 1 or 0 (true/false) - true if the horse is a trapped skeleton horse. Does not affect horse type.
- [Int] SkeletonTrapTime: Incremented each tick when SkeletonTrap is set to 1. The horse automatically despawns when it reaches 18000 (15 minutes).
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Size: The size of the slime. Note that this value is zero-based, so 0 is the smallest slime, 1 is the next larger, etc. The sizes that spawn naturally are 0, 1, and 3. Values that are greater than 126 get clamped to 126.
- [Byte] wasOnGround: 1 or 0 (true/false) - true if the slime is touching the ground.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] Pumpkin : 1 or 0 (true/false) - whether or not the Snow Golem has a pumpkin on its head.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Age: Represents the age of the tadpole in ticks. When greater than or equal to 24000 game ticks (20 minutes), the tadpole grows up to a frog.
- [Byte] FromBucket: 1 or 0 (true/false) - Whether the tadpole had ever been released from a bucket.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [Byte] ChestedHorse: 1 or 0 (true/false) - true if the llama has chests.
- [Int] DespawnDelay: A timer for trader llamas to despawn, present only in
trader_llama. The trader llama despawns when this value reaches 0. - [NBT List / JSON Array] Items: List of items. Exists only if
ChestedHorseis true.- [NBT Compound / JSON Object] An item, including the Slot tag.
- An item see Template:Nbt inherit/item/template
- [NBT Compound / JSON Object] An item, including the Slot tag.
- [Int] Strength: Ranges from 1 to 5, defaults to 3. Determines the number of items the llama can carry (items = 3 × strength). Also increases the tendency of wolves to run away when attacked by llama spit. Strengths 4 and 5 always causes a wolf to flee.
- [Int] Variant: The variant of the llama.
| Variant | Numerical ID | Identifier |
|---|---|---|
0
|
creamy
| |
1
|
white
| |
2
|
brown
| |
3
|
gray
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] FromBucket: 1 or 0 (true/false) - Whether the fish had ever been released from a bucket.
- [Int] Variant: A 4-byte integer.
- The least significant byte has a value of either 0 for a small fish, or 1 for a large fish. Values above 1 result in an invisible fish.
- The next byte has a value from 0–5, representing the pattern on the fish. Values above 5 result in a fish with no pattern.
- The next byte has a value from 0–15, representing the color of the fish's body.
- The most significant byte has a value from 0–15, representing the color of the fish's pattern.
| Color | Data value |
|---|---|
0
| |
1
| |
2
| |
3
| |
4
| |
5
| |
6
| |
7
| |
8
| |
9
| |
10
| |
11
| |
12
| |
13
| |
14
| |
15
|
The fish sizes and patterns are depicted in the following table, with white body color and dark-gray pattern color.
| second-least byte | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
least byte |
1 |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The 22 varieties of tropical fish most commonly found throughout the world have Variant tag values from the following table, which also lists what color/shape/patterns come from that value.
| Shape | Pattern | Base color | Pattern color | Variant | Type | Name |
|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 65536 | Orange-White Kob | Clownfish |
| 0 | 1 | 7 | 0 | 459008 | Gray-White Sunstreak | Triggerfish |
| 0 | 0 | 14 | 0 | 917504 | Red-White Kob | Tomato Clownfish |
| 1 | 3 | 14 | 0 | 918273 | Red-White Blockfish | Red Snapper |
| 1 | 4 | 14 | 0 | 918529 | Red-White Betty | Red Cichlid |
| 1 | 5 | 0 | 1 | 16778497 | White-Orange Clayfish | Ornate Butterflyfish |
| 0 | 4 | 5 | 3 | 50660352 | Lime-Light Blue Brinely | Queen Angelfish |
| 0 | 5 | 6 | 3 | 50726144 | Pink-Light Blue Spotty | Cotton Candy Betta |
| 1 | 0 | 0 | 4 | 67108865 | White-Yellow Flopper | Threadfin |
| 0 | 5 | 0 | 4 | 67110144 | White-Yellow Spotty | Goatfish |
| 1 | 0 | 4 | 4 | 67371009 | Yellow Flopper | Yellow Tang |
| 0 | 3 | 9 | 4 | 67699456 | Cyan-Yellow Dasher | Yellowtail Parrotfish |
| 1 | 3 | 10 | 4 | 67764993 | Purple-Yellow Blockfish | Dottyback |
| 0 | 3 | 9 | 6 | 101253888 | Cyan-Pink Dasher | Parrotfish |
| 1 | 2 | 0 | 7 | 117441025 | White-Gray Glitter | Moorish Idol |
| 1 | 5 | 0 | 7 | 117441793 | White-Gray Clayfish | Butterflyfish |
| 1 | 1 | 1 | 7 | 117506305 | Orange-Gray Stripey | Anemone |
| 1 | 0 | 7 | 7 | 117899265 | Gray Flopper | Black Tang |
| 0 | 1 | 11 | 7 | 118161664 | Blue-Gray SunStreak | Cichlid |
| 1 | 0 | 7 | 11 | 185008129 | Gray-Blue Flopper | Blue Tang |
| 1 | 5 | 0 | 14 | 234882305 | White-Red Clayfish | Emperor Red Snapper |
| 0 | 2 | 7 | 14 | 235340288 | Gray-Red Snooper | Red Lipped Blenny |
The variant number is the sum of the most significant byte × 224 + second most significant byte × 216 + second least significant byte × 28 + least significant byte.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] has_egg:
1or0(true/false) -truemeans the turtle is currently pregnant. - [Int Array] home_pos : Coordinates of the block where the turtle spawned.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int Array] bound_pos: When a vex is idle, it wanders, selecting air blocks from within a 15×11×15 cuboid range centered at X,Y,Z. This central spot is the location of the evoker when it summoned the vex, or if an evoker was not involved,
bound_posdo not exist. - [Int] life_ticks: Ticks of life remaining, decreasing by 1 per tick. When it reaches zero, the vex starts taking damage and
life_ticksis set to 20. - [Int Array] owner: The UUID of the evoker this vex was spawned by, stored as four ints. May not exist.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all villagers see Template:Nbt inherit/villager/template
- [NBT List / JSON Array] Inventory: Each compound tag in this list is an item in the villager's inventory, up to a maximum of 8 slots. Items in two or more slots that can be stacked together are automatically condensed into one slot. If there are more than 8 slots, the last slot is removed until the total is 8. If there are 9 slots but two previous slots can be condensed, the last slot returns after the two other slots are combined.
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- [Long] LastRestock: The last tick the villager went to their job site block to resupply their trades.
- [Long] LastGossipDecay: The last tick all gossip of the villager has decreased strength naturally.
- [Int] RestocksToday: The number of restocks a villager has done in 10 minutes from the last restock, or
0if the villager has not restocked in the last 10 minutes. When a villager has restocked twice in less than 10 minutes, it waits at least 10 minutes for another restock. - [Byte] Willing: 1 or 0 (true/false) – true if the villager is willing to mate. Becomes true after certain trades (those that would cause offers to be refreshed), and false after mating.
| Type | Data value |
|---|---|
minecraft:desert
| |
minecraft:jungle
| |
minecraft:plains
| |
minecraft:savanna
| |
minecraft:snow
| |
minecraft:swamp
| |
minecraft:taiga
|
| Profession | Data value |
|---|---|
minecraft:armorer
| |
minecraft:butcher
| |
minecraft:cartographer
| |
minecraft:cleric
| |
minecraft:farmer
| |
minecraft:fisherman
| |
minecraft:fletcher
| |
minecraft:leatherworker
| |
minecraft:librarian
| |
minecraft:nitwit
| |
minecraft:none
| |
minecraft:mason
| |
minecraft:shepherd
| |
minecraft:toolsmith
| |
minecraft:weaponsmith
|
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all mobs spawnable in raids see Template:Nbt inherit/raidable/template
- [Byte] Johnny: 1 or 0 (true/false) - if true, causes the vindicator to exhibit Johnny behavior. Setting to false prevents the vindicator exhibiting Johnny behavior, even if named Johnny. Optional.
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] DespawnDelay: The number of ticks counted down until this wandering trader is forced to despawn. The wandering trader despawns when this value reaches 1.
- [NBT Compound / JSON Object] Offers: Is generated when the trading menu is opened for the first time.
- [NBT List / JSON Array] Recipes: List of trade options.
- [NBT Compound / JSON Object] A trade option.
- [NBT Compound / JSON Object] buy: The first 'cost' item, without the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] buyB: May not exist. The second 'cost' item, without the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Int] maxUses: The maximum number of times this trade can be used before it is disabled. Increases by a random amount from 2 to 12 when offers are refreshed.
- [Byte] rewardExp: 1 or 0 (true/false) - true if this trade provides XP orb drops. All trades from naturally-generated villagers in Java Edition reward XP orbs.
- [NBT Compound / JSON Object] sell: The item being sold for each set of cost items, without the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Int] uses: The number of times this trade has been used. The trade becomes disabled when this is greater or equal to maxUses.
- [NBT Compound / JSON Object] buy: The first 'cost' item, without the Slot tag.
- [NBT Compound / JSON Object] A trade option.
- [NBT List / JSON Array] Recipes: List of trade options.
- [Int Array] wander_target: The block location that the trader wanders toward.
- [NBT List / JSON Array] Inventory: Each compound tag in this list is an item in the wandering trader's inventory, up to a maximum of 8 slots. Items in two or more slots that can be stacked together are automatically be condensed into one slot. If there are more than 8 slots, the last slot is removed until the total is 8. If there are 9 slots but two previous slots can be condensed, the last slot returns after the two other slots are combined. Wandering traders don't change their inventory automatically or drop items from it upon death. The inventory is currently unused.
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] An item in the inventory, excluding the Slot tag.
- [NBT Compound / JSON Object]: Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] anger: Anger management of the warden.
- [NBT List / JSON Array] suspects: List of suspects that have angered the warden.
- [NBT Compound / JSON Object]: A suspect.
- [Int] anger: The level of anger. It has a maximum value of 150 and decreases by 1 every second.
- [Int Array] uuid: The UUID of the entity that is associated with the anger, stored as four ints.
- [NBT Compound / JSON Object]: A suspect.
- [NBT List / JSON Array] suspects: List of suspects that have angered the warden.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all mobs spawnable in raids see Template:Nbt inherit/raidable/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Int] Invul: The number of ticks of invulnerability left after being initially created. 0 once invulnerability has expired.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can become angry see Template:Nbt inherit/angerable/template
- Additional fields for mobs that can be tamed by players see Template:Nbt inherit/tameable/template
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] CollarColor: The color of the wolf's collar. Present even for wild wolves (but does not render); default value is 14.
- [String] variant: The variant of this wolf. Default value is "minecraft:pale".
- [String] sound_variant: The sound variation for this wolf.
| Color | Data value |
|---|---|
0
| |
1
| |
2
| |
3
| |
4
| |
5
| |
6
| |
7
| |
8
| |
9
| |
10
| |
11
| |
12
| |
13
| |
14
| |
15
|
- Variants
pale(default)ashenblackchestnutrustysnowyspottedstripedwoods
- Sound Variants
classicangrybigcutegrumpypuglinsad
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- [Byte] IsBaby: 1 or 0 (true/false) - true if the zoglin is a baby. May not exist.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all zombies see Template:Nbt inherit/zombie/template
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can breed see Template:Nbt inherit/breedable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all horses see Template:Nbt inherit/horse/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all villagers see Template:Nbt inherit/villager/template
- Tags common to all zombies see Template:Nbt inherit/zombie/template
- [Int] ConversionTime: -1 when not being converted back to a villager, positive for the number of ticks until conversion back into a villager. The regeneration effect parallels this.
- [Int Array] ConversionPlayer: The UUID of the player who started curing the zombie, stored as four ints.
| Type | Data value |
|---|---|
minecraft:desert
| |
minecraft:jungle
| |
minecraft:plains
| |
minecraft:savanna
| |
minecraft:snow
| |
minecraft:swamp
| |
minecraft:taiga
|
| Profession | Data value |
|---|---|
minecraft:armorer
| |
minecraft:butcher
| |
minecraft:cartographer
| |
minecraft:cleric
| |
minecraft:farmer
| |
minecraft:fisherman
| |
minecraft:fletcher
| |
minecraft:leatherworker
| |
minecraft:librarian
| |
minecraft:nitwit
| |
minecraft:none
| |
minecraft:mason
| |
minecraft:shepherd
| |
minecraft:toolsmith
| |
minecraft:weaponsmith
|
- [NBT Compound / JSON Object] Entity data
- Additional fields for mobs that can become angry see Template:Nbt inherit/angerable/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all mobs see Template:Nbt inherit/mob/template
- Tags common to all zombies see Template:Nbt inherit/zombie/template
Projectiles
Projectiles are a subclass of Entity.
- [NBT Compound / JSON Object] Entity data
- Tags common to all arrows see Template:Nbt inherit/arrow/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- Tags common to all hurting projectiles see Template:Nbt inherit/hurting projectile/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all fireballs see Template:Nbt inherit/fireball/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- Tags common to all hurting projectiles see Template:Nbt inherit/hurting projectile/template
- [Byte] ExplosionPower: The power and size of the explosion created by the fireball upon impact. Default value 1.
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] FireworksItem: The crafted firework rocket.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Int] Life: The number of ticks this fireworks rocket has been flying for.
- [Int] LifeTime: The number of ticks before this fireworks rocket explodes. This value is randomized when the firework is launched: ((Flight + 1) * 10 + random(0 to 5) + random(0 to 6))
- [Boolean] ShotAtAngle:
1or0(true/false) - Iftrue, this firework was shot from a crossbow or dispenser.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [Int] Steps: How many "steps" it takes to attack to the target. The higher it is, the further out of the way the bullet travels to get to the target. If set to 0, it makes no attempt to attack the target and instead uses TXD/TYD/TZD in a straight line.
- [Int Array] Target: The UUID of the target of this shulker bullet, stored as four ints. Is not preserved when removed.
- [Double] TXD: The offset in the X direction to travel in accordance with its target. Is not preserved when removed.
- [Double] TYD: The offset in the Y direction to travel in accordance with its target. Is not preserved when removed.
- [Double] TZD: The offset in the Z direction to travel in accordance with its target. Is not preserved when removed.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all fireballs see Template:Nbt inherit/fireball/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all arrows see Template:Nbt inherit/arrow/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [Int] Duration: The time in ticks that the Glowing effect persists.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [NBT Compound / JSON Object] Item: The item to render as.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all arrows see Template:Nbt inherit/arrow/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [Boolean] DealtDamage:
1or0(true/false) - Iftrue, the trident has already damaged an entity or been stuck in the ground for more than 4 ticks, in which case subsequent collisions with entities deal no damage and Loyalty tridents begin to return to the player. - [NBT Compound / JSON Object] item: The tag representing the item that is given when the entity is picked up.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- Tags common to all hurting projectiles see Template:Nbt inherit/hurting projectile/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all fireballs see Template:Nbt inherit/fireball/template
- Tags common to all projectiles see Template:Nbt inherit/projectile/template
- [Boolean] dangerous[note 1]:
1or0(true/false) - Iftrue, the wither skull renders as blue, moves more slowly, and ignores the hardness values of most blocks upon exploding.
Items and XP Orbs
Items and XPOrbs are a subclass of Entity.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Short] Age: The number of ticks the XP orb has been "untouched". After 6000 ticks (5 minutes) the orb despawns.
- [Int] Count: The remaining number of times that the orb can be picked up. When the orb is picked up, the value decreases by 1. When multiple orbs are merged, their values are added up to result orb. When the value reaches 0, the orb is depleted.
- [Short] Health: The health of XP orbs. XP orbs take damage from fire, lava, falling anvils, and explosions. The orb is destroyed when its health reaches 0.
- [Short] Value: The amount of experience the orb gives when picked up.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Short] Age: The number of ticks the item has been "untouched". After 6000 ticks (5 minutes) the item is destroyed. If set to -32768, the Age does not increase, preventing the item from despawning automatically.
- [Short] Health: The health of the item, which starts at 5. Items take damage from fire, lava, cacti and explosions. The item is destroyed when its health reaches 0.
- [NBT Compound / JSON Object] Item: The inventory item, without the Slot tag.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Int Array] Owner: If present, only the player with this UUID can pick up the item. Used by the give command (and can be set in a summon command) to prevent the wrong player from picking up the spawned item entity. Is not preserved when removed.
- [Short] PickupDelay: The number of ticks the item cannot be picked up. Decreases by 1 per tick. If set to 32767, the PickupDelay does not decrease, preventing the item from being picked up.
- [Int Array] Thrower: The UUID of the entity who dropped the item. Is not preserved when removed.
Vehicles
Vehicles are subclasses of Entity.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all container entities see Template:Nbt inherit/container entity/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all container entities see Template:Nbt inherit/container entity/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [String] Command: The command entered into the minecart.
- [String] LastOutput: The last line of output generated by the minecart. Still stored even if the gamerule commandBlockOutput is false. Appears in the GUI of the minecart when right-clicked, and includes a timestamp of when the output was produced.
- [Int] SuccessCount: Represents the strength of the analog signal output by redstone comparators attached to this minecart. Only updated when the minecart is activated with an activator rail.
- [Boolean] TrackOutput:
1or0(true/false) - Determines whether the LastOutput is stored. Can be toggled in the GUI by clicking a button near the "Previous Output" textbox. Caption on the button indicates current state: "O" if true,"X" if false.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [Short] Fuel: The number of ticks until the minecart runs out of fuel.
- [Double] PushX: Force along X axis, used for smooth acceleration/deceleration.
- [Double] PushZ: Force along Z axis, used for smooth acceleration/deceleration.
- [NBT Compound / JSON Object] Entity data
- Tags common to all container entities see Template:Nbt inherit/container entity/template
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [Boolean] Enabled:
1or0(true/false) - Iftrue, the minecart hopper picks up items into its inventory.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [Short] Delay: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and
SpawnDataas though it had just completed a successful spawn cycle, immediately when a player enters its range. Setting this to -1 can be useful if the player wants the game to properly randomize the spawner'sDelayandSpawnData, rather than starting with pre-defined values. - [Short] MaxNearbyEntities: Overrides the maximum number of nearby (within a box of
SpawnRange*2+1 ×SpawnRange*2+1 × 8 centered around the spawner block) entities whose IDs match this spawner's entity ID. This is relative to a mob's hitbox, not its physical position. Also, all entities within all chunk sections (16×16×16 cubes) overlapped by this box are tested for their ID and hitbox overlap, rather than just entities within the box, meaning that a large amount of entities outside the box (or within it, of course) can cause substantial lag. - [Short] MaxSpawnDelay: The maximum random delay for the next spawn delay. Requires the
MinSpawnDelayandSpawnCountproperties to also be set. - [Short] MinSpawnDelay: The minimum random delay for the next spawn delay. May be equal to
MaxSpawnDelay. Requires theSpawnCountproperty to also be set, otherwise it defaults to 0. - [Short] RequiredPlayerRange: Overrides the block radius of the sphere of activation by players for this spawner. For every gametick, a spawner checks all players in the current world to test whether a player is within this sphere. Requires the
MaxNearbyEntitiesproperty to also be set. - [Short] SpawnCount: How many mobs to attempt to spawn each time. Requires the
MinSpawnDelayproperty to also be set. - [NBT Compound / JSON Object] SpawnData: Contains tags to copy to the next spawned entity(s) after spawning. Any of the or tags may be used. If a spawner specifies any of these tags, almost all variable data such as mob equipment, villager profession, sheep wool color, etc., are not automatically generated, and must also be manually specified (that this does not apply to position data, which are randomized as normal unless Pos is specified. Similarly, unless Size and Health are specified for a Slime or Magma Cube, these are still randomized). This also determines the appearance of the miniature entity spinning in the spawner cage. Warning: If
SpawnPotentialsexists, this tag gets overwritten after the next spawning attempt: see above for more details. - [NBT List / JSON Array] SpawnPotentials: Optional. List of possible entities to spawn. If this tag does not exist, but
SpawnDataexists, Minecraft generates it the next time the spawner tries to spawn an entity. The generated list contains a single entry derived from theSpawnDatatag.- [NBT Compound / JSON Object]: A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn, overwriting
SpawnData.- [Int] weight: The chance that this spawn gets picked in comparison to other spawn weights. Must be positive and at least 1.
- [NBT Compound / JSON Object] data
- Spawn Data see Template:Nbt inherit/spawn data/template
- [NBT Compound / JSON Object]: A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn, overwriting
- [Short] SpawnRange: The radius around which the spawner attempts to place mobs randomly. The spawn area is square, includes the block the spawner is in, and is centered around the spawner's x,z coordinates - not the spawner itself. It is 2 blocks high, centered around the spawner's y coordinate (its bottom), allowing mobs to spawn as high as its top surface and as low as 1 block below its bottom surface. Vertical spawn coordinates are integers, while horizontal coordinates are floating point and weighted toward values near the spawner itself. Default value is 4.
- [Short] Delay: Ticks until next spawn. If 0, it spawns immediately when a player enters its range. If set to -1 (this state never occurs in a natural spawner; it seems to be a feature accessed only via NBT editing), the spawner resets this and
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all minecarts see Template:Nbt inherit/vehicle/template
- [Int] fuse: Time until explosion or -1 if not activated.
- [Float] explosion_power: A value from 0 to 128. Additional explosion power, which is added to the speed-based explosion power. Defaults to 4.0. If set to the default value, this field is not saved to the entity's NBT.
- [Float] explosion_speed_factor: controls the amount of added damage depending on the speed of the Minecart. Defaults to 1.0. If set to the default value, this field is not saved to the entity's NBT.
Dynamic tiles
Dynamic tiles are a subclass of Entity and are used to simulate realistically moving blocks.
- [NBT Compound / JSON Object] Dynamic block entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] BlockState: The falling block represented by this entity.
- [String] Name: The resource location of the block.
- [NBT Compound / JSON Object] Properties: Optional. The block states of the block.
- [String] Name: The block state name and its value.
- [Byte] CancelDrop: 1 or 0 (true/false) - true if the block should be destroyed instead of placed after landing on a solid block. When true, the block is not dropped as an item, even if the
DropItemtag is set to true. However, if the entity is deleted due to itsTimevalue being too high, this tag is ignored and an item is dropped depending on theDropItemtag.CancelDropdefaults to 1 for falling suspicious sand and suspicious gravel, and 0 for the other vanilla falling blocks and any summoned falling block. - [Byte] DropItem: 1 or 0 (true/false) – true if the block should drop as an item when it breaks. Any block that does not have an item form with the same ID as the block does not drop even if this is set.
- [Float] FallHurtAmount: Multiplied by the
FallDistanceto calculate the amount of damage to inflict. By default this value is 2HP for anvils, and 6HP for pointed dripstone. - [Int] FallHurtMax: The maximum hit points of damage to inflict on entities that intersect this falling block. For vanilla falling blocks, always 40HP × 20.
- [Byte] HurtEntities: 1 or 0 (true/false) – true if the block should hurt entities it falls on. Defaults to 1 for anvils and pointed dripstone and to 0 for the other vanilla falling blocks and any summoned falling block.
- [NBT Compound / JSON Object] TileEntityData: Optional. The tags of the block entity for this block.
- [Int] Time: The number of ticks the entity has existed. When
Timegoes above 600, or above 100 while the block is at Y=-64 or is outside building height, the entity is deleted.
- [NBT Compound / JSON Object] Dynamic block entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Short] fuse: Ticks until explosion. Defaults to 80.
- [NBT Compound / JSON Object] block_state: The block model to use. defaults to tnt if not specified.
- [String] Name: The resource location of the block.
- [NBT Compound / JSON Object] Properties: Optional. The block states of the block.
- [String] Name: The block state name and its value.
- [Float] explosion_power: A value from 0 to 128. The size of the explosion. Defaults to 4.0. If set to the default value, this field is not saved to the entity's NBT.
- [Int Array] owner: The UUID of the entity this TNT was lit by, stored as four ints. May not exist.
Display
Display entities are subclasses of Entity.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all display entities see Template:Nbt inherit/display entity/template
- [NBT Compound / JSON Object] block_state: The block state to display.
- Block state see Template:Nbt inherit/block state/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all display entities see Template:Nbt inherit/display entity/template
- [NBT Compound / JSON Object] item: The item to display.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [String] item_display: The model to display. Describes item model transform applied to item (as defined in
displayfield in model JSON). Can benone,thirdperson_lefthand,thirdperson_righthand,firstperson_lefthand,firstperson_righthand,head,gui,ground, andfixed. Defaults tonone.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all display entities see Template:Nbt inherit/display entity/template
- [String] alignment: Text alignment direction. Can be
center,left, andright. Defaults tocenter. - [Int] background: The background color, arranged by ARGB. Since pixel with an alpha channel less than 0.1 are discarded when rendering in vanilla shader, the background becomes fully transparent when A is less than 26 (0x1A). Defaults to 1073741824 (0x40000000). Interpolated.
- [Boolean] default_background: If true, rendering uses default text background color (same as in chat), which overrides [Int] background. Defaults to
false. - [Int] line_width: Maximum line width used to split lines (note: new line can be also added with
\ncharacters). Defaults to 200. - [Boolean] see_through: Whether the text be visible through blocks. Defaults to
false. - [Boolean] shadow: Whether the text is displayed with shadow. Defaults to
false. - [String] text: The text to be displayed in the format of raw JSON text, which are resolved with the context of the display entity.
- [Byte] text_opacity: Alpha value of rendered text. Value ranges from 0 to 255. Values up to 3 are treated as fully opaque (255). Similar to the background, the text rendering is discarded for values between 4 and 26. NBT stores the value as signed byte, -128 to 127. Defaults to -1, which represents 255 and is completely opaque. SNBT to NBT handles conversion from unsigned to signed, but if needed, replace values greater than 127 with
alpha-256oralphaUB. Interpolated.
Other
Other entity types that are a subclass of Entity but do not fit into any of the above categories.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Int] Age: Age of the field. Increases by 1 every tick. When this is bigger than
Duration+WaitTimethe area effect cloud dissipates. - [Int] Color: The color of the displayed particle. Uses the same format as the color tag from Display Properties.
- [Int] Duration: The maximum age of the field after
WaitTime. - [Int] DurationOnUse: The amount the duration of the field changes upon applying the effect.
- [NBT Compound / JSON Object] potion_contents: The potion and custom effects contained in this area effect cloud.
- [String] potion: The ID of a potion type. Optional. See Potion#Item data.
- [Int] custom_color: The overriding color of this potion texture, and/or the particles of the area effect cloud created.
- [NBT List / JSON Array] custom_effects: A list of the applied effects.
- [NBT Compound / JSON Object]: A single custom effect.
- [Byte] ambient: 1 or 0 (true/false) - whether or not this is an effect provided by a beacon and therefore should be less intrusive on the screen. Optional, and defaults to false.
- [Byte] amplifier: The amplifier of the effect, with level I having value 0. Negative levels are discussed here. Optional, and defaults to level I.
- [Int] duration: The duration of the effect in ticks. Values 0 or lower are treated as 1. Optional, and defaults to 1 tick.
- [String] id: The name of the effect.
- [Byte] show_icon: 1 or 0 (true/false) - true if effect icon is shown. false if no icon is shown.
- [Byte] show_particles: 1 or 0 (true/false) - whether or not this effect produces particles. Optional, and defaults to true.
- [NBT Compound / JSON Object]: A single custom effect.
- [Int Array] Owner: The UUID of the entity who created the cloud, stored as four ints. Is not preserved when removed.
- [NBT Compound / JSON Object] custom_particle: The particle displayed by the field.
- [String] type: The id of the particle type, see Particles (Java Edition) for valid options.
- Additional fields based on the type, see Particle format.
- [String] Potion: The name of the default potion effect. See potion data values for valid IDs.
- [Float] potion_duration_scale: The duration of the potion effect applied is scaled by this factor. (defaults to 1.0). Area Effect Clouds created by Lingering Potions will have a scale of 0.25.
- [Float] Radius: The field's radius.
- [Float] RadiusOnUse: The amount the radius changes upon applying the effect. Normally negative.
- [Float] RadiusPerTick: The amount the radius changes per tick. Normally negative.
- [Int] ReapplicationDelay: The number of ticks before reapplying the effect.
- [Int] WaitTime: The time before deploying the field. The
Radiusis ignored, meaning that any specified effects is not applied and specified particles appear only at the center of the field, untilAgehits this number.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Int Array] beam_target: The block location, as 3 integers, that its beam points to.
- [Byte] ShowBottom: 1 or 0 (true/false) – if true, the end crystal shows the bedrock slate underneath. Defaults to false when placing by hand, and true when naturally generated or using
/summon.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Int Array] Owner: The UUID of the entity that that fired the fangs, stored as four ints. If the entity is an Illager, the fangs do not damage other Illagers. Is not preserved when removed.
- [Int] Warmup: Time in ticks until the fangs appear. The fangs appear and begin to close as soon as this value becomes zero or less; negative values simply result in no delay. The value continues ticking down while the closing animation is playing, reaching -20 on naturally spawned fangs.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Item: The item to render as, may be absent.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all block entities that can hang from blocks see Template:Nbt inherit/hangable/template
- [Boolean] Fixed:
1or0(true/false) - Iftrue: the item frame does not drop when it has no support block, it can not be moved by pistons, and it won't take damage (except from creative players). An item cannot be placed in or removed from a fixed item frame. The item in a fixed item frame (if any) can not be rotated. - [Boolean] Invisible:
1or0(true/false) - Whether the item frame (background) is invisible. An item or map inside an invisible item frame is still visible. - [NBT Compound / JSON Object] Item: The item in the item frame (no slot tag). If the item frame is empty, this tag does not exist.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Float] ItemDropChance: The chance for the item to drop when the item frame breaks. This is a 100% chance by default.
- [Byte] ItemRotation: The current angle or rotation of the item, as a multiple of 45 degrees, going clockwise.
0means the item is upright,1means the item is turned 45 degrees clockwise from the upright orientation. This value can only ever be between0and7, just like its redstone output when measured with a comparator.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [Float] width: The width of the entity's bounding box. Defaults to 1.
- [Float] height: The height of the entity's bounding box. Defaults to 1.
- [Byte] response: 1 or 0 (true/false). Specifies whether an interaction should trigger a response (hand animation). Defaults to 0 (false).
- [NBT Compound / JSON Object] attack: The last attack (left click) to hit the entity.
- [Int Array] player: The UUID of the player that attacked the entity. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.
- [Long] timestamp: When the attack took place.
- [NBT Compound / JSON Object] interaction: The last interaction (right click) to hit the entity.
- [Int Array] player: The UUID of the player that interacted with the entity. The 128-bit UUID is stored as four 32-bit integers, ordered from most to least significant.
- [Long] timestamp: When the interaction took place.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all block entities that can hang from blocks see Template:Nbt inherit/hangable/template
- [Boolean] Fixed:
1or0(true/false) - Iftrue: the item frame does not drop when it has no support block, it can not be moved by pistons, and it won't take damage (except from creative players). An item cannot be placed in or removed from a fixed item frame. The item in a fixed item frame (if any) can not be rotated. - [Boolean] Invisible:
1or0(true/false) - Whether the item frame (background) is invisible. An item or map inside an invisible item frame is still visible. - [NBT Compound / JSON Object] Item: The item in the item frame (no slot tag). If the item frame is empty, this tag does not exist.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Float] ItemDropChance: The chance for the item to drop when the item frame breaks. This is a 100% chance by default.
- [Byte] ItemRotation: The current angle or rotation of the item, as a multiple of 45 degrees, going clockwise.
0means the item is upright,1means the item is turned 45 degrees clockwise from the upright orientation. This value can only ever be between0and7, just like its redstone output when measured with a comparator.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- [NBT Compound / JSON Object] item: The item to display and dispense.
- A single item stack see Template:Nbt inherit/itemnoslot/template
- [Long] spawn_item_after_ticks: Total time in ticks to display the item, before dispensing it.
- [NBT Compound / JSON Object] Entity data
- Tags common to all entities see Template:Nbt inherit/entity/template
- Tags common to all block entities that can hang from blocks see Template:Nbt inherit/hangable/template
- except for the tag:
Facing - [Byte] facing: The direction the painting faces: 0 is south, 1 is west, 2 is north, 3 is east
- [String] variant: One painting variant (an [String] ID)
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.9 | 15w31a | Added tags HandItems, ArmorItems, HandDropChances, and ArmorDropChances to Living. | |||||
The Tag Equipment (under Living) has become deprecated. | |||||||
The Tag DropChances (under Living) has become deprecated. | |||||||
| 1.17 | 20w45a | Entities have been extracted from main (terrain) chunks and are now stored in separate entities directory (similar to POI storage). Those new files are still region files with NBT. | |||||
| 1.19 | 22w11a | The Id tag for each effect in a mob's ActiveEffects tag is now a [Int] TAG_Integer instead of a [Byte] TAG_Byte. | |||||
| 1.20.2 | 23w32a | In NBT format for entity type mooshroom, removed EffectId and EffectDuration, and added stew_effects, with the same format as effects field in suspicious_stew item format.
| |||||
In NBT format for entity type area_effect_cloud, renamed Effects to effects.
| |||||||
In NBT format for entity type arrow, renamed CustomPotionEffects to custom_potion_effects.
| |||||||
In NBT format for living entities (players, armor stands, and all mobs), renamed ActiveEffects to active_effects, and inside that renamed Ambient to ambient, Amplifier to amplifier, Duration to duration, HiddenEffect to hidden_effect, Id to id, ShowIcon to show_icon, ShowParticles to show_particles, and changed id from a [Int] TAG_Integer to a [String] TAG_String. | |||||||
| 1.20.3 | 23w42a | In NBT format for entity type tnt, added block_state, and renamed Fuse to fuse. | |||||
| 23w43a | In NBT format for entity type arrow and spectral_arrow, added item.
| ||||||
In NBT format for entity type trident, renamed Trident to item. | |||||||
| 1.20.5 | 23w51a | Added [Byte] armor tag in wolf to denote whether a wolf is wearing wolf armor. | |||||
| 24w05a | Replaced [NBT Compound / JSON Object] ArmorItem tag in horse with [NBT Compound / JSON Object] body_armor_item. | ||||||
| Replaced [NBT Compound / JSON Object] DecorItem tag in llama with [NBT Compound / JSON Object] body_armor_item. | |||||||
| Replaced [Byte] armor tag in wolf with [NBT Compound / JSON Object] body_armor_item. | |||||||
| 24w06a | All block positions are now stored as an array of 3 integers instead of a map of X, Y, and Z. | ||||||
Leash in all leashable entities has been renamed to leash.
| |||||||
PatrolTarget in patrolling mobs has been renamed to patrol_target. | |||||||
| 1.21.4 | 24w44a | In NBT format for entity type tnt_minecart, added optional field explosion_speed_factor. | |||||
The TNTFuse field of TNT Minecarts has been renamed to fuse. | |||||||
| 1.21.5 | 25w02a | The [NBT Compound / JSON Object] ArmorDropChances, [NBT Compound / JSON Object] HandDropChances, and [NBT Compound / JSON Object] body_armor_drop_chance fields have been merged into a [NBT Compound / JSON Object] drop_chances field. | |||||
| Drop chances with a default value will no longer be stored, and the [NBT Compound / JSON Object] drop_chances field is removed entirely if all defaults. | |||||||
| Area effect clouds have a new field: [Float] potion_duration_scale. | |||||||
| 25w03a | The [NBT Compound / JSON Object] ArmorItems, [NBT Compound / JSON Object] HandItems, and [NBT Compound / JSON Object] body_armor_item fields have been merged into an [NBT Compound / JSON Object] equipment field. | ||||||
| 25w07a | Pos, Motion, and Rotation values without the correct number of components (3, 3, and 2 respectively) will now be fully discarded, instead of only selecting the specified components. | ||||||
| The [Int] SleepingX, [Int] SleepingY, and [Int] SleepingZ fields have been collected into a single [Int Array] sleeping_pos field | |||||||
| 25w09a | The FallFlying field will no longer be preserved if removed. | ||||||
The Health and Air fields now default to their respective maximum value if not specified. | |||||||
| 25w10a | Custom data (previously present only on markers) is now available on all entities. | ||||||
| 1.21.6 | 25w15a | area_effect_cloud: the Particle field has been renamed to custom_particle, and now always functions as an exact override for the default colored entity_effect particle. | |||||
| 25w18a | Added home_pos and home_radius fields to all mobs. | ||||||
| 25w19a | tnt: The entity that primed the TNT is now stored in an optional owner field (UUID of Living entity). | ||||||
vex: The owner of a vex is now stored in an optional owner field (UUID of Mob).
| |||||||
References
| |||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
