Entity metadata

Various Entities have different metadata fields and status codes.

Mobs
Mobs are spawned via Spawn Mob.

Objects
Objects are spawned via Spawn Object. See Object Data for more details.

Since release, all minecarts are spawned with object type 10 and their functionality is then specified in the Data field within the packet. Also, their visual appearance may be sent via the Entity Metadata packet.

Entity Metadata Format
Note that entity metadata is a totally distinct concept from block metadata. It is not required to send all metadata fields, or even any metadata fields, so long as the terminating entry is correctly sent.

Entity Metadata is an array of entries, each of which looks like the following:

Villager type ( registry):

Villager professions ( registry):

Entity classes also recursively inherit fields from classes they extend.

Throwable
No additional metadata.

Itemed Throwable
Used for all things that previously extended throwable other than potions, which already had an item.

Egg
No additional metadata.

An empty item behaves as if the item were a.

Ender Pearl
No additional metadata.

An empty item behaves as if the item were a.

Experience Bottle
No additional metadata.

An empty item behaves as if the item were a

Snowball
No additional metadata.

An empty item behaves as if the item were a

Arrow
Abstract base class for TippedArrow (which is used for regular arrows as well as tipped ones) and Spectral Arrow.

TippedArrow
Used for both tipped and regular arrows. If not tipped, then color is set to -1 and no tipped arrow particles are used.

Abstract Fireball
No additional metadata.

Dragon Fireball
No additional metadata.

Itemed Fireball
Used for regular and small fireballs. Not used for dragon fireballs and wither skulls. Interestingly, regular fireballs do not come from an item.

Fireball
This is the large fireball shot by ghasts.

No additional metadata.

Small Fireball
This is the fireball shot by blazes and dispensers with fire charges.

No additional metadata.

Hanging
No additional metadata.

ArmorStand
Note that armor stands with the invisible flag from the base entity class set also cannot be attacked or damaged, except for by the void.

Ambient
No additional metadata.

Creature
No additional metadata.

WaterMob
No additional metadata.

Squid
No additional metadata.

Cod
No additional metadata.

Salmon
No additional metadata.

Animal
No additional metadata.

Trader Llama
No additional metadata.

Pig
Whenever a carrot on a stick is used, if the pig is not currently boosting it will start to boost for 140 to 980 (inclusive) ticks. When boost time is changed, a counter is reset which counts up to the boost time, after which boosting will stop. The value remains set at its modified value even after boosting is stopped.

Chicken
No additional metadata.

Cow
No additional metadata.

Wandering Trader
No additional metadata.

Golem
No additional metadata.

Monster
No additional metadata.

Endermite
No additional metadata.

Giant Zombie
No additional metadata.

Silverfish
No additional metadata.

Raid Participant
"Is celebrating" appears to control the pose for vindicators and does not appear to be used by other types.

Abstract Illager
No additional metadata.

Ravager
No additional metadata.

EvocationFangs
No additional metadata.

AbstractSkeleton
No additional metadata.

Husk
No additional metadata.

Drowned
No additional metadata.

EnderDragon
Phases (according to ) are:


 * 0: circling
 * 1: strafing (preparing to shoot a fireball)
 * 2: flying to the portal to land (part of transition to landed state)
 * 3: landing on the portal (part of transition to landed state)
 * 4: taking off from the portal (part of transition out of landed state)
 * 5: landed, performing breath attack
 * 6: landed, looking for a player for breath attack
 * 7: landed, roar before beginning breath attack
 * 8: charging player
 * 9: flying to portal to die
 * 10: hovering with no AI (default when using the /summon command).

Flying
No additional metadata.

Phantom
Hitbox size is determined by horizontal=0.9 + 0.2*size and vertical=0.5 + 0.1 * i

Minecart
If show custom block is false, then each type of Minecart will render its own type of block with its own properties. Note that one does not need to send these values for the metadata fields, as the client will automatically select them if show custom block is false. They are only provided for reference to help with swapping out other blocks.


 * Rideable Minecarts contain air (0:0) and have a y position of 6
 * Chest Minecarts contain chests facing north (54:0) and have a y position of 8
 * Furnace Minecarts contain a normal furnace facing north when unpowered (61:0) and a lit furnace facing north when powered (62:0) and have a y position of 6 in both cases
 * Hopper Minecarts contain a hopper (154:0) and have a y position of 1
 * TNT Minecarts contain TNT (46:0) and have a y position of 6
 * Command block minecarts contain a Command Block (137:0) and have a y position of 6
 * Spawner Minecarts contain a spawner (52:0) and have a y position of 6

MinecartRideable
No additional metadata.

MinecartContainer
No additional metadata.

MinecartHopper
No additional metadata.

MinecartChest
No additional metadata.

MinecartTNT
No additional metadata.

MinecartSpawner
No additional metadata.