Difference between revisions of "Entity metadata"

From wiki.vg
Jump to navigation Jump to search
m (→‎Creeper: Fix link)
(→‎Abstract Arrow: See Protocol History#18w30a; this field was not used)
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Various '''Entities''' have different metadata fields and [[Entity_statuses|status codes]].
+
Various '''Entities''' have different metadata fields and [[Entity statuses|status codes]].
  
== Unmerged information ==
+
== Mobs ==
<div style="background: repeating-linear-gradient(-55deg, #dff, #dff 10px, #fdf 10px, #fdf 20px); padding: 10px">
 
{{Warning2|Unmerged content from 1.14.4.  This needs to be merged eventually but I don't want to do it now.}}
 
  
{{Warning2|Entity metadata shifted in 19w08a; not all entities are copied here.  All subclasses of entity had shift of 1; all subclasses of living had a second shift (2 total).  All entities listed in the article have been updated, but there are ones not listed here. }}
+
Mobs are spawned via [[Protocol#Spawn_Mob|Spawn Mob]].
  
=== Entity Metadata Format ===
+
{{Warning2|Some entities (marked in yellow) should only be spawned using [[Protocol#Spawn_Object|Spawn Object]] and their [[#Objects|Object ID]].  While they also have an entity ID, this ID is only used internally.  Servers should not attempt to spawn these entities using [[Protocol#Spawn Mob|Spawn Mob]] with that entity ID, although clients should accept such packets if they appear.
  
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.
+
Additionally, a few other entities (marked in blue) must be spawned in their own special ways:
 +
* {{Minecraft Wiki|Painting}}s should be spawned using [[Protocol#Spawn_Painting|Spawn Painting]]
 +
* XP orbs should be spawned using [[Protocol#Spawn_Experience_Orb|Spawn Experience Orb]].}}
  
Entity Metadata is an array of entries, each of which looks like the following:
+
{{Warning2|These entity IDs are out of date.  Use [[Data Generators]] or [https://pokechu22.github.io/Burger/1.15.2.html Burger] to get current IDs.}}
  
 
{| class="wikitable"
 
{| class="wikitable"
! Name
+
|-
! Type
+
! Type
! Meaning
+
! Name
|-
+
! bounding box x and z
| Index
+
! bounding box y
| Unsigned Byte
+
! ID
| Unique index key determining the meaning of the following value, see the table below. If this is <code>0xff</code> then the it is the end of the Entity Metadata array and no more is read.
+
|- style="background: #ffff88;"
|-
+
| 0
| Type
+
| AreaEffectCloud
| Optional VarInt Enum
+
| 2.0 * Radius
| Only if Index is not <code>0xff</code>; the type of the index, see the table below
+
| 0.5
|-
+
| <code>minecraft:area_effect_cloud</code>
| Value
+
|- style="background: #ffff88;"
| Optional ''value of Type''
+
| 1
| Only if Index is not <code>0xff</code>: the value of the metadata field
+
| ArmorStand
|}
+
| normal: 0.5 marker: 0.0 small: 0.25
 
+
| normal: 1.975 marker: 0.0 small: 0.9875
{| class="wikitable"
+
| <code>minecraft:armor_stand</code>
! Value of Type field
+
|- style="background: #ffff88;"
! [[Data types|Type]] of Value field
+
| 2
! Notes
+
| Arrow
|-
+
| 0.5
| 0
+
| 0.5
| Byte
+
| <code>minecraft:arrow</code>
|
+
|-
|-
+
| 3
| 1
+
| Bat
| VarInt
+
| 0.5
|
+
| 0.9
|-
+
| <code>minecraft:bat</code>
| 2
+
|-
| Float
+
| 4
|
+
| Blaze
|-
+
| 0.6
| 3
+
| 1.8
| String
+
| <code>minecraft:blaze</code>
|
+
|- style="background: #ffff88;"
|-
+
| 5
| 4
+
| Boat
| [[Chat]]
+
| 1.375
|
+
| 0.5625
|-
+
| <code>minecraft:boat</code>
| 5
+
|-
| OptChat (Boolean + Optional [[Chat]])
+
| 6
| [[Chat]] is present if the Boolean is set to true
+
| CaveSpider
|-
+
| 0.7
| 6
+
| 0.5
| [[Slot]]
+
| <code>minecraft:cave_spider</code>
|
+
|-
|-
+
| 7
| 7
+
| Chicken
| Boolean
+
| 0.4
|
+
| 0.7
|-
+
| <code>minecraft:chicken</code>
| 8
+
|-
| Rotation
+
| 8
| 3 floats: rotation on x, rotation on y, rotation on z
+
| Cod
|-
+
| 0.9
| 9
+
| 1.4
| [[Data Types#Position|Position]]
+
| <code>minecraft:cod</code>
|
+
|-
|-
+
| 9
| 10
+
| Cow
| OptPosition (Boolean + Optional Position)
+
| 0.9
| Position is present if the Boolean is set to true
+
| 1.4
|-
+
| <code>minecraft:cow</code>
| 11
+
|-
| Direction (VarInt)
+
| 10
| (Down = 0, Up = 1, North = 2, South = 3, West = 4, East = 5)
+
| Creeper
|-
+
| 0.6
| 12
+
| 1.7
| OptUUID (Boolean + Optional UUID)
+
| <code>minecraft:creeper</code>
| UUID is present if the Boolean is set to true
+
|-
|-
+
| 11
| 13
+
| Donkey
| OptBlockID (VarInt)
+
| 1.3964844
| 0 for absent otherwise, <code><nowiki>id &lt;&lt; 4 | data</nowiki></code>
+
| 1.6
|-
+
| <code>minecraft:donkey</code>
| 14
+
|-
| [[NBT]]
+
| 12
|
+
| Dolphin
|-
+
| 0.9
| 15
+
| 0.6
| [[Data Types#Particle|Particle]]
+
| <code>minecraft:dolphin</code>
|
+
|- style="background: #ffff88;"
|- {{Added}}
+
| 13
| 16
+
| DragonFireball
| Villager Data
+
| 1.0
| 3 VarInts: villager type, villager profession, level
+
| 1.0
|- {{Added}}
+
| <code>minecraft:dragon_fireball</code>
| 17
+
|-
| OptVarInt
+
| 14
| 0 for absent; 1 + actual value otherwise.  Used for entity IDs.
+
| Drowned
|- {{Added}}
+
| ?
| 18
+
| ?
| Pose
+
| <code>minecraft:drowned</code>
| A VarInt enum: 0: STANDING, 1: FALL_FLYING, 2: SLEEPING, 3: SWIMMING, 4: SPIN_ATTACK, 5: SNEAKING, 6: DYING
+
|-
|}
+
| 15
 
+
| ElderGuardian
Villager type (<code>minecraft:villager_type</code> registry):
+
| 1.9975 (2.35 * guardian)
 
+
| 1.9975 (2.35 * guardian)
{| class="wikitable"
+
| <code>minecraft:elder_guardian</code>
! Name !! ID
+
|- style="background: #ffff88;"
|-
+
| 16
| <code>minecraft:desert</code> || 0
+
| EnderCrystal
|-
+
| 2.0
| <code>minecraft:jungle</code> || 1
+
| 2.0
|-
+
| <code>minecraft:end_crystal</code>
| <code>minecraft:plains</code> || 2
+
|-
|-
+
| 17
| <code>minecraft:savanna</code> || 3
+
| EnderDragon
|-
+
| 16.0
| <code>minecraft:snow</code> || 4
+
| 8.0
|-
+
| <code>minecraft:ender_dragon</code>
| <code>minecraft:swamp</code> || 5
+
|-
|-
+
| 18
| <code>minecraft:taiga</code> || 6
+
| Enderman
|}
+
| 0.6
 
+
| 2.9
Villager professions (<code>minecraft:villager_profession</code> registry):
+
| <code>minecraft:enderman</code>
 
+
|-
{| class="wikitable"
+
| 19
! Name !! ID
+
| Endermite
|-
+
| 0.4
| <code>minecraft:none</code> || 0
+
| 0.3
|-
+
| <code>minecraft:endermite</code>
| <code>minecraft:armorer</code> || 1
+
|- style="background: #ffff88;"
|-
+
| 20
| <code>minecraft:butcher</code> || 2
+
| EvocationFangs
|-
+
| 0.5
| <code>minecraft:cartographer</code> || 3
+
| 0.8
|-
+
| <code>minecraft:evoker_fangs</code>
| <code>minecraft:cleric</code> || 4
+
|-
|-
+
| 21
| <code>minecraft:farmer</code> || 5
+
| EvocationIllager
|-
+
| 0.6
| <code>minecraft:fisherman</code> || 6
+
| 1.95
|-
+
| <code>minecraft:evoker</code>
| <code>minecraft:fletcher</code> || 7
+
|- style="background: #aaaaff;"
|-
+
| 22
| <code>minecraft:leatherworker</code> || 8
+
| XPOrb
|-
+
| 0.5
| <code>minecraft:librarian</code> || 9
+
| 0.5
|-
+
| <code>minecraft:experience_orb</code>
| <code>minecraft:mason</code> || 10
+
|- style="background: #ffff88;"
|-
+
| 23
| <code>minecraft:nitwit</code> || 11
+
| EyeOfEnderSignal
|-
+
| 0.25
| <code>minecraft:shepherd</code> || 12
+
| 0.25
|-
+
| <code>minecraft:eye_of_ender</code>
| <code>minecraft:toolsmith</code> || 13
+
|- style="background: #ffff88;"
|-
+
| 24
| <code>minecraft:weaponsmith</code> || 14
+
| FallingSand
|}
+
| 0.98
 
+
| 0.98
=== Mobs ===
+
| <code>minecraft:falling_block</code>
 
+
|- style="background: #ffff88;"
Entity IDs have shifted with the addition of some new mobs.
+
| 25
 
+
| FireworksRocketEntity
=== Entity ===
+
| 0.25
 
+
| 0.25
The base class.
+
| <code>minecraft:fireworks_rocket</code>
 
+
|-
{| class="wikitable"
+
| 26
! Index
+
| Ghast
! Type
+
| 4
!style="width: 250px;" colspan="2"| Meaning
+
| 4
! Default
+
| <code>minecraft:ghast</code>
|-
+
|-
|rowspan="9"| 0
+
| 27
|rowspan="9"| Byte
+
| Giant
! Bit mask
+
| 3.6
! Meaning
+
| 10.8
|rowspan="9"| 0
+
| <code>minecraft:giant</code>
|-
+
|-
| 0x01
+
| 28
| On Fire
+
| Guardian
|-
+
| 0.85
| 0x02
+
| 0.85
| Crouched
+
| <code>minecraft:guardian</code>
|-
+
|-
| 0x04
+
| 29
| Unused (previously riding)
+
| Horse (EntityHorse until 1.11)
|-
+
| 1.3964844
| 0x08
+
| 1.6
| Sprinting
+
| <code>minecraft:horse</code>
|-
+
|-
| 0x10
+
| 30
| Swimming
+
| Husk
|-
+
| 0.6
| 0x20
+
| 1.95
| Invisible
+
| <code>minecraft:husk</code>
|-
+
|-
| 0x40
+
| 31
| Glowing effect
+
| IllusionIllager
|-
+
| 0.6
| 0x80
+
| 1.95
| Flying with {{Minecraft Wiki|elytra}}
+
| <code>minecraft:illusioner</code>
|-
+
|- style="background: #ffff88;"
| 1
+
| 32
| VarInt
+
| Item
|colspan="2"| Air
+
| 0.25
| 300
+
| 0.25
|-
+
| <code>minecraft:item</code>
| 2
+
|- style="background: #ffff88;"
| OptChat
+
| 33
|colspan="2"| Custom name
+
| ItemFrame
| empty
+
| 0.75 or 0.0625 (depth)
|-
+
| 0.75
| 3
+
| <code>minecraft:item_frame</code>
| Boolean
+
|- style="background: #ffff88;"
|colspan="2"| Is custom name visible
+
| 34
| false
+
| Fireball (ghast)
|-
+
| 1.0
| 4
+
| 1.0
| Boolean
+
| <code>minecraft:fireball</code>
|colspan="2"| Is silent
+
|- style="background: #ffff88;"
| false
+
| 35
|-
+
| LeashKnot
| 5
+
| 0.375
| Boolean
+
| 0.5
|colspan="2"| No gravity
+
| <code>minecraft:leash_knot</code>
| false
+
|-
|- {{Added}}
+
| 36
| 6
+
| Llama
| Pose
+
| 0.9
|colspan="2"| Pose
+
| 1.87
| STANDING
+
| <code>minecraft:llama</code>
|}
+
|- style="background: #ffff88;"
 
+
| 37
=== Itemed Throwable ===
+
| LlamaSpit
 
+
| 0.25
Extends [[#Throwable|Throwable]].
+
| 0.25
 
+
| <code>minecraft:llama_spit</code>
Used for all things that previously extended throwable other than potions, which already had an item.
+
|-  
 
+
| 38
{| class="wikitable" {{added}}
+
| LavaSlime (Magma Cube)
! Index
+
| 0.51000005 * size
! Type
+
| 0.51000005 * size
!style="width: 250px;" colspan="2"| Meaning
+
| <code>minecraft:magma_cube</code>
! Default
+
|- style="background: #ffff88;"
|-
+
| 39
| 7
+
| MinecartRideable
| Slot
+
| 0.98
|colspan="2"| Item
+
| 0.7
| empty (which behaves as if it were a specific item, depending on the subclass)
+
| <code>minecraft:minecart</code>
|}
+
|- style="background: #ffff88;"
 
+
| 40
=== Egg ===
+
| MinecartChest
 
+
| 0.98
Extends [[#Itemed_Throwable|Itemed Throwable]].
+
| 0.7
 
+
| <code>minecraft:chest_minecart</code>
No additional metadata.
+
|- style="background: #ffff88;"
 
+
| 41
An empty item behaves as if the item were a <code>minecraft:egg</code>.
+
| MinecartCommandBlock
 
+
| 0.98
=== Ender Pearl ===
+
| 0.7
 
+
| <code>minecraft:commandblock_minecart</code>
Extends [[#Itemed_Throwable|Itemed Throwable]].
+
|- style="background: #ffff88;"
 
+
| 42
No additional metadata.
+
| MinecartFurnace
 
+
| 0.98
An empty item behaves as if the item were a <code>minecraft:ender_pearl</code>.
+
| 0.7
 
+
| <code>minecraft:furnace_minecart</code>
=== Experience Bottle ===
+
|- style="background: #ffff88;"
 
+
| 43
Extends [[#Itemed_Throwable|Itemed Throwable]].
+
| MinecartHopper
 
+
| 0.98
No additional metadata.
+
| 0.7
 
+
| <code>minecraft:hopper_minecart</code>
<code>minecraft:experience_bottle</code>
+
|- style="background: #ffff88;"
 
+
| 44
=== Snowball ===
+
| MinecartSpawner
 
+
| 0.98
Extends [[#Itemed_Throwable|Itemed Throwable]].
+
| 0.7
 
+
| <code>minecraft:spawner_minecart</code>
No additional metadata.
+
|- style="background: #ffff88;"
 
+
| 45
<code>minecraft:snowball</code>
+
| MinecartTNT
 
+
| 0.98
=== Eye of Ender ===
+
| 0.7
 
+
| <code>minecraft:tnt_minecart</code>
Extends [[#Entity|Entity]].
+
|-
 
+
| 46
{| class="wikitable" {{added}}
+
| Mule
! Index
+
| 1.3964844
! Type
+
| 1.6
!style="width: 250px;" colspan="2"| Meaning
+
| <code>minecraft:mule</code>
! Default
+
|-
|-
+
| 47
| 7
+
| MushroomCow (Mooshroom)
| Slot
+
| 0.9
|colspan="2"| Item
+
| 1.4
| empty (which behaves as if it were a <code>minecraft:ender_eye</code>)
+
| <code>minecraft:mooshroom</code>
|}
+
|-
 
+
| 48
=== Arrow ===
+
| Ozelot (Ocelot)
 
+
| 0.6
Extends [[#Entity|Entity]].
+
| 0.7
 
+
| <code>minecraft:ocelot</code>
Abstract base class for [[#TippedArrow|TippedArrow]] (which is used for regular arrows as well as tipped ones) and Spectral Arrow.
+
|- style="background: #aaaaff;"
 
+
| 49
{| class="wikitable"
+
| Painting
! Index
+
| type width or 0.0625 (depth)
! Type
+
| type height
!style="width: 250px;" colspan="2"| Meaning
+
| <code>minecraft:painting</code>
! Default
+
|-
|-
+
| 50
| rowspan="3" | {{change|6|7}}
+
| Parrot
| rowspan="3" | Byte
+
| 0.5
! Bit mask
+
| 0.9
! Meaning
+
| <code>minecraft:parrot</code>
| rowspan="3" | 0
+
|-
|-
+
| 51
| 0x01
+
| Pig
| Is critical
+
| 0.9
|-
+
| 0.9
| 0x02
+
| <code>minecraft:pig</code>
| Is noclip (used by loyalty tridents when returning)
+
|-
|-
+
| 52
| {{change|7|8}}
+
| Pufferfish
| OptUUID
+
| ?
|colspan="2"| Shooter UUID
+
| ?
| Empty
+
| <code>minecraft:pufferfish</code>
|- {{added}}
+
|-
| 9
+
| 53
| Byte
+
| PigZombie
|colspan="2"| Piercing level
+
| 0.6
| 0
+
| 1.95
|}
+
| <code>minecraft:zombie_pigman</code>
 
+
|-
=== TippedArrow ===
+
| 54
 
+
| PolarBear
Extends [[#Arrow|Arrow]].
+
| 1.3
 
+
| 1.4
Used for both tipped and regular arrows. If not tipped, then color is set to -1 and no tipped arrow particles are used.
+
| <code>minecraft:polar_bear</code>
 
+
|- style="background: #ffff88;"
{| class="wikitable"
+
| 55
! Index
+
| PrimedTnt
! Type
+
| 0.98
!style="width: 250px;" colspan="2"| Meaning
+
| 0.98
! Default
+
| <code>minecraft:tnt</code>
|-
+
|-
| {{change|8|10}}
+
| 56
| VarInt
+
| Rabbit
|colspan="2"| Color (-1 for no particles)
+
| 0.4
| -1
+
| 0.5
|}
+
| <code>minecraft:rabbit</code>
 
+
|-
=== Trident ===
+
| 57
 
+
| Salmon
Extends [[#Arrow|Arrow]].
+
| ?
 
+
| ?
{| class="wikitable"
+
| <code>minecraft:salmon</code>
! Index
+
|-
! Type
+
| 58
!style="width: 250px;" colspan="2"| Meaning
+
| Sheep
! Default
+
| 0.9
|-
+
| 1.3
| {{change|8|10}}
+
| <code>minecraft:sheep</code>
| VarInt
+
|-
|colspan="2"| Loyalty level (enchantment)
+
| 59
| 0
+
| Shulker
|}
+
| 1.0
 
+
| 1.0-2.0 (depending on peek)
=== Itemed Fireball ===
+
| <code>minecraft:shulker</code>
 
+
|- style="background: #ffff88;"
Extends [[#Entity|Entity]].
+
| 60
 
+
| ShulkerBullet
Used for regular and small fireballs.  Not used for dragon fireballs and wither skulls.  Interestingly, regular fireballs do not come from an item.
+
| 0.3125
 
+
| 0.3125
{| class="wikitable" {{added}}
+
| <code>minecraft:shulker_bullet</code>
! Index
+
|-
! Type
+
| 61
!style="width: 250px;" colspan="2"| Meaning
+
| Silverfish
! Default
+
| 0.4
|-
+
| 0.3
| 7
+
| <code>minecraft:silverfish</code>
| Slot
+
|-
|colspan="2"| Item
+
| 62
| empty (which behaves as if it were a <code>minecraft:fire_charge</code>)
+
| Skeleton
|}
+
| 0.6
 
+
| 1.99
=== Fireball ===
+
| <code>minecraft:skeleton</code>
 
+
|-
Extends {{change|[[#Abstract Fireball|Abstract Fireball]]|[[#Itemed Fireball|Itemed Fireball]]}}.  This is the large fireball shot by ghasts.
+
| 63
 
+
| SkeletonHorse
No additional metadata.
+
| 1.3964844
 
+
| 1.6
=== Small Fireball ===
+
| <code>minecraft:skeleton_horse</code>
 
+
|-
Extends {{change|[[#Abstract Fireball|Abstract Fireball]]|[[#Itemed Fireball|Itemed Fireball]]}}. This is the fireball shot by blazes and dispensers with fire charges.
+
| 64 (67: 1.14)
 
+
| Slime
No additional metadata.
+
| 0.51000005 * size
 
+
| 0.51000005 * size
=== Fireworks ===
+
| <code>minecraft:slime</code>
 
+
|- style="background: #ffff88;"
Extends [[#Entity|Entity]].
+
| 65
 
+
| SmallFireball (blaze)
{| class="wikitable"
+
| 0.3125
! Index
+
| 0.3125
! Type
+
| <code>minecraft:small_fireball</code>
!style="width: 250px;" colspan="2"| Meaning
+
|-
! Default
+
| 66
|-
+
| SnowMan
| {{change|6|7}}
+
| 0.7
| [[Slot]]
+
| 1.9
|colspan="2"| Firework info
+
| <code>minecraft:snow_golem</code>
| empty
+
|- style="background: #ffff88;"
|-
+
| 67
| {{change|7|8}}
+
| Snowball
| {{Change|VarInt|OptVarInt}}
+
| 0.25
|colspan="2"| Entity ID of entity which used firework (for elytra boosting)
+
| 0.25
| 0
+
| <code>minecraft:snowball</code>
|- {{Added}}
+
|- style="background: #ffff88;"
| 9
+
| 68
| Boolean
+
| SpectralArrow
|colspan="2"| Shot at angle (from a crossbow)
+
| 0.5
| false
+
| 0.5
|}
+
| <code>minecraft:spectral_arrow</code>
 
+
|-
=== Living ===
+
| 69
 
+
| Spider
Extends [[#Entity|Entity]].
+
| 1.4
 
+
| 0.9
{| class="wikitable"
+
| <code>minecraft:spider</code>
! Index
+
|-
! Type
+
| 70
!style="width: 250px;" colspan="2"| Meaning
+
| Squid
! Default
+
| 0.8
|-
+
| 0.8
|rowspan="5"| {{change|6|7}}
+
| <code>minecraft:squid</code>
|rowspan="5"| Byte
+
|-
|colspan="2"| Hand states, used to trigger blocking/eating/drinking animation.
+
| 71
|rowspan="5"| 0
+
| Stray
|-
+
| 0.6
! Bit mask
+
| 1.99
! Meaning
+
| <code>minecraft:stray</code>
|-
+
|-
| 0x01
+
| 72
| Is hand active
+
| Tropical Fish
|-
+
| 0.5
| 0x02
+
| 0.4
| Active hand (0 = main hand, 1 = offhand)
+
| <code>minecraft:tropical_fish</code>
|-
+
|-
| 0x04
+
| 73
| In riptide spin attack
+
| Turtle
|-
+
| 1.2
| {{change|7|8}}
+
| 0.4
| Float
+
| <code>minecraft:turtle</code>
|colspan="2"| Health
+
|- style="background: #ffff88;"
| 1.0
+
| 74
|-
+
| ThrownEgg
| {{change|8|9}}
+
| 0.25
| VarInt
+
| 0.25
|colspan="2"| Potion effect color (or 0 if there is no effect)
+
| <code>minecraft:egg</code>
| 0
+
|- style="background: #ffff88;"
|-
+
| 75
| {{change|9|10}}
+
| ThrownEnderpearl
| Boolean
+
| 0.25
|colspan="2"| Is potion effect ambient: reduces the number of particles generated by potions to 1/5 the normal amount
+
| 0.25
| false
+
| <code>minecraft:ender_pearl</code>
|-
+
|- style="background: #ffff88;"
| {{change|10|11}}
+
| 76
| VarInt
+
| ThrownExpBottle
|colspan="2"| Number of arrows in entity
+
| 0.25
| 0
+
| 0.25
|- {{Added}}
+
| <code>minecraft:experience_bottle</code>
| 12
+
|- style="background: #ffff88;"
| OptBlockPos
+
| 77
|colspan="2"| Unknown (Bed location?)
+
| ThrownPotion
| Absent
+
| 0.25
|}
+
| 0.25
 
+
| <code>minecraft:potion</code>
=== Panda ===
+
|-
 
+
| 78
Extends [[#Animal|Animal]].
+
| Vex
 
+
| 0.4
{| class="wikitable" {{added}}
+
| 0.8
! Index
+
| <code>minecraft:vex</code>
! Type
+
|-
!style="width: 250px;" colspan="2"| Meaning
+
| 79
! Default
+
| Villager
|-
+
| 0.6
| 15
+
| 1.95
| Integer
+
| <code>minecraft:villager</code>
|colspan="2"| Breed timer?  Set to 32 when something happens, and then counts down to 0 again. At 29 and 14 (before counting down), will play the <code>entity.panda.cant_breed</code> sound event.
+
|-
| 0
+
| 80
|-
+
| VillagerGolem (Iron Golem)
| 16
+
| 1.4
| Integer
+
| 2.7
|colspan="2"| Sneeze timer.  Counts up from 0; when it hits 1 the <code>entity.panda.pre_sneeze</code> event plays and when it hits 21 the <code>entity.panda.sneeze</code> event plays (and it is set back to 0 and the sneeze flag is cleared).
+
| <code>minecraft:iron_golem}</code>
| 0
+
|-
|-
+
| 81
| 17
+
| VindicationIllager
| Integer
+
| 0.6
|colspan="2"| Eat timer.  If nonzero, counts upwards.
+
| 1.95
| 0
+
| <code>minecraft:vindicator</code>
|-
+
|-
| 18
+
| 82
| Byte
+
| Witch
|colspan="2"| Main Gene
+
| 0.6
| 0
+
| 1.95
|-
+
| <code>minecraft:witch</code>
| 19
+
|-
| Byte
+
| 83
|colspan="2"| Hidden Gene
+
| WitherBoss
| 0
+
| 0.9
|-
+
| 3.5
|rowspan="6"| 20
+
| <code>minecraft:wither</code>
|rowspan="6"| Byte
+
|-
! Bit mask
+
| 84
! Meaning
+
| WitherSkeleton
|rowspan="6"| 0
+
| 0.7
|-
+
| 2.4
| 0x01
+
| <code>minecraft:wither_skeleton</code>
| Unused
+
|- style="background: #ffff88;"
|-
+
| 85
| 0x02
+
| WitherSkull
| Is sneezing
+
| 0.3125
|-
+
| 0.3125
| 0x04
+
| <code>minecraft:wither_skull</code>
| Is eating
+
|-
|-
+
| 86
| 0x08
+
| Wolf
| Unknown
+
| 0.6
|-
+
| 0.85
| 0x10
+
| <code>minecraft:wolf</code>
| Unknown
+
|-
|}
+
| 87
 
+
| Zombie
=== Fox ===
+
| 0.6
 
+
| 1.95
Extends [[#Animal|Animal]].
+
| <code>minecraft:zombie</code>
 
+
|-
{| class="wikitable" {{added}}
+
| 88
! Index
+
| ZombieHorse
! Type
+
| 1.3964844
!style="width: 250px;" colspan="2"| Meaning
+
| 1.6
! Default
+
| <code>minecraft:zombie_horse</code>
|-
+
|-
| 15
+
| 89
| VarInt
+
| ZombieVillager
| colspan="2" | Type (0: red, 1: snow)
+
| 0.6
| 0 (red)
+
| 1.95
|-
+
| <code>minecraft:zombie_villager</code>
| rowspan="9" | 16
+
|-
| rowspan="9" | Byte
+
| 90
! Bit mask
+
| Phantom
! Meaning
+
| 0.9
| rowspan="9" | 0
+
| 0.5
|-
+
| <code>minecraft:phantom</code>
| 0x01 || Sitting
+
|- style="background: #aaaaff;"
|-
+
| 91
| 0x02 || ''Unused''
+
| Lightning Bolt
|-
+
| -
| 0x04 || Crouching
+
| -
|-
+
| <code>minecraft:lightning_bolt</code>
| 0x08 || Unknown
+
|- style="background: #aaaaff;"
|-
+
| 92
| 0x10 || Unknown
+
| Player
|-
+
| 0.8
| 0x20 || Sleeping
+
| 1.8
|-
+
| <code>minecraft:player</code>
| 0x40 || Unknown
+
|- style="background: #ffff88;"
|-
+
| 93
| 0x80 || Unknown
+
| Fishing bobber
|-
+
| ?
| 17
+
| ?
| OptUUID
+
| <code>minecraft:fishing_bobber</code>
| colspan="2" | First UUID (in <code>UUIDs</code> NBT)?
+
|- style="background: #ffff88;"
| Absent
+
| 94
|-
+
| Trident
| 18
+
| ?
| OptUUID
+
| ?
| colspan="2" | Second UUID (in <code>UUIDs</code> NBT)?
+
| <code>minecraft:trident</code>
| Absent
+
|}
|}
 
 
 
=== Mooshroom ===
 
 
 
Extends [[#Cow|Cow]].
 
 
 
{{change|No additional metadata.}}
 
 
 
{| class="wikitable" {{added}}
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 15
 
| String
 
| colspan="2"| Variant ("red" or "brown")
 
| red
 
|}
 
 
 
=== Raid Participant ===
 
 
 
{{change||Extends [[#Monster|Monster]].}}
 
 
 
{| class="wikitable" {{added}}
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 14
 
| boolean
 
| colspan="2"| Is celebrating
 
| false
 
|}
 
  
"Is celebrating" appears to control the pose for vindicators and does not appear to be used by other types.
+
== Objects ==
  
=== Abstract Illager ===
+
Objects are spawned via [[Protocol#Spawn_Object|Spawn Object]]. See [[Object Data]] for more details.
  
Extends {{change|[[#Monster|Monster]]|[[#Raid Participant|Raid Participant]]}}.
+
{{Note|Object IDs and Entity IDs are differentMost objects also have an entity ID, but should only ever be spawned via [[Protocol#Spawn_Object|Spawn Object]].}}
 
 
{| class="wikitable" {{removed}}
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
  ! Default
 
|-
 
|rowspan="2"| 12
 
|rowspan="2"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="2"| 0
 
|-
 
| 0x01
 
| Has target (aggressive state)
 
|}
 
 
 
{{Change||Replaced with pose (presumably?)}}
 
 
 
=== Spellcaster Illager ===
 
 
 
Extends [[#Abstract Illager|Abstract Illlager]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{change|13|15}}
 
| Byte
 
| colspan="2"| Spell (0: none, 1: summon vex, 2: attack, 3: wololo, 4: disappear, 5: blindness)
 
| 0
 
|}
 
 
 
=== {{change|EvocationIllager|Evoker}} ===
 
 
 
Extends [[#Spellcaster Illager|Spellcaster Illager]].
 
 
 
=== {{change|IllusionIllager|Illusioner}} ===
 
 
 
Extends [[#Spellcaster Illager|Spellcaster Illager]].
 
 
 
=== Pillager ===
 
 
 
Extends [[#Abstract Illager|Abstract Illlager]].
 
 
 
{| class="wikitable" {{added}}
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 15
 
| Boolean
 
| colspan="2"| Using crossbow
 
| false
 
|}
 
 
 
=== {{change|VindicationIllager|Vindicator}} ===
 
 
 
Extends [[#Abstract Illager|Abstract Illager]].
 
 
 
=== Ravager ===
 
 
 
Extends [[#Raid Participant|Raid Participant]]
 
 
 
No additional metadata.
 
 
 
{| class="wikitable" {{added}}
 
! Status
 
!colspan="2"| Description
 
|-
 
| 4
 
|colspan="2"| Starts the attack animation.
 
|-
 
| 39
 
|colspan="2"| Starts the stun animation.
 
|}
 
 
 
=== Witch ===
 
 
 
Extends {{change|[[#Monster|Monster]]|[[#Raid Participant|Raid Participant]]}}.
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{change|12|15}}
 
| Boolean
 
|colspan="2"| Is drinking potion
 
| false
 
|}
 
 
 
=== AbstractSkeleton ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable" {{removed}}
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{change|12|14}}
 
| Boolean
 
|colspan="2"| Is swinging arms
 
| false
 
|}
 
 
 
{{Change||Replaced with pose (presumably?)}}
 
 
 
=== Zombie ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{change|12|14}}
 
| Boolean
 
|colspan="2"| Is baby
 
| false
 
|-
 
| {{change|13|15}}
 
| VarInt
 
|colspan="2"| Unused (previously type)
 
| 0
 
|- {{removed}}
 
| 14
 
| Boolean
 
|colspan="2"| Are hands held up
 
| false
 
|-
 
| {{change|15|16}}
 
| Boolean
 
|colspan="2"| Is becoming a drowned
 
| false
 
|}
 
 
 
{{Change||Replaced with pose (presumably?)}}
 
 
 
=== Zombie Villager ===
 
 
 
Extends [[#Zombie|Zombie]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{change|16|17}}
 
| Boolean
 
|colspan="2"| Is converting
 
| false
 
|-
 
| {{change|17|18}}
 
| {{Change|VarInt|Villager Data}}
 
|colspan="2"| {{Change|Profession|Villager Data}}
 
| {{change|0|Plains/None/1}}
 
|}
 
  
 +
{| class="wikitable"
 +
|-
 +
! ID
 +
! Name
 +
! bounding box x and z
 +
! bounding box y
 +
|-
 +
| 1
 +
| Boat
 +
| 1.375
 +
| 0.6
 +
|-
 +
| 2
 +
| Item Stack ([[Slot]])
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 3
 +
| Area Effect Cloud
 +
| 2.0 * Radius
 +
| 0.5
 +
|-
 +
| 10
 +
| Minecart
 +
| 0.98
 +
| 0.7
 +
|-
 +
| 50
 +
| Activated TNT
 +
| 0.98
 +
| 0.98
 +
|-
 +
| 51
 +
| EnderCrystal
 +
| 2.0
 +
| 2.0
 +
|-
 +
| 60
 +
| Tipped arrow (projectile; also used for regular arrows)
 +
| 0.5
 +
| 0.5
 +
|-
 +
| 61
 +
| Snowball (projectile)
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 62
 +
| Egg (projectile)
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 63
 +
| FireBall (ghast projectile)
 +
| 1.0
 +
| 1.0
 +
|-
 +
| 64
 +
| FireCharge (blaze projectile)
 +
| 0.3125
 +
| 0.3125
 +
|-
 +
| 65
 +
| Thrown Enderpearl
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 66
 +
| Wither Skull (projectile)
 +
| 0.3125
 +
| 0.3125
 +
|-
 +
| 67
 +
| Shulker Bullet
 +
| 0.3125
 +
| 0.3125
 +
|-
 +
| 68
 +
| Llama spit
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 70
 +
| Falling Objects
 +
| 0.98
 +
| 0.98
 +
|-
 +
| 71
 +
| Item frames
 +
| 0.75 or 0.0625
 +
| 0.75
 +
|-
 +
| 72
 +
| Eye of Ender
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 73
 +
| Thrown Potion
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 75
 +
| Thrown Exp Bottle
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 76
 +
| Firework Rocket
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 77
 +
| Leash Knot
 +
| 0.375
 +
| 0.5
 +
|-
 +
| 78
 +
| ArmorStand
 +
| normal: 0.5 marker: 0.0 small: 0.25
 +
| normal: 1.975 marker: 0.0 small: 0.9875
 +
|-
 +
| 79
 +
| Evocation Fangs
 +
| 0.5
 +
| 0.8
 +
|-
 +
| 90
 +
| Fishing Hook
 +
| 0.25
 +
| 0.25
 +
|-
 +
| 91
 +
| Spectral Arrow
 +
| 0.5
 +
| 0.5
 +
|-
 +
| 93
 +
| Dragon Fireball
 +
| 1.0
 +
| 1.0
 +
|-
 +
| 94
 +
| Trident
 +
| ?
 +
| ?
 +
|}
  
=== Ocelot ===
+
Since release {{Minecraft Wiki|1.6}}, all minecarts are spawned with object type 10 and their functionality is then specified in the [[Object Data#Minecarts (id 10)|Data field]] within the packet. Also, their visual appearance may be sent via the [[Protocol#Entity Metadata|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.
  
Extends {{change|[[#TameableAnimal|TameableAnimal]]|[[#Ageable|Ageable]]}}.
+
Entity Metadata is an array of entries, each of which looks like the following:
  
 
{| class="wikitable"
 
{| class="wikitable"
  ! Index
+
  ! Name
 
  ! Type
 
  ! Type
  !style="width: 250px;" colspan="2"| Meaning
+
  ! Meaning
! Default
+
  |-
  |- {{removed}}
+
  | Index
  | 15
+
  | Unsigned Byte
  | VarInt
+
  | Unique index key determining the meaning of the following value, see the table below. If this is <code>0xff</code> then the it is the end of the Entity Metadata array and no more is read.
  |colspan="2"| Type (0 = untamed, 1 = tuxedo, 2 = tabby, 3 = siamese). Used to render regardless as to whether it is tamed or not.
 
| 0
 
|- {{added}}
 
| 15
 
| Boolean
 
|colspan="2"| Is trusting
 
| false
 
|}
 
 
 
{| class="wikitable" {{added}}
 
! Status
 
!colspan="2"| Description
 
 
  |-
 
  |-
  | 40
+
  | Type
  |colspan="2"| Spawn smoke particles (trust gaining failed)
+
  | Optional VarInt Enum
 +
| Only if Index is not <code>0xff</code>; the type of the index, see the table below
 
  |-
 
  |-
  | 41
+
  | Value
  |colspan="2"| Spawn heart particles (trust gaining succeeded)
+
  | Optional ''value of Type''
 +
| Only if Index is not <code>0xff</code>: the value of the metadata field
 
  |}
 
  |}
  
=== Cat ===
+
{| class="wikitable"
 
+
  ! Value of Type field
Extends [[#TameableAnimal|TameableAnimal]].
+
  ! [[Data types|Type]] of Value field
 
+
  ! Notes
{| class="wikitable" {{added}}
+
|-
  ! Index
+
| 0
  ! Type
+
| Byte
  !style="width: 250px;" colspan="2"| Meaning
+
  |
  ! Default
 
 
  |-
 
  |-
  | 17
+
  | 1
 
  | VarInt
 
  | VarInt
  |colspan="2"| Type (0 = tabby, 1 = black, 2 = red, 3 = siamese, 4 = british_shorthair, 5 = calico, 6 = persian, 7 = ragdoll, 8 = white, 9 = all_black)
+
  |
| 1
 
 
  |-
 
  |-
  | 18
+
  | 2
  | Boolean
+
| Float
  |colspan="2"| Unknown
+
|
  | false
+
|-
 +
| 3
 +
| String
 +
|
 +
|-
 +
  | 4
 +
| [[Chat]]
 +
|
 +
|-
 +
| 5
 +
| OptChat (Boolean + Optional [[Chat]])
 +
| [[Chat]] is present if the Boolean is set to true
 +
  |-
 +
| 6
 +
| [[Slot]]
 +
  |
 
  |-
 
  |-
  | 19
+
  | 7
 
  | Boolean
 
  | Boolean
  |colspan="2"| Unknown
+
  |
| false
 
 
  |-
 
  |-
  | 20
+
  | 8
  | VarInt
+
  | Rotation
  |colspan="2"| Collar color (values are those {{Minecraft Wiki|Data_values#Dyes|used with dyes}})
+
  | 3 floats: rotation on x, rotation on y, rotation on z
| 14 (Red)
 
|}
 
 
 
=== Horse ===
 
 
 
Extends [[#AbstractHorse|AbstractHorse]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
  | {{change|15|17}}
+
  | 9
| VarInt
+
  | [[Data Types#Position|Position]]
|colspan="2"| Variant (Color & Style)
+
  |
| 0
 
|- {{removed}}
 
| 16
 
| VarInt
 
|colspan="2"| Armor (0: none, 1: iron, 2: gold, 3: diamond)
 
| 0 (none)
 
|- {{removed}}
 
| 17
 
  | [[Slot]]
 
|colspan="2"| Armor Item (Forge only)
 
| Empty
 
|}
 
 
 
{{change||Replaced with [[#Entity Equipment|Entity Equipment]] packet. (Uses chestplate slot)}}
 
 
 
=== Trader Llama ===
 
 
 
Extends [[#Llama|Llama]].
 
 
 
No additional metadata.
 
 
 
=== Abstract Merchant ===
 
 
 
Extends [[#Ageable|Ageable]].
 
 
 
{| class="wikitable" {{added}}
 
! Index
 
  ! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
  | 15
+
  | 10
  | VarInt
+
| OptPosition (Boolean + Optional Position)
  |colspan="2"| Head shake timer (starts at 40, decrements each tick)
+
| Position is present if the Boolean is set to true
  | 0
+
|-
 +
| 11
 +
  | Direction (VarInt)
 +
  | (Down = 0, Up = 1, North = 2, South = 3, West = 4, East = 5)
 +
|-
 +
| 12
 +
| OptUUID (Boolean + Optional UUID)
 +
| UUID is present if the Boolean is set to true
 +
|-
 +
| 13
 +
| OptBlockID (VarInt)
 +
| 0 for absent (implies air); otherwise, a block state ID as per the global palette
 +
|-
 +
| 14
 +
| [[NBT]]
 +
|
 +
|-
 +
| 15
 +
| [[Data Types#Particle|Particle]]
 +
|
 +
|-
 +
| 16
 +
| Villager Data
 +
| 3 VarInts: villager type, villager profession, level
 +
|-
 +
| 17
 +
| OptVarInt
 +
| 0 for absent; 1 + actual value otherwise.  Used for entity IDs.
 +
|-
 +
| 18
 +
| Pose
 +
  | A VarInt enum: 0: STANDING, 1: FALL_FLYING, 2: SLEEPING, 3: SWIMMING, 4: SPIN_ATTACK, 5: SNEAKING, 6: DYING
 
  |}
 
  |}
  
=== Villager ===
+
Villager type (<code>minecraft:villager_type</code> registry):
 
 
Extends {{change|[[#Ageable|Ageable]]|[[#Abstract Merchant|Abstract Merchant]]}}.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
  ! Index
+
  ! Name !! ID
  ! Type
+
|-
  !style="width: 250px;" colspan="2"| Meaning
+
| <code>minecraft:desert</code> || 0
  ! Default
+
|-
 +
  | <code>minecraft:jungle</code> || 1
 +
|-
 +
  | <code>minecraft:plains</code> || 2
 +
|-
 +
  | <code>minecraft:savanna</code> || 3
 +
|-
 +
| <code>minecraft:snow</code> || 4
 +
|-
 +
| <code>minecraft:swamp</code> || 5
 
  |-
 
  |-
  | {{change|13|16}}
+
  | <code>minecraft:taiga</code> || 6
| {{change|VarInt|Villager Data}}
 
|colspan="2"| {{Change|Profession (Farmer = 0, Librarian = 1, Priest = 2, Blacksmith = 3, Butcher = 4, Nitwit = 5)|Villager Data}}
 
| {{change|0|Plains/None/1}}
 
 
  |}
 
  |}
  
=== Wandering Trader ===
+
Villager professions (<code>minecraft:villager_profession</code> registry):
 
 
Extends [[#Abstract Merchant|Abstract Merchant]].
 
 
 
No additional metadata.
 
</div>
 
 
 
== Mobs ==
 
 
 
Mobs are spawned via [[Protocol#Spawn_Mob|Spawn Mob]].
 
 
 
{{Warning2|Some entities (marked in yellow) should only be spawned using [[Protocol#Spawn_Object|Spawn Object]] and their [[#Objects|Object ID]].  While they also have an entity ID, this ID is only used internally.  Servers should not attempt to spawn these entities using [[Protocol#Spawn Mob|Spawn Mob]] with that entity ID, although clients should accept such packets if they appear.
 
 
 
Additionally, a few other entities (marked in blue) must be spawned in their own special ways:
 
* {{Minecraft Wiki|Painting}}s should be spawned using [[Protocol#Spawn_Painting|Spawn Painting]]
 
* XP orbs should be spawned using [[Protocol#Spawn_Experience_Orb|Spawn Experience Orb]].}}
 
  
 
{| class="wikitable"
 
{| class="wikitable"
|-
+
! Name !! ID
! Type
+
|-
! Name
+
| <code>minecraft:none</code> || 0
! bounding box x and z
+
|-
! bounding box y
+
| <code>minecraft:armorer</code> || 1
! ID
+
|-
|- style="background: #ffff88;"
+
| <code>minecraft:butcher</code> || 2
| 0
+
|-
| AreaEffectCloud
+
| <code>minecraft:cartographer</code> || 3
| 2.0 * Radius
+
|-
| 0.5
+
| <code>minecraft:cleric</code> || 4
| <code>minecraft:area_effect_cloud</code>
+
|-
|- style="background: #ffff88;"
+
| <code>minecraft:farmer</code> || 5
| 1
+
|-
| ArmorStand
+
| <code>minecraft:fisherman</code> || 6
| normal: 0.5 marker: 0.0 small: 0.25
+
|-
| normal: 1.975 marker: 0.0 small: 0.9875
+
| <code>minecraft:fletcher</code> || 7
| <code>minecraft:armor_stand</code>
+
|-
|- style="background: #ffff88;"
+
| <code>minecraft:leatherworker</code> || 8
| 2
+
|-
| Arrow
+
| <code>minecraft:librarian</code> || 9
| 0.5
+
|-
| 0.5
+
| <code>minecraft:mason</code> || 10
| <code>minecraft:arrow</code>
+
|-
|-
+
| <code>minecraft:nitwit</code> || 11
| 3
+
|-
| Bat
+
| <code>minecraft:shepherd</code> || 12
| 0.5
+
|-
| 0.9
+
| <code>minecraft:toolsmith</code> || 13
| <code>minecraft:bat</code>
+
|-
|-
+
| <code>minecraft:weaponsmith</code> || 14
| 4
+
|}
| Blaze
+
 
| 0.6
+
Entity classes also recursively inherit fields from classes they extend.
| 1.8
+
 
| <code>minecraft:blaze</code>
+
=== Entity ===
|- style="background: #ffff88;"
+
 
| 5
+
{{metadata inherit|Entity}}
| Boat
+
 
| 1.375
+
{| class="wikitable"
| 0.5625
+
! Index
| <code>minecraft:boat</code>
+
! Type
|-
+
!style="width: 250px;" colspan="2"| Meaning
| 6
+
! Default
| CaveSpider
+
|-
| 0.7
+
|rowspan="9"| {{Metadata id|}}
| 0.5
+
|rowspan="9"| Byte
| <code>minecraft:cave_spider</code>
+
! Bit mask
|-
+
! Meaning
| 7
+
|rowspan="9"| 0
| Chicken
+
|-
| 0.4
+
| 0x01
| 0.7
+
| On Fire
| <code>minecraft:chicken</code>
+
|-
|-
+
| 0x02
| 8
+
| Crouched
| Cod
+
|-
| 0.9
+
| 0x04
| 1.4
+
| Unused (previously riding)
| <code>minecraft:cod</code>
+
|-
|-
+
| 0x08
| 9
+
| Sprinting
| Cow
+
|-
| 0.9
+
| 0x10
| 1.4
+
| Swimming
| <code>minecraft:cow</code>
+
|-
|-
+
| 0x20
| 10
+
| Invisible
| Creeper
+
|-
| 0.6
+
| 0x40
| 1.7
+
| Glowing effect
| <code>minecraft:creeper</code>
+
|-
|-
+
| 0x80
| 11
+
| Flying with {{Minecraft Wiki|elytra}}
| Donkey
+
|-
| 1.3964844
+
| {{Metadata id|}}
| 1.6
+
| VarInt
| <code>minecraft:donkey</code>
+
|colspan="2"| Air
|-
+
| 300
| 12
+
|-
| Dolphin
+
| {{Metadata id|}}
| 0.9
+
| OptChat
| 0.6
+
|colspan="2"| Custom name
| <code>minecraft:dolphin</code>
+
| empty
|- style="background: #ffff88;"
+
|-
| 13
+
| {{Metadata id|}}
| DragonFireball
+
| Boolean
| 1.0
+
|colspan="2"| Is custom name visible
| 1.0
+
| false
| <code>minecraft:dragon_fireball</code>
+
|-
|-
+
| {{Metadata id|}}
| 14
+
| Boolean
| Drowned
+
|colspan="2"| Is silent
| ?
+
| false
| ?
+
|-
| <code>minecraft:drowned</code>
+
| {{Metadata id|}}
|-
+
| Boolean
| 15
+
|colspan="2"| No gravity
| ElderGuardian
+
| false
| 1.9975 (2.35 * guardian)
+
|-
| 1.9975 (2.35 * guardian)
+
| {{Metadata id|}}
| <code>minecraft:elder_guardian</code>
+
| Pose
|- style="background: #ffff88;"
+
|colspan="2"| Pose
| 16
+
| STANDING
| EnderCrystal
+
|}
| 2.0
+
 
| 2.0
+
=== Throwable ===
| <code>minecraft:end_crystal</code>
+
 
|-
+
{{Metadata inherit|Throwable|inherits=Entity}}
| 17
+
 
| EnderDragon
+
No additional metadata.
| 16.0
+
 
| 8.0
+
=== Itemed Throwable ===
| <code>minecraft:ender_dragon</code>
+
 
|-
+
{{Metadata inherit|Itemed Throwable|inherits=Throwable}}  Used for all things that previously extended throwable other than potions, which already had an item.
| 18
+
 
| Enderman
+
{| class="wikitable"
| 0.6
+
! Index
| 2.9
+
! Type
| <code>minecraft:enderman</code>
+
!style="width: 250px;" colspan="2"| Meaning
|-
+
! Default
| 19
+
|-
| Endermite
+
| {{Metadata id|}}
| 0.4
+
| Slot
| 0.3
+
|colspan="2"| Item
| <code>minecraft:endermite</code>
+
| empty (which behaves as if it were a specific item, depending on the subclass)
|- style="background: #ffff88;"
+
|}
| 20
+
 
| EvocationFangs
+
=== Egg ===
| 0.5
+
 
| 0.8
+
{{Metadata inherit|Egg|inherits=Itemed Throwable}}
| <code>minecraft:evoker_fangs</code>
+
 
|-
+
No additional metadata.
| 21
+
 
| EvocationIllager
+
An empty item behaves as if the item were a <code>minecraft:egg</code>.
| 0.6
+
 
| 1.95
+
=== Ender Pearl ===
| <code>minecraft:evoker</code>
+
 
|- style="background: #aaaaff;"
+
{{Metadata inherit|Ender Pearl|inherits=Itemed Throwable}}
| 22
+
 
| XPOrb
+
No additional metadata.
| 0.5
+
 
| 0.5
+
An empty item behaves as if the item were a <code>minecraft:ender_pearl</code>.
| <code>minecraft:experience_orb</code>
+
 
|- style="background: #ffff88;"
+
=== Experience Bottle ===
| 23
+
 
| EyeOfEnderSignal
+
{{Metadata inherit|Experience Bottle|inherits=Itemed Throwable}}
| 0.25
+
 
| 0.25
+
No additional metadata.
| <code>minecraft:eye_of_ender</code>
+
 
|- style="background: #ffff88;"
+
An empty item behaves as if the item were a <code>minecraft:experience_bottle</code>
| 24
+
 
| FallingSand
+
=== Snowball ===
| 0.98
+
 
| 0.98
+
{{Metadata inherit|Snowball|inherits=Itemed Throwable}}
| <code>minecraft:falling_block</code>
+
 
|- style="background: #ffff88;"
+
No additional metadata.
| 25
+
 
| FireworksRocketEntity
+
An empty item behaves as if the item were a <code>minecraft:snowball</code>
| 0.25
+
 
| 0.25
+
=== Potion ===
| <code>minecraft:fireworks_rocket</code>
+
 
|-
+
{{Metadata inherit|Potion|inherits=Throwable}}
| 26
+
 
| Ghast
+
{| class="wikitable"
| 4
+
! Index
| 4
+
! Type
| <code>minecraft:ghast</code>
+
!style="width: 250px;" colspan="2"| Meaning
|-
+
! Default
| 27
+
|-
| Giant
+
| {{Metadata id|}}
| 3.6
+
| [[Slot]]
| 10.8
+
|colspan="2"| Potion which is thrown
| <code>minecraft:giant</code>
+
| Empty
|-
+
|}
| 28
+
 
| Guardian
+
=== Eye of Ender ===
| 0.85
+
 
| 0.85
+
{{Metadata inherit|Eye of Ender|inherits=Entity}}
| <code>minecraft:guardian</code>
+
 
|-
+
{| class="wikitable"
| 29
+
! Index
| Horse (EntityHorse until 1.11)
+
! Type
| 1.3964844
+
!style="width: 250px;" colspan="2"| Meaning
| 1.6
+
! Default
| <code>minecraft:horse</code>
+
|-
|-
+
| {{Metadata id|}}
| 30
+
| Slot
| Husk
+
|colspan="2"| Item
| 0.6
+
| empty (which behaves as if it were a <code>minecraft:ender_eye</code>)
| 1.95
+
|}
| <code>minecraft:husk</code>
+
 
|-
+
=== FallingBlock ===
| 31
+
 
| IllusionIllager
+
{{Metadata inherit|FallingBlock|inherits=Entity}}
| 0.6
+
 
| 1.95
+
{| class="wikitable"
| <code>minecraft:illusioner</code>
+
! Index
|- style="background: #ffff88;"
+
! Type
| 32
+
!style="width: 250px;" colspan="2"| Meaning
| Item
+
! Default
| 0.25
+
|-
| 0.25
+
| {{Metadata id|}}
| <code>minecraft:item</code>
+
| [[Data Types#Position|Position]]
|- style="background: #ffff88;"
+
|colspan="2"| spawn position
| 33
+
| (0, 0, 0)
| ItemFrame
+
|}
| 0.75 or 0.0625 (depth)
+
 
| 0.75
+
=== AreaEffectCloud ===
| <code>minecraft:item_frame</code>
+
 
|- style="background: #ffff88;"
+
{{Metadata inherit|AreaEffectCloud|inherits=Entity}}
| 34
+
 
| Fireball (ghast)
+
{| class="wikitable"
| 1.0
+
! Index
| 1.0
+
! Type
| <code>minecraft:fireball</code>
+
!style="width: 250px;" colspan="2"| Meaning
|- style="background: #ffff88;"
+
! Default
| 35
+
|-
| LeashKnot
+
| {{Metadata id|}}
| 0.375
+
| Float
| 0.5
+
|colspan="2"| Radius
| <code>minecraft:leash_knot</code>
+
| 0.5
|-
+
|-
| 36
+
| {{Metadata id|}}
| Llama
+
| VarInt
| 0.9
+
|colspan="2"| Color (only for mob spell particle)
| 1.87
+
| 0
| <code>minecraft:llama</code>
+
|-
|- style="background: #ffff88;"
+
| {{Metadata id|}}
| 37
+
| Boolean
| LlamaSpit
+
|colspan="2"| Ignore radius and show effect as single point, not area
| 0.25
+
| false
| 0.25
+
|-
| <code>minecraft:llama_spit</code>
+
| {{Metadata id|}}
|-
+
| Particle
| 38
+
| colspan="2"| The [[#Particle]]
| LavaSlime (Magma Cube)
+
| <code>effect</code>
| 0.51000005 * size
+
|}
| 0.51000005 * size
+
 
| <code>minecraft:magma_cube</code>
+
=== FishingHook ===
|- style="background: #ffff88;"
+
 
| 39
+
{{Metadata inherit|FishingHook|inherits=Entity}}
| MinecartRideable
+
 
| 0.98
+
{| class="wikitable"
| 0.7
+
! Index
| <code>minecraft:minecart</code>
+
! Type
|- style="background: #ffff88;"
+
!style="width: 250px;" colspan="2"| Meaning
| 40
+
! Default
| MinecartChest
+
|-
| 0.98
+
| {{Metadata id|}}
| 0.7
+
| VarInt
| <code>minecraft:chest_minecart</code>
+
|colspan="2"| Hooked entity id + 1, or 0 if there is no hooked entity
|- style="background: #ffff88;"
+
| 0
| 41
+
|}
| MinecartCommandBlock
+
 
| 0.98
+
=== Abstract Arrow ===
| 0.7
+
 
| <code>minecraft:commandblock_minecart</code>
+
{{Metadata inherit|Abstract Arrow|inherits=Entity}}
|- style="background: #ffff88;"
+
 
| 42
+
Abstract base class for [[#Tipped Arrow|Tipped Arrow]] (which is used for regular arrows as well as tipped ones) and [[#Spectral Arrow|Spectral Arrow]].
| MinecartFurnace
+
 
| 0.98
+
{| class="wikitable"
| 0.7
+
! Index
| <code>minecraft:furnace_minecart</code>
+
! Type
|- style="background: #ffff88;"
+
!style="width: 250px;" colspan="2"| Meaning
| 43
+
! Default
| MinecartHopper
+
|-
| 0.98
+
| rowspan="3" | {{Metadata id|}}
| 0.7
+
| rowspan="3" | Byte
| <code>minecraft:hopper_minecart</code>
+
! Bit mask
|- style="background: #ffff88;"
+
! Meaning
| 44
+
| rowspan="3" | 0
| MinecartSpawner
+
|-
| 0.98
+
| 0x01
| 0.7
+
| Is critical
| <code>minecraft:spawner_minecart</code>
+
|-
|- style="background: #ffff88;"
+
| 0x02
| 45
+
| Is noclip (used by loyalty tridents when returning)
| MinecartTNT
+
|-
| 0.98
+
| {{Metadata id|}}
| 0.7
+
| OptUUID
| <code>minecraft:tnt_minecart</code>
+
|colspan="2"| Unused
|-
+
| Empty
| 46
+
|-
| Mule
+
| {{Metadata id|}}
| 1.3964844
+
| Byte
| 1.6
+
|colspan="2"| Peircing level
| <code>minecraft:mule</code>
+
| 0
|-
+
|}
| 47
+
 
| MushroomCow (Mooshroom)
+
=== Tipped Arrow ===
| 0.9
+
 
| 1.4
+
{{Metadata inherit|Tipped Arrow|inherits=Abstract Arrow}}
| <code>minecraft:mooshroom</code>
+
 
|-
+
Used for both tipped and regular arrows.  If not tipped, then color is set to -1 and no tipped arrow particles are used.
| 48
+
 
| Ozelot (Ocelot)
+
{| class="wikitable"
| 0.6
+
! Index
| 0.7
+
! Type
| <code>minecraft:ocelot</code>
+
!style="width: 250px;" colspan="2"| Meaning
|- style="background: #aaaaff;"
+
! Default
| 49
+
|-
| Painting
+
| {{Metadata id|}}
| type width or 0.0625 (depth)
+
| VarInt
| type height
+
|colspan="2"| Color (-1 for no particles)
| <code>minecraft:painting</code>
+
| -1
|-
+
|}
| 50
+
 
| Parrot
+
=== Spectral Arrow ===
| 0.5
+
 
| 0.9
+
{{Metadata inherit|Spectral Arrow|inherits=Abstract Arrow}}
| <code>minecraft:parrot</code>
+
 
|-
+
No additional metadata.
| 51
+
 
| Pig
+
=== Trident ===
| 0.9
+
 
| 0.9
+
{{Metadata inherit|Trident|inherits=Abstract Arrow}}
| <code>minecraft:pig</code>
+
 
|-
+
{| class="wikitable"
| 52
+
! Index
| Pufferfish
+
! Type
| ?
+
!style="width: 250px;" colspan="2"| Meaning
| ?
+
! Default
| <code>minecraft:pufferfish</code>
+
|-
|-
+
| {{Metadata id|}}
| 53
+
| VarInt
| PigZombie
+
|colspan="2"| Loyalty level (enchantment)
| 0.6
+
| 0
| 1.95
+
|-
| <code>minecraft:zombie_pigman</code>
+
| {{Metadata id|}}
|-
+
| Boolean
| 54
+
|colspan="2"| Has enchantment glint
| PolarBear
+
| False
| 1.3
+
|}
| 1.4
+
 
| <code>minecraft:polar_bear</code>
+
=== Boat ===
|- style="background: #ffff88;"
+
 
| 55
+
{{Metadata inherit|Boat|inherits=Entity}}
| PrimedTnt
+
 
| 0.98
+
{| class="wikitable"
| 0.98
+
! Index
| <code>minecraft:tnt</code>
+
! Type
|-
+
!style="width: 250px;" colspan="2"| Meaning
| 56
+
! Default
| Rabbit
+
|-
| 0.4
+
| {{Metadata id|}}
| 0.5
+
| VarInt
| <code>minecraft:rabbit</code>
+
|colspan="2"| Time since last hit
|-
+
| 0
| 57
+
|-
| Salmon
+
| {{Metadata id|}}
| ?
+
| VarInt
| ?
+
|colspan="2"| Forward direction
| <code>minecraft:salmon</code>
+
| 1
|-
+
|-
| 58
+
| {{Metadata id|}}
| Sheep
+
| Float
| 0.9
+
|colspan="2"| Damage taken
| 1.3
+
| 0.0
| <code>minecraft:sheep</code>
+
|-
|-
+
| {{Metadata id|}}
| 59
+
| VarInt
| Shulker
+
|colspan="2"| Type (0=oak, 1=spruce, 2=birch, 3=jungle, 4=acacia, 5=dark oak)
| 1.0
+
| 0
| 1.0-2.0 (depending on peek)
+
|-
| <code>minecraft:shulker</code>
+
| {{Metadata id|}}
|- style="background: #ffff88;"
+
| Boolean
| 60
+
|colspan="2"| Left paddle turning
| ShulkerBullet
+
| false
| 0.3125
+
|-
| 0.3125
+
| {{Metadata id|}}
| <code>minecraft:shulker_bullet</code>
+
| Boolean
|-
+
|colspan="2"| Right paddle turning
| 61
+
| false
| Silverfish
+
|-
| 0.4
+
| {{Metadata id|}}
| 0.3
+
| VarInt
| <code>minecraft:silverfish</code>
+
|colspan="2"| Splash timer
|-
+
| 0
| 62
+
|}
| Skeleton
+
 
| 0.6
+
=== EnderCrystal ===
| 1.99
+
 
| <code>minecraft:skeleton</code>
+
{{Metadata inherit|EnderCrystal|inherits=Entity}}
|-
+
 
| 63
+
{| class="wikitable"
| SkeletonHorse
+
! Index
| 1.3964844
+
! Type
| 1.6
+
!style="width: 250px;" colspan="2"| Meaning
| <code>minecraft:skeleton_horse</code>
+
! Default
|-
+
|-
| 64 (67: 1.14)
+
| {{Metadata id|}}
| Slime
+
| OptPosition
| 0.51000005 * size
+
|colspan="2"| Beam target
| 0.51000005 * size
+
| Absent
| <code>minecraft:slime</code>
+
|-
|- style="background: #ffff88;"
+
| {{Metadata id|}}
| 65
+
| Boolean
| SmallFireball (blaze)
+
|colspan="2"| Show bottom
| 0.3125
+
| true
| 0.3125
+
|}
| <code>minecraft:small_fireball</code>
+
 
|-
+
=== Abstract Fireball ===
| 66
+
 
| SnowMan
+
{{Metadata inherit|Abstract Fireball|inherits=Entity}}
| 0.7
+
 
| 1.9
+
No additional metadata.
| <code>minecraft:snow_golem</code>
+
 
|- style="background: #ffff88;"
+
=== Dragon Fireball ===
| 67
+
 
| Snowball
+
{{Metadata inherit|Dragon Fireball|inherits=Abstract Fireball}}
| 0.25
+
 
| 0.25
+
No additional metadata.
| <code>minecraft:snowball</code>
+
 
|- style="background: #ffff88;"
+
=== Itemed Fireball ===
| 68
+
 
| SpectralArrow
+
{{Metadata inherit|Itemed Fireball|inherits=Abstract Fireball}}
| 0.5
+
 
| 0.5
+
Used for regular and small fireballs.  Not used for dragon fireballs and wither skulls.  Interestingly, regular fireballs do not come from an item.
| <code>minecraft:spectral_arrow</code>
+
 
|-
+
{| class="wikitable"
| 69
+
! Index
| Spider
+
! Type
| 1.4
+
!style="width: 250px;" colspan="2"| Meaning
| 0.9
+
! Default
| <code>minecraft:spider</code>
+
|-
|-
+
| {{Metadata id|}}
| 70
+
| Slot
| Squid
+
|colspan="2"| Item
| 0.8
+
| empty (which behaves as if it were a <code>minecraft:fire_charge</code>)
| 0.8
+
|}
| <code>minecraft:squid</code>
+
 
|-
+
=== Fireball ===
| 71
+
 
| Stray
+
{{Metadata inherit|Fireball|inherits=Itemed Fireball}}  This is the large fireball shot by ghasts.
| 0.6
+
 
| 1.99
+
No additional metadata.
| <code>minecraft:stray</code>
+
 
|-
+
=== Small Fireball ===
| 72
+
 
| Tropical Fish
+
{{Metadata inherit|Small Fireball|inherits=Itemed Fireball}}  This is the fireball shot by blazes and dispensers with fire charges.
| 0.5
+
 
| 0.4
+
No additional metadata.
| <code>minecraft:tropical_fish</code>
+
 
|-
+
=== WitherSkull ===
| 73
+
 
| Turtle
+
{{Metadata inherit|WitherSkull|inherits=Abstract Fireball}}
| 1.2
+
 
| 0.4
+
{| class="wikitable"
| <code>minecraft:turtle</code>
+
! Index
|- style="background: #ffff88;"
+
! Type
| 74
+
!style="width: 250px;" colspan="2"| Meaning
| ThrownEgg
+
! Default
| 0.25
+
|-
| 0.25
+
| {{Metadata id|}}
| <code>minecraft:egg</code>
+
| Boolean
|- style="background: #ffff88;"
+
|colspan="2"| Invulnerable
| 75
+
| false
| ThrownEnderpearl
+
|}
| 0.25
+
 
| 0.25
+
=== Fireworks ===
| <code>minecraft:ender_pearl</code>
+
 
|- style="background: #ffff88;"
+
{{Metadata inherit|Fireworks|inherits=Entity}}
| 76
+
 
| ThrownExpBottle
+
{| class="wikitable"
| 0.25
+
! Index
| 0.25
+
! Type
| <code>minecraft:experience_bottle</code>
+
!style="width: 250px;" colspan="2"| Meaning
|- style="background: #ffff88;"
+
! Default
| 77
+
|-
| ThrownPotion
+
| {{Metadata id|}}
| 0.25
+
| [[Slot]]
| 0.25
+
|colspan="2"| Firework info
| <code>minecraft:potion</code>
+
| empty
|-
+
|-
| 78
+
| {{Metadata id|}}
| Vex
+
| VarInt
| 0.4
+
|colspan="2"| Entity ID of entity which used firework (for elytra boosting)
| 0.8
+
| 0
| <code>minecraft:vex</code>
+
|-
|-
+
| {{Metadata id|}}
| 79
+
| Boolean
| Villager
+
|colspan="2"| Shot at angle (from a crossbow)
| 0.6
+
| false
| 1.95
+
|}
| <code>minecraft:villager</code>
+
 
|-
+
=== Hanging ===
| 80
+
 
| VillagerGolem (Iron Golem)
+
{{Metadata inherit|Hanging|inherits=Entity}}
| 1.4
+
 
| 2.7
+
No additional metadata.
| <code>minecraft:iron_golem}</code>
+
 
|-
+
=== ItemFrame ===
| 81
+
 
| VindicationIllager
+
{{Metadata inherit|ItemFrame|inherits=Hanging}}
| 0.6
+
 
| 1.95
+
{| class="wikitable"
| <code>minecraft:vindicator</code>
+
! Index
|-
+
! Type
| 82
+
!style="width: 250px;" colspan="2"| Meaning
| Witch
+
! Default
| 0.6
+
|-
| 1.95
+
| {{Metadata id|}}
| <code>minecraft:witch</code>
+
| [[Slot]]
|-
+
|colspan="2"| Item
| 83
+
| Empty
| WitherBoss
+
|-
| 0.9
+
| {{Metadata id|}}
| 3.5
+
| VarInt
| <code>minecraft:wither</code>
+
|colspan="2"| Rotation
|-
+
| 0
| 84
+
|}
| WitherSkeleton
+
 
| 0.7
+
=== Item ===
| 2.4
+
 
| <code>minecraft:wither_skeleton</code>
+
{{Metadata inherit|Item|inherits=Entity}}
|- style="background: #ffff88;"
+
 
| 85
+
{| class="wikitable"
| WitherSkull
+
! Index
| 0.3125
+
! Type
| 0.3125
+
!style="width: 250px;" colspan="2"| Meaning
| <code>minecraft:wither_skull</code>
+
! Default
|-
+
|-
| 86
+
| {{Metadata id|}}
| Wolf
+
| [[Slot]]
| 0.6
+
|colspan="2"| Item
| 0.85
+
| Empty
| <code>minecraft:wolf</code>
+
|}
|-
+
 
| 87
+
=== Living ===
| Zombie
+
 
| 0.6
+
{{Metadata inherit|Living|inherits=Entity}}
| 1.95
+
 
| <code>minecraft:zombie</code>
+
{| class="wikitable"
|-
+
! Index
| 88
+
! Type
| ZombieHorse
+
!style="width: 250px;" colspan="2"| Meaning
| 1.3964844
+
! Default
| 1.6
+
|-
| <code>minecraft:zombie_horse</code>
+
|rowspan="5"| {{Metadata id|}}
|-
+
|rowspan="5"| Byte
| 89
+
|colspan="2"| Hand states, used to trigger blocking/eating/drinking animation.
| ZombieVillager
+
|rowspan="5"| 0
| 0.6
+
|-
| 1.95
+
! Bit mask
| <code>minecraft:zombie_villager</code>
+
! Meaning
|-
+
|-
| 90
+
| 0x01
| Phantom
+
| Is hand active
| 0.9
+
|-
| 0.5
+
| 0x02
| <code>minecraft:phantom</code>
+
| Active hand (0 = main hand, 1 = offhand)
|- style="background: #aaaaff;"
+
|-
| 91
+
| 0x04
| Lightning Bolt
+
| In riptide spin attack
| -
+
|-
| -
+
| {{Metadata id|}}
| <code>minecraft:lightning_bolt</code>
+
| Float
|- style="background: #aaaaff;"
+
|colspan="2"| Health
| 92
+
| 1.0
| Player
+
|-
| 0.8
+
| {{Metadata id|}}
| 1.8
+
| VarInt
| <code>minecraft:player</code>
+
|colspan="2"| Potion effect color (or 0 if there is no effect)
|- style="background: #ffff88;"
+
| 0
| 93
+
|-
| Fishing bobber
+
| {{Metadata id|}}
| ?
+
| Boolean
| ?
+
|colspan="2"| Is potion effect ambient: reduces the number of particles generated by potions to 1/5 the normal amount
| <code>minecraft:fishing_bobber</code>
+
| false
|- style="background: #ffff88;"
+
|-
| 94
+
| {{Metadata id|}}
| Trident
+
| VarInt
| ?
+
|colspan="2"| Number of arrows in entity
| ?
+
| 0
| <code>minecraft:trident</code>
+
|-
|}
+
| {{Metadata id|}}
 +
| VarInt
 +
|colspan="2"| Health added by absorption (based on the AbsorptionAmount tag)
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| OptBlockPos
 +
|colspan="2"| Unknown (Bed location?)
 +
| Absent
 +
|}
 +
 
 +
=== Player ===
 +
 
 +
{{Metadata inherit|Player|inherits=Living}}
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 +
|-
 +
| {{Metadata id|}}
 +
| Float
 +
|colspan="2"| Additional Hearts
 +
| 0.0
 +
|-
 +
| {{Metadata id|}}
 +
| VarInt
 +
|colspan="2"| Score
 +
| 0
 +
|-
 +
|rowspan="10"| {{Metadata id|}}
 +
|rowspan="10"| Byte
 +
|colspan="2"| The Displayed Skin Parts bit mask that is sent in [[Protocol#Client Settings|Client Settings]]
 +
|rowspan="10"| 0
 +
|-
 +
! Bit mask !! Meaning
 +
|-
 +
| 0x01 || Cape enabled
 +
|-
 +
| 0x02 || Jacket enabled
 +
|-
 +
| 0x04 || Left sleeve enabled
 +
|-
 +
| 0x08 || Right sleeve enabled
 +
|-
 +
| 0x10 || Left pants leg enabled
 +
|-
 +
| 0x20 || Right pants leg enabled
 +
|-
 +
| 0x40 || Hat enabled
 +
|-
 +
| 0x80 || ''Unused''
 +
|-
 +
| {{Metadata id|}}
 +
| Byte
 +
|colspan="2"| Main hand (0 : Left, 1 : Right)
 +
| 1
 +
|-
 +
| {{Metadata id|}}
 +
| [[NBT]]
 +
|colspan="2"| Left shoulder entity data (for occupying parrot)
 +
| Empty
 +
|-
 +
| {{Metadata id|}}
 +
| [[NBT]]
 +
|colspan="2"| Right shoulder entity data (for occupying parrot)
 +
| Empty
 +
|}
 +
 
 +
=== ArmorStand ===
 +
 
 +
{{Metadata inherit|ArmorStand|inherits=Living}}
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 +
|-
 +
|rowspan="5"| {{Metadata id|}}
 +
|rowspan="5"| Byte
 +
! Bit mask
 +
! Meaning
 +
|rowspan="5"| 0
 +
|-
 +
| 0x01
 +
| is Small
 +
|-
 +
| 0x04
 +
| has Arms
 +
|-
 +
| 0x08
 +
| no BasePlate
 +
|-
 +
| 0x10
 +
| set Marker
 +
|-
 +
| {{Metadata id|}}
 +
| Rotation
 +
|colspan="2"| Head rotation
 +
| (0.0, 0.0, 0.0)
 +
|-
 +
| {{Metadata id|}}
 +
| Rotation
 +
|colspan="2"| Body rotation
 +
| (0.0, 0.0, 0.0)
 +
|-
 +
| {{Metadata id|}}
 +
| Rotation
 +
|colspan="2"| Left arm rotation
 +
| (-10.0, 0.0, -10.0)
 +
|-
 +
| {{Metadata id|}}
 +
| Rotation
 +
|colspan="2"| Right arm rotation
 +
| (-15.0, 0.0, 10.0)
 +
|-
 +
| {{Metadata id|}}
 +
| Rotation
 +
|colspan="2"| Left leg rotation
 +
| (-1.0, 0.0, -1.0)
 +
|-
 +
| {{Metadata id|}}
 +
| Rotation
 +
|colspan="2"| Right leg rotation
 +
| (1.0, 0.0, 1.0)
 +
|}
  
== Objects ==
+
Note that armor stands with the [[#Entity|invisible flag from the base entity class]] set also cannot be attacked or damaged, except for by the void.
  
Objects are spawned via [[Protocol#Spawn_Object|Spawn Object]]. See [[Object Data]] for more details.
+
=== Insentient ===
  
{{Note|Object IDs and Entity IDs are different.  Most objects also have an entity ID, but should only ever be spawned via [[Protocol#Spawn_Object|Spawn Object]].}}
+
{{Metadata inherit|Insentient|inherits=Living}}
  
 
{| class="wikitable"
 
{| class="wikitable"
|-
+
! Index
! ID
+
! Type
! Name
+
!style="width: 250px;" colspan="2"| Meaning
! bounding box x and z
+
! Default
! bounding box y
+
|-
|-  
+
|rowspan="3"| {{Metadata id|}}
| 1
+
|rowspan="3"| Byte
| Boat
+
! Bit mask
| 1.375
+
! Meaning
| 0.6
+
|rowspan="3"| 0
|-  
+
|-
| 2
+
| 0x01
| Item Stack ([[Slot]])
+
| NoAI
| 0.25
+
|-
| 0.25
+
| 0x02
|-
+
| Left handed
| 3
+
|}
| Area Effect Cloud
+
 
| 2.0 * Radius
+
=== Ambient ===
| 0.5
+
 
|-
+
{{Metadata inherit|Ambient|inherits=Insentient}}
| 10
+
 
| Minecart
+
No additional metadata.
| 0.98
+
 
| 0.7
+
=== Bat ===
|-
+
 
| 50
+
{{Metadata inherit|Bat|inherits=Ambient}}
| Activated TNT
+
 
| 0.98
+
{| class="wikitable"
| 0.98
+
! Index
|-  
+
! Type
| 51
+
!style="width: 250px;" colspan="2"| Meaning
| EnderCrystal
+
! Default
| 2.0
+
|-
| 2.0
+
| rowspan="2"| {{Metadata id|}}
|-  
+
| rowspan="2"| Byte
| 60
+
! Bit mask
| Tipped arrow (projectile; also used for regular arrows)
+
! Meaning
| 0.5
+
| rowspan="2"| 0
| 0.5
+
|-
|-
+
| 0x01
| 61
+
| Is hanging
| Snowball (projectile)
+
|}
| 0.25
+
 
| 0.25
+
=== Creature ===
|-
+
 
| 62
+
{{Metadata inherit|Creature|inherits=Insentient}}
| Egg (projectile)
+
 
| 0.25
+
No additional metadata.
| 0.25
+
 
|-
+
=== WaterMob ===
| 63
+
 
| FireBall (ghast projectile)
+
{{Metadata inherit|WaterMob|inherits=Creature}}
| 1.0
+
 
| 1.0
+
No additional metadata.
|-
+
 
| 64
+
=== Squid ===
| FireCharge (blaze projectile)
+
 
| 0.3125
+
{{Metadata inherit|Squid|inherits=WaterMob}}
| 0.3125
+
 
|-
+
No additional metadata.
| 65
+
 
| Thrown Enderpearl
+
=== Dolphin ===
| 0.25
+
 
| 0.25
+
{{Metadata inherit|Dolphin|inherits=WaterMob}}
|-  
+
 
| 66
+
{| class="wikitable"
| Wither Skull (projectile)
+
! Index
| 0.3125
+
! Type
| 0.3125
+
!style="width: 250px;" colspan="2"| Meaning
|-  
+
! Default
| 67
+
|-
| Shulker Bullet
+
| {{Metadata id|}}
| 0.3125
+
| Position
| 0.3125
+
|colspan="2"| Treasure position
|-  
+
| (0, 0, 0)
| 68
+
|-
| Llama spit
+
| {{Metadata id|}}
| 0.25
+
| Boolean
| 0.25
+
|colspan="2"| Can find treasure
|-
+
| false
| 70
+
|-
| Falling Objects
+
| {{Metadata id|}}
| 0.98
+
| Boolean
| 0.98
+
|colspan="2"| Has fish
|-
+
| false
| 71
+
|}
| Item frames
+
 
| 0.75 or 0.0625
+
=== Abstract fish ===
| 0.75
+
 
|-  
+
{{Metadata inherit|Abstract fish|inherits=WaterMob}}
| 72
+
 
| Eye of Ender
+
{| class="wikitable"
| 0.25
+
! Index
| 0.25
+
! Type
|-
+
!style="width: 250px;" colspan="2"| Meaning
| 73
+
! Default
| Thrown Potion
+
|-
| 0.25
+
| {{Metadata id|}}
| 0.25
+
| Boolean
|-
+
|colspan="2"| From bucket
| 75
+
| False
| Thrown Exp Bottle
+
|}
| 0.25
+
 
| 0.25
+
=== Cod ===
|-
+
 
| 76
+
{{Metadata inherit|Cod|inherits=Abstract fish}}
| Firework Rocket
+
 
| 0.25
+
No additional metadata.
| 0.25
+
 
|-
+
=== Puffer fish ===
| 77
+
 
| Leash Knot
+
{{Metadata inherit|Puffer fish|inherits=Abstract fish}}
| 0.375
+
 
| 0.5
+
{| class="wikitable"
|-
+
! Index
| 78
+
! Type
| ArmorStand
+
!style="width: 250px;" colspan="2"| Meaning
| normal: 0.5 marker: 0.0 small: 0.25
+
! Default
| normal: 1.975 marker: 0.0 small: 0.9875
+
|-
|-
+
| {{Metadata id|}}
| 79
+
| VarInt
| Evocation Fangs
+
|colspan="2"| PuffState (varies from 0 to 2)
| 0.5
+
| 0
| 0.8
+
|}
|-
+
 
| 90
+
=== Salmon ===
| Fishing Hook
+
 
| 0.25
+
{{Metadata inherit|Salmon|inherits=Abstract fish}}
| 0.25
+
 
|-
+
No additional metadata.
| 91
+
 
| Spectral Arrow
+
=== Tropical fish ===
| 0.5
+
 
| 0.5
+
{{Metadata inherit|Tropical fish|inherits=Abstract fish}}
|-
+
 
| 93
+
{| class="wikitable"
| Dragon Fireball
+
! Index
| 1.0
+
! Type
| 1.0
+
!style="width: 250px;" colspan="2"| Meaning
|-
+
! Default
| 94
+
|-
| Trident
+
| {{Metadata id|}}
| ?
+
| VarInt
| ?
+
|colspan="2"| Variant
|}
+
| 0
 +
|}
  
Since release {{Minecraft Wiki|1.6}}, all minecarts are spawned with object type 10 and their functionality is then specified in the [[Object Data#Minecarts (id 10)|Data field]] within the packet. Also, their visual appearance may be sent via the [[Protocol#Entity Metadata|Entity Metadata]] packet.
+
=== Ageable ===
  
== Entity Metadata Format ==
+
{{Metadata inherit|Ageable|inherits=Creature}}
 
 
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:
 
  
 
{| class="wikitable"
 
{| class="wikitable"
  ! Name
+
  ! Index
 
  ! Type
 
  ! Type
  ! Meaning
+
  !style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | Index
+
  | {{Metadata id|}}
| Unsigned Byte
+
  | Boolean
| Unique index key determining the meaning of the following value, see the table below. If this is <code>0xff</code> then the it is the end of the Entity Metadata array and no more is read.
+
  |colspan="2"| Is baby
|-
+
  | false
  | Type
 
  | Optional VarInt Enum
 
| Only if Index is not <code>0xff</code>; the type of the index, see the table below
 
|-
 
| Value
 
| Optional ''value of Type''
 
  | Only if Index is not <code>0xff</code>: the value of the metadata field
 
 
  |}
 
  |}
 +
 +
=== Animal ===
 +
 +
{{Metadata inherit|Animal|inherits=Ageable}}
 +
 +
No additional metadata.
 +
 +
=== AbstractHorse ===
 +
 +
{{Metadata inherit|AbstractHorse|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
  ! Value of Type field
+
  ! Index
  ! [[Data types|Type]] of Value field
+
! Type
  ! Notes
+
  !style="width: 250px;" colspan="2"| Meaning
 +
  ! Default
 
  |-
 
  |-
  | 0
+
  |rowspan="9"| {{Metadata id|}}
  | Byte
+
  |rowspan="9"| Byte
  |
+
! Bit mask
 +
! Meaning
 +
  |rowspan="9"| 0
 
  |-
 
  |-
  | 1
+
  | 0x01
| VarInt
+
  | ''Unused''
  |
 
 
  |-
 
  |-
  | 2
+
  | 0x02
| Float
+
  | Is Tame
  |
 
 
  |-
 
  |-
  | 3
+
  | 0x04
| String
+
  | Is saddled
  |
 
 
  |-
 
  |-
  | 4
+
  | 0x08
| [[Chat]]
+
  | Has bred
  |
 
 
  |-
 
  |-
  | 5
+
  | 0x10
  | OptChat (Boolean + Optional [[Chat]])
+
  | Is eating
| [[Chat]] is present if the Boolean is set to true
 
 
  |-
 
  |-
  | 6
+
  | 0x20
| [[Slot]]
+
  | Is rearing (on hind legs)
  |
 
 
  |-
 
  |-
  | 7
+
  | 0x40
| Boolean
+
  | Is mouth open
  |
 
 
  |-
 
  |-
  | 8
+
  | 0x80
  | Rotation
+
  | ''Unused''
| 3 floats: rotation on x, rotation on y, rotation on z
 
 
  |-
 
  |-
  | 9
+
  | {{Metadata id|}}
| [[Data Types#Position|Position]]
+
  | OptUUID
  |
+
  |colspan="2"| Owner
  |-
+
  | Absent
| 10
 
| OptPosition (Boolean + Optional Position)
 
| Position is present if the Boolean is set to true
 
|-
 
| 11
 
| Direction (VarInt)
 
| (Down = 0, Up = 1, North = 2, South = 3, West = 4, East = 5)
 
|-
 
| 12
 
| OptUUID (Boolean + Optional UUID)
 
| UUID is present if the Boolean is set to true
 
|-
 
| 13
 
| OptBlockID (VarInt)
 
| 0 for absent (implies air); otherwise, a block state ID as per the global palette
 
|-
 
| 14
 
| [[NBT]]
 
|
 
|-
 
| 15
 
| [[Data Types#Particle|Particle]]
 
  |
 
 
  |}
 
  |}
  
Entity classes also recursively inherit fields from classes they extend.
+
=== Horse ===
  
=== Entity ===
+
{{Metadata inherit|Horse|inherits=AbstractHorse}}
  
The base class.
+
{| class="wikitable"  
 
 
{| class="wikitable"
 
 
  ! Index
 
  ! Index
 
  ! Type
 
  ! Type
Line 1,788: Line 1,815:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  |rowspan="9"| 0
+
  | {{Metadata id|}}
  |rowspan="9"| Byte
+
| VarInt
  ! Bit mask
+
|colspan="2"| Variant (Color & Style)
  ! Meaning
+
| 0
  |rowspan="9"| 0
+
  |}
 +
 
 +
=== ZombieHorse ===
 +
 
 +
{{Metadata inherit|ZombieHorse|inherits=AbstractHorse}}
 +
 
 +
=== SkeletonHorse ===
 +
 
 +
{{Metadata inherit|SkeletonHorse|inherits=AbstractHorse}}
 +
 
 +
=== ChestedHorse ===
 +
 
 +
{{Metadata inherit|ChestedHorse|inherits=AbstractHorse}}
 +
 
 +
{| class="wikitable"  
 +
  ! Index
 +
  ! Type
 +
  !style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | 0x01
+
  | {{Metadata id|}}
  | On Fire
+
  | Boolean
  |-
+
  |colspan="2"| Has Chest
  | 0x02
+
  | false
  | Crouched
+
  |}
|-
+
 
| 0x04
+
=== Donkey ===
  | Unused (previously riding)
+
 
  |-
+
{{Metadata inherit|Donkey|inherits=ChestedHorse}}
  | 0x08
+
 
  | Sprinting
+
=== Llama ===
 +
 
 +
{{Metadata inherit|Llama|inherits=ChestedHorse}}
 +
 
 +
{| class="wikitable"
 +
  ! Index
 +
  ! Type
 +
  !style="width: 250px;" colspan="2"| Meaning
 +
  ! Default
 
  |-
 
  |-
  | 0x10
+
  | {{Metadata id|}}
  | Swimming
+
| VarInt
 +
| colspan="2"| Strength (number of columns of 3 slots in the llama's inventory once a chest is equipped)
 +
  | 0
 
  |-
 
  |-
  | 0x20
+
  | {{Metadata id|}}
  | Invisible
+
  | VarInt
  |-
+
  | colspan="2"| Carpet color (a dye color, or -1 if no carpet equipped)
  | 0x40
+
  | -1
| Glowing effect
 
 
  |-
 
  |-
  | 0x80
+
  | {{Metadata id|}}
| Flying with {{Minecraft Wiki|elytra}}
 
|-
 
| 1
 
 
  | VarInt
 
  | VarInt
  |colspan="2"| Air
+
  | colspan="2"| Variant (0: <code>llama_creamy.png</code>, 1: <code>llama_white.png</code>, 2: <code>llama_brown.png</code>, 3: <code>llama_gray.png</code>)
| 300
+
  | 0
|-
 
| 2
 
| OptChat
 
|colspan="2"| Custom name
 
| empty
 
|-
 
| 3
 
  | Boolean
 
|colspan="2"| Is custom name visible
 
| false
 
|-
 
| 4
 
| Boolean
 
|colspan="2"| Is silent
 
| false
 
|-
 
| 5
 
| Boolean
 
|colspan="2"| No gravity
 
| false
 
 
  |}
 
  |}
  
=== Throwable ===
+
=== Trader Llama ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Trader Llama|Llama}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Egg ===
+
=== Mule ===
  
Extends [[#Throwable|Throwable]].
+
{{Metadata inherit|Mule|inherits=ChestedHorse}}
  
No additional metadata.
+
=== Bee ===
  
=== Ender Pearl ===
+
{{Metadata inherit|Bee|inherits=Animal}}
  
Extends [[#Throwable|Throwable]].
+
{| class="wikitable" {{added}}
 
+
  ! Index
No additional metadata.
+
  ! Type
 
+
  !style="width: 250px;" colspan="2"| Meaning
=== Experience Bottle ===
+
  ! Default
 
+
|-
Extends [[#Throwable|Throwable]].
+
|rowspan="5"| {{Metadata id|}}
 
+
|rowspan="5"| Byte
No additional metadata.
+
|colspan="2"| Flags
 
+
|rowspan="5"| 0
=== Snowball ===
+
|-
 
+
| 0x01 || ''Unused''
Extends [[#Throwable|Throwable]].
+
|-
 
+
| 0x02 || Is angry
No additional metadata.
+
|-
 
+
| 0x04 || Has stung
=== Potion ===
+
|-
 
+
| 0x08 || Has nectar
Extends [[#Throwable|Throwable]].
 
 
 
{| class="wikitable"
 
  ! Index
 
  ! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
  ! Default
 
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | [[Slot]]
+
  | VarInt
  |colspan="2"| Potion which is thrown
+
  | colspan="2"| Anger time in ticks
  | Empty
+
  | 0 (Not angry)
 
  |}
 
  |}
  
=== Eye of Ender ===
+
=== Fox ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Fox|inherits=Animal}}
 
 
No additional metadata.
 
 
 
=== FallingBlock ===
 
 
 
Extends [[#Entity|Entity]].
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 1,906: Line 1,924:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | [[Data Types#Position|Position]]
+
  | VarInt
  |colspan="2"| spawn position
+
  | colspan="2" | Type (0: red, 1: snow)
| (0, 0, 0)
+
  | 0 (red)
  |}
 
 
 
=== AreaEffectCloud ===
 
 
 
Extends [[#Entity|Entity]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
  | 6
+
  | rowspan="9" | {{Metadata id|}}
| Float
+
  | rowspan="9" | Byte
  |colspan="2"| Radius
+
! Bit mask
  | 0.5
+
! Meaning
 +
  | rowspan="9" | 0
 
  |-
 
  |-
  | 7
+
  | 0x01 || Sitting
| VarInt
 
|colspan="2"| Color (only for mob spell particle)
 
| 0
 
 
  |-
 
  |-
  | 8
+
  | 0x02 || ''Unused''
| Boolean
 
|colspan="2"| Ignore radius and show effect as single point, not area
 
| false
 
 
  |-
 
  |-
  | 9
+
  | 0x04 || Crouching
  | Particle
+
|-
  | colspan="2"| The [[#Particle]]
+
| 0x08 || Unknown
  | <code>effect</code>
+
|-
 +
| 0x10 || Unknown
 +
|-
 +
| 0x20 || Sleeping
 +
|-
 +
| 0x40 || Unknown
 +
|-
 +
| 0x80 || Unknown
 +
|-
 +
| {{Metadata id|}}
 +
  | OptUUID
 +
  | colspan="2" | First UUID (in <code>UUIDs</code> NBT)?
 +
| Absent
 +
  |-
 +
| {{Metadata id|}}
 +
| OptUUID
 +
| colspan="2" | Second UUID (in <code>UUIDs</code> NBT)?
 +
| Absent
 
  |}
 
  |}
  
=== FishingHook ===
+
=== Ocelot ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Ocelot|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 1,953: Line 1,972:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | VarInt
+
  | Boolean
  |colspan="2"| Hooked entity id + 1, or 0 if there is no hooked entity
+
  |colspan="2"| Is trusting
  | 0
+
  | false
 
  |}
 
  |}
  
=== Arrow ===
+
=== Panda ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Panda|inherits=Animal}}
 
 
Abstract base class for [[#TippedArrow|TippedArrow]] (which is used for regular arrows as well as tipped ones) and Spectral Arrow.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 1,971: Line 1,988:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | rowspan="3" | 6
+
| {{Metadata id|}}
  | rowspan="3" | Byte
+
| Integer
  ! Bit mask
+
|colspan="2"| Breed timer?  Set to 32 when something happens, and then counts down to 0 again.  At 29 and 14 (before counting down), will play the <code>entity.panda.cant_breed</code> sound event.
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| Integer
 +
|colspan="2"| Sneeze timer.  Counts up from 0; when it hits 1 the <code>entity.panda.pre_sneeze</code> event plays and when it hits 21 the <code>entity.panda.sneeze</code> event plays (and it is set back to 0 and the sneeze flag is cleared).
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| Integer
 +
|colspan="2"| Eat timer.  If nonzero, counts upwards.
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| Byte
 +
|colspan="2"| Main Gene
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| Byte
 +
|colspan="2"| Hidden Gene
 +
| 0
 +
|-
 +
  |rowspan="6"| {{Metadata id|}}
 +
  |rowspan="6"| Byte
 +
  ! Bit mask
 
  ! Meaning
 
  ! Meaning
  | rowspan="3" | 0
+
  |rowspan="6"| 0
 
  |-
 
  |-
 
  | 0x01
 
  | 0x01
  | Is critical
+
  | Unused
 
  |-
 
  |-
 
  | 0x02
 
  | 0x02
  | Is noclip (used by loyalty tridents when returning)
+
  | Is sneezing
 +
|-
 +
| 0x04
 +
| Is eating
 +
|-
 +
| 0x08
 +
| Unknown
 
  |-
 
  |-
  | 7
+
  | 0x10
  | OptUUID
+
  | Unknown
|colspan="2"| Shooter UUID
 
| Empty
 
 
  |}
 
  |}
  
=== TippedArrow ===
+
=== Pig ===
  
Extends [[#Arrow|Arrow]].
+
{{Metadata inherit|Pig|inherits=Animal}}
 
 
Used for both tipped and regular arrows.  If not tipped, then color is set to -1 and no tipped arrow particles are used.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,001: Line 2,045:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 8
+
  | {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Has saddle
 +
| false
 +
|-
 +
| {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  |colspan="2"| Color (-1 for no particles)
+
  |colspan="2"| Total time to "boost" with a carrot on a stick for
  | -1
+
  | 0
 
  |}
 
  |}
  
=== Trident ===
+
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.
 +
 
 +
=== Rabbit ===
  
Extends [[#Arrow|Arrow]].
+
{{Metadata inherit|Rabbit|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,017: Line 2,068:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 8
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  |colspan="2"| Loyalty level (enchantment)
+
  |colspan="2"| Type
 
  | 0
 
  | 0
 
  |}
 
  |}
  
=== Boat ===
+
=== Turtle ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Turtle|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,033: Line 2,084:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | VarInt
+
  | BlockPos
  |colspan="2"| Time since last hit
+
  |colspan="2"| Home pos
  | 0
+
  | (0, 0, 0)
 
  |-
 
  |-
  | 7
+
  | {{Metadata id|}}
  | VarInt
+
  | Boolean
  |colspan="2"| Forward direction
+
  |colspan="2"| Has egg
  | 1
+
  | false
 
  |-
 
  |-
  | 8
+
  | {{Metadata id|}}
  | Float
+
  | Boolean
  |colspan="2"| Damage taken
+
  |colspan="2"| Laying egg
  | 0.0
+
  | false
 
  |-
 
  |-
  | 9
+
  | {{Metadata id|}}
  | VarInt
+
  | BlockPos
  |colspan="2"| Type (0=oak, 1=spruce, 2=birch, 3=jungle, 4=acacia, 5=dark oak)
+
  |colspan="2"| Travel pos
| 0
+
| (0, 0, 0)
 
  |-
 
  |-
  | 10
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
  |colspan="2"| Left paddle turning
+
  |colspan="2"| Going home
 
  | false
 
  | false
 
  |-
 
  |-
  | 11
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
  |colspan="2"| Right paddle turning
+
  |colspan="2"| Traveling
 
  | false
 
  | false
|-
 
| 12
 
| VarInt
 
|colspan="2"| Splash timer
 
| 0
 
 
  |}
 
  |}
  
=== EnderCrystal ===
+
=== Polar Bear ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Polar Bear|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,079: Line 2,125:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
| OptPosition
 
|colspan="2"| Beam target
 
| Absent
 
|-
 
| 7
 
 
  | Boolean
 
  | Boolean
  |colspan="2"| Show bottom
+
  |colspan="2"| Standing up
  | true
+
  | false
 
  |}
 
  |}
  
=== Abstract Fireball ===
+
=== Chicken ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Chicken|inherits=Animal}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Dragon Fireball ===
+
=== Cow ===
  
Extends [[#Abstract Fireball|Abstract Fireball]].
+
{{Metadata inherit|Cow|inherits=Animal}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Fireball ===
+
=== Mooshroom ===
 
 
Extends [[#Abstract Fireball|Abstract Fireball]].  This is the large fireball shot by ghasts.
 
 
 
No additional metadata.
 
 
 
=== Small Fireball ===
 
  
Extends [[#Abstract Fireball|Abstract Fireball]].  This is the fireball shot by blazes and dispensers with fire charges.
+
{{Metadata inherit|Mooshroom|inherits=Cow}}
 
 
No additional metadata.
 
 
 
=== WitherSkull ===
 
 
 
Extends [[#Abstract Fireball|Abstract Fireball]].
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,124: Line 2,153:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | Boolean
+
  | String
  |colspan="2"| Invulnerable
+
  | colspan="2"| Variant ("red" or "brown")
  | false
+
  | red
 
  |}
 
  |}
  
=== Fireworks ===
+
=== Sheep ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Sheep|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,140: Line 2,169:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  |rowspan="3"| {{Metadata id|}}
| [[Slot]]
+
  |rowspan="3"| Byte
  |colspan="2"| Firework info
+
! Bit mask
  | empty
+
! Meaning
 +
  |rowspan="3"| 0
 
  |-
 
  |-
  | 7
+
  | 0x0F
  | VarInt
+
  | Color (matches {{Minecraft Wiki|Data_values#Dyes|dye damage values}})
  |colspan="2"| Entity ID of entity which used firework (for elytra boosting)
+
  |-
  | 0
+
| 0x10
 +
  | Is sheared
 
  |}
 
  |}
  
=== Hanging ===
+
=== TameableAnimal ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|TameableAnimal|inherits=Animal}}
  
No additional metadata.
+
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 +
|-
 +
|rowspan="4"| {{Metadata id|}}
 +
|rowspan="4"| Byte
 +
! Bit mask
 +
! Meaning
 +
|rowspan="4"| 0
 +
|-
 +
| 0x01
 +
| Is sitting
 +
|-
 +
| 0x02
 +
| Is angry (only used with wolves)
 +
|-
 +
| 0x04
 +
| Is tamed
 +
|-
 +
| {{Metadata id|}}
 +
| OptUUID
 +
|colspan="2"| Owner
 +
| Absent
 +
|}
  
=== ItemFrame ===
+
=== Cat ===
  
Extends [[#Hanging|Hanging]].
+
{{Metadata inherit|Cat|inherits=TameableAnimal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,167: Line 2,223:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | [[Slot]]
+
| VarInt
  |colspan="2"| Item
+
|colspan="2"| Type (0 = tabby, 1 = black, 2 = red, 3 = siamese, 4 = british_shorthair, 5 = calico, 6 = persian, 7 = ragdoll, 8 = white, 9 = all_black)
  | Empty
+
| 1
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Unknown
 +
| false
 +
|-
 +
| {{Metadata id|}}
 +
  | Boolean
 +
  |colspan="2"| Unknown
 +
  | false
 
  |-
 
  |-
  | 7
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  |colspan="2"| Rotation
+
  |colspan="2"| Collar color (values are those {{Minecraft Wiki|Data_values#Dyes|used with dyes}})
  | 0
+
  | 14 (Red)
 
  |}
 
  |}
  
=== Item ===
+
=== Wolf ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Wolf|inherits=TameableAnimal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,188: Line 2,254:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
  | [[Slot]]
+
  | Boolean
  |colspan="2"| Item
+
  |colspan="2"| Is begging
  | Empty
+
| false
 +
|-
 +
| {{Metadata id|}}
 +
| VarInt
 +
|colspan="2"| Collar color (values are those {{Minecraft Wiki|Data_values#Dyes|used with dyes}})
 +
  | 14 (Red)
 
  |}
 
  |}
  
=== Living ===
+
=== Parrot ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Parrot|inherits=TameableAnimal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,204: Line 2,275:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  |rowspan="5"| 6
+
  | {{Metadata id|}}
  |rowspan="5"| Byte
+
  | VarInt
  |colspan="2"| Hand states, used to trigger blocking/eating/drinking animation.
+
  |colspan="2"| Variant (0: red/blue, 1: blue, 2: green, 3: yellow/blue, 4: grey)
|rowspan="5"| 0
 
|-
 
! Bit mask
 
! Meaning
 
|-
 
| 0x01
 
| Is hand active
 
|-
 
| 0x02
 
| Active hand (0 = main hand, 1 = offhand)
 
|-
 
| 0x04
 
| In riptide spin attack
 
|-
 
| 7
 
| Float
 
|colspan="2"| Health
 
| 1.0
 
|-
 
| 8
 
| VarInt
 
|colspan="2"| Potion effect color (or 0 if there is no effect)
 
| 0
 
|-
 
| 9
 
| Boolean
 
|colspan="2"| Is potion effect ambient: reduces the number of particles generated by potions to 1/5 the normal amount
 
| false
 
|-
 
| 10
 
| VarInt
 
|colspan="2"| Number of arrows in entity
 
 
  | 0
 
  | 0
 
  |}
 
  |}
  
=== Player ===
+
=== Abstract Merchant ===
  
Extends [[#Living|Living]].
+
{{Metadata inherit|Abstract Merchant|inherits=Ageable}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,252: Line 2,291:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 11
+
  | {{Metadata id|}}
| Float
 
|colspan="2"| Additional Hearts
 
| 0.0
 
|-
 
| 12
 
 
  | VarInt
 
  | VarInt
  |colspan="2"| Score
+
  |colspan="2"| Head shake timer (starts at 40, decrements each tick)
 
  | 0
 
  | 0
 +
|}
 +
 +
=== Villager ===
 +
 +
{{Metadata inherit|Villager|inherits=Abstract Merchant}}
 +
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  |rowspan="10"| 13
+
  | {{Metadata id|}}
  |rowspan="10"| Byte
+
  | Villager Data
  |colspan="2"| The Displayed Skin Parts bit mask that is sent in [[Protocol#Client Settings|Client Settings]]
+
  |colspan="2"| Villager Data
  |rowspan="10"| 0
+
  | Plains/None/1
  |-
+
  |}
! Bit mask !! Meaning
+
 
|-
+
=== Wandering Trader ===
| 0x01 || Cape enabled
+
 
|-
+
{{Metadata inherit|Wandering Trader|inherits=Abstract Merchant}}
| 0x02 || Jacket enabled
+
 
|-
+
No additional metadata.
| 0x04 || Left sleeve enabled
+
 
|-
+
=== Golem ===
| 0x08 || Right sleeve enabled
+
 
|-
+
{{Metadata inherit|Golem|inherits=Creature}}
| 0x10 || Left pants leg enabled
+
 
|-
+
No additional metadata.
| 0x20 || Right pants leg enabled
 
|-
 
| 0x40 || Hat enabled
 
|-
 
| 0x80 || ''Unused''
 
|-
 
| 14
 
| Byte
 
|colspan="2"| Main hand (0 : Left, 1 : Right)
 
| 1
 
|-
 
| 15
 
| [[NBT]]
 
|colspan="2"| Left shoulder entity data (for occupying parrot)
 
| Empty
 
|-
 
| 16
 
| [[NBT]]
 
|colspan="2"| Right shoulder entity data (for occupying parrot)
 
| Empty
 
|}
 
  
=== ArmorStand ===
+
=== IronGolem ===
  
Extends [[#Living|Living]].
+
{{Metadata inherit|IronGolem|inherits=Golem}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,311: Line 2,335:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  |rowspan="5"| 11
+
  |rowspan="2"| {{Metadata id|}}
  |rowspan="5"| Byte
+
  |rowspan="2"| Byte
 
  ! Bit mask
 
  ! Bit mask
 
  ! Meaning
 
  ! Meaning
  |rowspan="5"| 0
+
  |rowspan="2"| 0
 
  |-
 
  |-
 
  | 0x01
 
  | 0x01
  | is Small
+
  | Is player-created
 +
|}
 +
 
 +
=== Snowman ===
 +
 
 +
{{Metadata inherit|Snowman|inherits=Golem}}
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | 0x04
+
  |rowspan="3"| {{Metadata id|}}
  | has Arms
+
  |rowspan="3"| Byte
  |-
+
  ! Bit mask
  | 0x08
+
  ! Meaning
  | no BasePlate
+
  |rowspan="3"| 0x10
 
  |-
 
  |-
 
  | 0x10
 
  | 0x10
  | set Marker
+
  | has pumpkin hat
 
  |-
 
  |-
  | 12
+
  | 0x00
  | Rotation
+
  | has no pumpkin hat
  |colspan="2"| Head rotation
+
  |}
| (0.0, 0.0, 0.0)
+
 
|-
+
=== Shulker ===
| 13
+
 
| Rotation
+
{{Metadata inherit|Shulker|inherits=Golem}}
|colspan="2"| Body rotation
 
| (0.0, 0.0, 0.0)
 
|-
 
| 14
 
| Rotation
 
|colspan="2"| Left arm rotation
 
| (-10.0, 0.0, -10.0)
 
|-
 
| 15
 
| Rotation
 
|colspan="2"| Right arm rotation
 
| (-15.0, 0.0, 10.0)
 
|-
 
| 16
 
| Rotation
 
|colspan="2"| Left leg rotation
 
| (-1.0, 0.0, -1.0)
 
|-
 
| 17
 
| Rotation
 
|colspan="2"| Right leg rotation
 
| (1.0, 0.0, 1.0)
 
|}
 
 
 
Note that armor stands with the [[#Entity|invisible flag from the base entity class]] set also cannot be attacked or damaged, except for by the void.
 
 
 
=== Insentient ===
 
 
 
Extends [[#Living|Living]].
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,372: Line 2,378:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  |rowspan="3"| 11
+
  | {{Metadata id|}}
  |rowspan="3"| Byte
+
| Direction
! Bit mask
+
  |colspan="2"| Attach face
! Meaning
+
  | Down (0)
  |rowspan="3"| 0
 
 
  |-
 
  |-
  | 0x01
+
  | {{Metadata id|}}
  | NoAI
+
| OptPosition
 +
|colspan="2"| Attachment position
 +
  | Absent
 
  |-
 
  |-
  | 0x02
+
  | {{Metadata id|}}
  | Left handed
+
| Byte
 +
|colspan="2"| Shield height
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| Byte
 +
| colspan="2"| Color (dye color)
 +
  | 10 (purple)
 
  |}
 
  |}
  
=== Ambient ===
+
=== Monster ===
  
Extends [[#Insentient|Insentient]].
+
{{Metadata inherit|Monster|inherits=Creature}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Bat ===
+
=== Blaze ===
  
Extends [[#Ambient|Ambient]].
+
{{Metadata inherit|Blaze|inherits=Monster}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,401: Line 2,415:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | rowspan="2"| 12
+
  |rowspan="2"| {{Metadata id|}}
  | rowspan="2"| Byte
+
  |rowspan="2"| Byte
 
  ! Bit mask
 
  ! Bit mask
 
  ! Meaning
 
  ! Meaning
  | rowspan="2"| 0
+
  |rowspan="2"| 0
 
  |-
 
  |-
 
  | 0x01
 
  | 0x01
  | Is hanging
+
  | Is on fire
 
  |}
 
  |}
  
=== Creature ===
+
=== Creeper ===
  
Extends [[#Insentient|Insentient]].
+
{{Metadata inherit|Creeper|inherits=Monster}}
 
+
 
No additional metadata.
+
{| class="wikitable"
 
+
! Index
=== WaterMob ===
+
! Type
 
+
!style="width: 250px;" colspan="2"| Meaning
Extends [[#Creature|Creature]].
+
! Default
 +
|-
 +
| {{Metadata id|}}
 +
| VarInt
 +
|colspan="2"| State (-1 = idle, 1 = fuse)
 +
| -1
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Is {{Minecraft Wiki|Creeper#Charged Creeper|charged}}
 +
| false
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Is ignited
 +
| false
 +
|}
 +
 
 +
=== Endermite ===
 +
 
 +
{{Metadata inherit|Endermite|inherits=Monster}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Squid ===
+
=== Giant Zombie ===
  
Extends [[#WaterMob|WaterMob]]
+
{{Metadata inherit|Giant Zombie|inherits=Monster}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Dolphin ===
+
=== Guardian ===
  
Extends [[#WaterMob|WaterMob]].
+
{{Metadata inherit|Guardian|inherits=Monster}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,438: Line 2,472:
 
  !style="width: 250px;" colspan="2"| Meaning
 
  !style="width: 250px;" colspan="2"| Meaning
 
  ! Default
 
  ! Default
  |-
+
  |-  
  | 12
+
  | {{Metadata id|}}
| Position
 
|colspan="2"| Treasure position
 
| (0, 0, 0)
 
|-
 
| 13
 
 
  | Boolean
 
  | Boolean
  |colspan="2"| Can find treasure
+
  |colspan="2"| Is retracting spikes
 
  | false
 
  | false
 
  |-
 
  |-
  | 14
+
  | {{Metadata id|}}
  | Boolean
+
  | VarInt
  |colspan="2"| Has fish
+
  |colspan="2"| Target EID
  | false
+
  | 0
 
  |}
 
  |}
  
=== Abstract fish ===
+
=== ElderGuardian ===
 +
 
 +
{{Metadata inherit|ElderGuardian|inherits=Guardian}}
 +
 
 +
=== Silverfish ===
 +
 
 +
{{Metadata inherit|Silverfish|inherits=Monster}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Raid Participant ===
  
Extends [[#WaterMob|WaterMob]].
+
{{Metadata inherit|Raid Participant|inherits=Monster}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,465: Line 2,504:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
  | Boolean
+
  | boolean
  |colspan="2"| From bucket
+
  | colspan="2"| Is celebrating
  | False
+
  | false
 
  |}
 
  |}
  
=== Cod ===
+
"Is celebrating" appears to control the pose for vindicators and does not appear to be used by other types.
 +
 
 +
=== Abstract Illager ===
  
Extends [[#AbstractFish|AbstractFish]].
+
{{Metadata inherit|Abstract Illager|inherits=Raid Participant}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Puffer fish ===
+
=== Vindicator ===
 +
 
 +
{{Metadata inherit|Vindicator|inherits=Abstract Illager}}
 +
 
 +
=== Pillager ===
 +
 
 +
{{Metadata inherit|Pillager|inherits=Abstract Illager}}
 +
 
 +
=== Spellcaster Illager ===
  
Extends [[#AbstractFish|AbstractFish]].
+
{{Metadata inherit|Spellcaster Illager|inherits=Abstract Illager}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,487: Line 2,536:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 13
+
  | {{Metadata id|}}
  | VarInt
+
  | Byte
  |colspan="2"| PuffState (varies from 0 to 2)
+
  | colspan="2"| Spell (0: none, 1: summon vex, 2: attack, 3: wololo, 4: disappear, 5: blindness)
 
  | 0
 
  | 0
 
  |}
 
  |}
  
=== Salmon ===
+
=== Evoker ===
  
Extends [[#AbstractFish|AbstractFish]].
+
{{Metadata inherit|Evoker|inherits=Spellcaster Illager}}
  
No additional metadata.
+
=== Illusioner ===
  
=== Tropical fish ===
+
{{Metadata inherit|Illusioner|inherits=Spellcaster Illager}}
  
Extends [[#AbstractFish|AbstractFish]].
+
=== Ravager ===
  
{| class="wikitable"
+
{{Metadata inherit|Ravager|inherits=Raid Participant}}
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 13
 
| VarInt
 
|colspan="2"| Variant
 
| 0
 
|}
 
  
 +
No additional metadata.
  
=== Ageable ===
+
=== Witch ===
  
Extends [[#Creature|Creature]].
+
{{Metadata inherit|Witch|inherits=Raid Participant}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,526: Line 2,566:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
  |colspan="2"| Is baby
+
  |colspan="2"| Is drinking potion
 
  | false
 
  | false
 
  |}
 
  |}
  
=== Animal ===
+
=== EvocationFangs ===
  
Extends [[#Ageable|Ageable]].
+
{{Metadata inherit|EvocationFangs|inherits=Entity}}
  
 
No additional metadata.
 
No additional metadata.
  
=== AbstractHorse ===
+
=== Vex ===
  
Extends [[#Animal|Animal]].
+
{{Metadata inherit|Vex|inherits=Monster}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,548: Line 2,588:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  |rowspan="9"| 13
+
  |rowspan="2"| {{Metadata id|}}
  |rowspan="9"| Byte
+
  |rowspan="2"| Byte
 
  ! Bit mask
 
  ! Bit mask
 
  ! Meaning
 
  ! Meaning
  |rowspan="9"| 0
+
  |rowspan="2"| 0
 
  |-
 
  |-
 
  | 0x01
 
  | 0x01
| ''Unused''
+
  | Is in attack mode
|-
+
  |}
| 0x02
+
 
  | Is Tame
+
=== AbstractSkeleton ===
  |-
+
 
| 0x04
+
{{Metadata inherit|AbstractSkeleton|inherits=Monster}}
| Is saddled
+
 
|-
+
No additional metadata.
| 0x08
+
 
| Has bred
+
=== Skeleton ===
|-
 
| 0x10
 
| Is eating
 
|-
 
| 0x20
 
| Is rearing (on hind legs)
 
|-
 
| 0x40
 
| Is mouth open
 
|-
 
| 0x80
 
| ''Unused''
 
|-
 
| 14
 
| OptUUID
 
|colspan="2"| Owner
 
| Absent
 
|}
 
  
=== Horse ===
+
{{Metadata inherit|Skeleton|inherits=AbstractSkeleton}}
  
Extends [[#AbstractHorse|AbstractHorse]].
+
=== Wither Skeleton ===
  
{| class="wikitable"
+
{{Metadata inherit|Wither Skeleton|inherits=AbstractSkeleton}}
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 15
 
| VarInt
 
|colspan="2"| Variant (Color & Style)
 
| 0
 
|-
 
| 16
 
| VarInt
 
|colspan="2"| Armor (0: none, 1: iron, 2: gold, 3: diamond)
 
| 0 (none)
 
|-
 
| 17
 
| [[Slot]]
 
|colspan="2"| Armor Item (Forge only)
 
| Empty
 
|}
 
  
=== ZombieHorse ===
+
=== Stray ===
  
Extends [[#AbstractHorse|AbstractHorse]].
+
{{Metadata inherit|Stray|inherits=AbstractSkeleton}}
  
=== SkeletonHorse ===
+
=== Spider ===
  
Extends [[#AbstractHorse|AbstractHorse]].
+
{{Metadata inherit|Spider|inherits=Monster}}
  
=== ChestedHorse ===
+
{| class="wikitable"
 
 
Extends [[#AbstractHorse|AbstractHorse]].
 
 
 
{| class="wikitable"  
 
 
  ! Index
 
  ! Index
 
  ! Type
 
  ! Type
Line 2,628: Line 2,626:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 15
+
  |rowspan="2"| {{Metadata id|}}
  | Boolean
+
  |rowspan="2"| Byte
  |colspan="2"| Has Chest
+
! Bit mask
  | false
+
! Meaning
 +
  |rowspan="2"| 0
 +
|-
 +
| 0x01
 +
  | Is climbing
 
  |}
 
  |}
  
=== Donkey ===
+
=== Wither ===
  
Extends [[#ChestedHorse|ChestedHorse]].
+
{{Metadata inherit|Wither|inherits=Monster}}
  
=== Llama ===
+
{| class="wikitable"
 
 
Extends [[#ChestedHorse|ChestedHorse]].
 
 
 
{| class="wikitable"
 
 
  ! Index
 
  ! Index
 
  ! Type
 
  ! Type
Line 2,648: Line 2,646:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 16
+
  | {{Metadata id|}}
 +
| VarInt
 +
|colspan="2"| Center head's target (entity ID, or 0 if no target)
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  | colspan="2"| Strength (number of columns of 3 slots in the llama's inventory once a chest is equipped)
+
  |colspan="2"| Left head's target (entity ID, or 0 if no target)
 
  | 0
 
  | 0
 
  |-
 
  |-
  | 17
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  | colspan="2"| Carpet color (a dye color, or -1 if no carpet equipped)
+
  |colspan="2"| Right head's target (entity ID, or 0 if no target)
  | -1
+
  | 0
 
  |-
 
  |-
  | 18
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  | colspan="2"| Variant (0: <code>llama_creamy.png</code>, 1: <code>llama_white.png</code>, 2: <code>llama_brown.png</code>, 3: <code>llama_gray.png</code>)
+
  |colspan="2"| Invulnerable time
 
  | 0
 
  | 0
 
  |}
 
  |}
  
=== Mule ===
+
=== Zombie ===
  
Extends [[#ChestedHorse|ChestedHorse]].
+
{{Metadata inherit|Zombie|inherits=Monster}}
 
 
=== Pig ===
 
 
 
Extends [[#Animal|Animal]].
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,678: Line 2,677:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 13
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
  |colspan="2"| Has saddle
+
  |colspan="2"| Is baby
 
  | false
 
  | false
 
  |-
 
  |-
  | 14
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  |colspan="2"| Total time to "boost" with a carrot on a stick for
+
  |colspan="2"| Unused (previously type)
 
  | 0
 
  | 0
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Is becoming a drowned
 +
| false
 
  |}
 
  |}
  
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.
+
=== Zombie Villager ===
  
=== Rabbit ===
+
{{Metadata inherit|Zombie Villager|inherits=Zombie}}
 
 
Extends [[#Animal|Animal]].
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,701: Line 2,703:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 13
+
  | {{Metadata id|}}
  | VarInt
+
| Boolean
  |colspan="2"| Type
+
|colspan="2"| Is converting
  | 0
+
| false
 +
|-
 +
| {{Metadata id|}}
 +
  | Villager Data
 +
  |colspan="2"| Villager Data
 +
  | Plains/None/1
 
  |}
 
  |}
  
=== Turtle ===
+
=== Husk ===
 +
 
 +
{{Metadata inherit|Husk|inherits=Zombie}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Drowned ===
 +
 
 +
{{Metadata inherit|Drowned|inherits=Zombie}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Zombie Pigman ===
 +
 
 +
{{Metadata inherit|Zombie Pigman|inherits=Zombie}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Enderman ===
  
Extends [[#Animal|Animal]].
+
{{Metadata inherit|Enderman|inherits=Monster}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,717: Line 2,742:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 13
+
  | {{Metadata id|}}
  | BlockPos
+
  | Opt BlockID
  |colspan="2"| Home pos
+
  |colspan="2"| Carried block
  | (0, 0, 0)
+
  | Absent
 
  |-
 
  |-
  | 14
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
  |colspan="2"| Has egg
+
  |colspan="2"| Is screaming
| false
 
|-
 
| 15
 
| Boolean
 
|colspan="2"| Laying egg
 
| false
 
|-
 
| 16
 
| BlockPos
 
|colspan="2"| Travel pos
 
| (0, 0, 0)
 
|-
 
| 17
 
| Boolean
 
|colspan="2"| Going home
 
| false
 
|-
 
| 18
 
| Boolean
 
|colspan="2"| Traveling
 
| false
 
|}
 
 
 
=== Polar Bear ===
 
 
 
Extends [[#Animal|Animal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 13
 
| Boolean
 
|colspan="2"| Standing up
 
| false
 
|}
 
 
 
=== Chicken ===
 
 
 
Extends [[#Animal|Animal]].
 
 
 
No additional metadata.
 
 
 
=== Cow ===
 
 
 
Extends [[#Animal|Animal]].
 
 
 
No additional metadata.
 
 
 
=== Mooshroom ===
 
 
 
Extends [[#Cow|Cow]].
 
 
 
No additional metadata.
 
 
 
=== Sheep ===
 
 
 
Extends [[#Animal|Animal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="3"| 13
 
|rowspan="3"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="3"| 0
 
|-
 
| 0x0F
 
| Color (matches {{Minecraft Wiki|Data_values#Dyes|dye damage values}})
 
|-
 
| 0x10
 
| Is sheared
 
|}
 
 
 
=== TameableAnimal ===
 
 
 
Extends [[#Animal|Animal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="4"| 13
 
|rowspan="4"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="4"| 0
 
|-
 
| 0x01
 
| Is sitting
 
|-
 
| 0x02
 
| Is angry (only used with wolves)
 
|-
 
| 0x04
 
| Is tamed
 
|-
 
| 14
 
| OptUUID
 
|colspan="2"| Owner
 
| Absent
 
|}
 
 
 
=== Ocelot ===
 
 
 
Extends [[#TameableAnimal|TameableAnimal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 15
 
| VarInt
 
|colspan="2"| Type (0 = untamed, 1 = tuxedo, 2 = tabby, 3 = siamese).  Used to render regardless as to whether it is tamed or not.
 
| 0
 
|}
 
 
 
=== Wolf ===
 
 
 
Extends [[#TameableAnimal|TameableAnimal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 15
 
| Float
 
|colspan="2"| Damage taken (used for tail rotation)
 
| Value of health field (1.0)
 
|-
 
| 16
 
| Boolean
 
|colspan="2"| Is begging
 
| false
 
|-
 
| 17
 
| VarInt
 
|colspan="2"| Collar color (values are those {{Minecraft Wiki|Data_values#Dyes|used with dyes}})
 
| 14 (Red)
 
|}
 
 
 
=== Parrot ===
 
 
 
Extends [[#TameableAnimal|TameableAnimal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 15
 
| VarInt
 
|colspan="2"| Variant (0: red/blue, 1: blue, 2: green, 3: yellow/blue, 4: grey)
 
| 0
 
|}
 
 
 
=== Villager ===
 
 
 
Extends [[#Ageable|Ageable]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 13
 
| VarInt
 
|colspan="2"| Profession (Farmer = 0, Librarian = 1, Priest = 2, Blacksmith = 3, Butcher = 4, Nitwit = 5)
 
| 0
 
|}
 
 
 
=== Golem ===
 
 
 
Extends [[#Creature|Creature]].
 
 
 
No additional metadata.
 
 
 
=== IronGolem ===
 
 
 
Extends [[#Golem|Golem]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="2"| 12
 
|rowspan="2"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="2"| 0
 
|-
 
| 0x01
 
| Is player-created
 
|}
 
 
 
=== Snowman ===
 
 
 
Extends [[#Golem|Golem]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="3"| 12
 
|rowspan="3"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="3"| 0x10
 
|-
 
| 0x10
 
| has pumpkin hat
 
|-
 
| 0x00
 
| has no pumpkin hat
 
|}
 
 
 
=== Shulker ===
 
 
 
Extends [[#Golem|Golem]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| Direction
 
|colspan="2"| Attach face
 
| Down (0)
 
|-
 
| 13
 
| OptPosition
 
|colspan="2"| Attachment position
 
| Absent
 
|-
 
| 14
 
| Byte
 
|colspan="2"| Shield height
 
| 0
 
|-
 
| 15
 
| Byte
 
| colspan="2"| Color (dye color)
 
| 10 (purple)
 
|}
 
 
 
=== Monster ===
 
 
 
Extends [[#Creature|Creature]].
 
 
 
No additional metadata.
 
 
 
=== Blaze ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="2"|12
 
|rowspan="2"|Byte
 
! Bit mask
 
! Meaning
 
|rowspan="2"|0
 
|-
 
| 0x01
 
| Is on fire
 
|}
 
 
 
=== Creeper ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| VarInt
 
|colspan="2"| State (-1 = idle, 1 = fuse)
 
| -1
 
|-
 
| 13
 
| Boolean
 
|colspan="2"| Is {{Minecraft Wiki|Creeper#Charged Creeper|charged}}
 
| false
 
|-
 
| 14
 
| Boolean
 
|colspan="2"| Is ignited
 
| false
 
|}
 
 
 
=== Endermite ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
No additional metadata.
 
 
 
=== Giant Zombie ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
No additional metadata.
 
 
 
=== Guardian ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| Boolean
 
|colspan="2"| Is retracting spikes
 
| false
 
|-
 
| 13
 
| VarInt
 
|colspan="2"| Target EID
 
| 0
 
|}
 
 
 
=== ElderGuardian ===
 
 
 
Extends [[#Guardian|Guardian]].
 
 
 
=== Silverfish ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
No additional metadata.
 
 
 
=== Abstract Illager ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="2"| 12
 
|rowspan="2"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="2"| 0
 
|-
 
| 0x01
 
| Has target (aggressive state)
 
|}
 
 
 
=== VindicationIllager ===
 
 
 
Extends [[#Abstract Illager|Abstract Illager]].
 
 
 
=== Spellcaster Illager ===
 
 
 
Extends [[#Abstract Illager|Abstract Illlager]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 13
 
| Byte
 
| colspan="2"| Spell (0: none, 1: summon vex, 2: attack, 3: wololo, 4: disappear, 5: blindness)
 
| 0
 
|}
 
 
 
=== EvocationIllager ===
 
 
 
Extends [[#Spellcaster Illager|Spellcaster Illager]].
 
 
 
=== IllusionIllager ===
 
 
 
Extends [[#Spellcaster Illager|Spellcaster Illager]].
 
 
 
=== Vex ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="2"| 12
 
|rowspan="2"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="2"| 0
 
|-
 
| 0x01
 
| Is in attack mode
 
|}
 
 
 
=== EvocationFangs ===
 
 
 
Extends [[#Entity|Entity]].
 
 
 
No additional metadata.
 
 
 
=== AbstractSkeleton ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| Boolean
 
|colspan="2"| Is swinging arms
 
| false
 
|}
 
 
 
=== Skeleton ===
 
 
 
Extends [[#AbstractSkeleton|AbstractSkeleton]].
 
 
 
=== Wither Skeleton ===
 
 
 
Extends [[#AbstractSkeleton|AbstractSkeleton]].
 
 
 
=== Stray ===
 
 
 
Extends [[#AbstractSkeleton|AbstractSkeleton]].
 
 
 
=== Spider ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="2"| 12
 
|rowspan="2"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="2"| 0
 
|-
 
| 0x01
 
| Is climbing
 
|}
 
 
 
=== Witch ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| Boolean
 
|colspan="2"| Is drinking potion
 
| false
 
|}
 
 
 
=== Wither ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| VarInt
 
|colspan="2"| Center head's target (entity ID, or 0 if no target)
 
| 0
 
|-
 
| 13
 
| VarInt
 
|colspan="2"| Left head's target (entity ID, or 0 if no target)
 
| 0
 
|-
 
| 14
 
| VarInt
 
|colspan="2"| Right head's target (entity ID, or 0 if no target)
 
| 0
 
|-
 
| 15
 
| VarInt
 
|colspan="2"| Invulnerable time
 
| 0
 
|}
 
 
 
=== Zombie ===
 
 
 
Extends [[#Monster|Monster]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| Boolean
 
|colspan="2"| Is baby
 
| false
 
|-
 
| 13
 
| VarInt
 
|colspan="2"| Unused (previously type)
 
| 0
 
|-
 
| 14
 
| Boolean
 
|colspan="2"| Are hands held up
 
| false
 
|-
 
| 15
 
| Boolean
 
|colspan="2"| Is becoming a drowned
 
| false
 
|}
 
 
 
=== Zombie Villager ===
 
 
 
Extends [[#Zombie|Zombie]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 16
 
| Boolean
 
|colspan="2"| Is converting
 
 
  | false
 
  | false
|-
 
| 17
 
| VarInt
 
|colspan="2"| Profession
 
| 0
 
|}
 
 
=== Husk ===
 
 
Extends [[#Zombie|Zombie]].
 
 
No additional metadata.
 
 
=== Drowned ===
 
 
Extends [[#Zombie|Zombie]].
 
 
No additional metadata.
 
 
=== Enderman ===
 
 
Extends [[#Monster|Monster]].
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| 12
 
| Opt BlockID
 
|colspan="2"| Carried block
 
| Absent
 
 
  |-
 
  |-
  | 13
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
  |colspan="2"| Is screaming
+
  |colspan="2"| Is stared at
 
  | false
 
  | false
 
  |}
 
  |}
Line 3,341: Line 2,760:
 
=== EnderDragon ===
 
=== EnderDragon ===
  
Extends [[#Insentient|Insentient]].
+
{{Metadata inherit|EnderDragon|inherits=Insentient}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,349: Line 2,768:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Dragon phase
 
  |colspan="2"| Dragon phase
Line 3,371: Line 2,790:
 
=== Flying ===
 
=== Flying ===
  
Extends [[#Insentient|Insentient]].
+
{{Metadata inherit|Flying|inherits=Insentient}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,377: Line 2,796:
 
=== Ghast ===
 
=== Ghast ===
  
Extends [[#Flying|Flying]].
+
{{Metadata inherit|Ghast|inherits=Flying}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,385: Line 2,804:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
 
  |colspan="2"| Is attacking
 
  |colspan="2"| Is attacking
Line 3,393: Line 2,812:
 
=== Phantom ===
 
=== Phantom ===
  
Extends [[#Flying|Flying]].
+
{{Metadata inherit|Phantom|inherits=Flying}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,401: Line 2,820:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Size
 
  |colspan="2"| Size
Line 3,411: Line 2,830:
 
=== Slime ===
 
=== Slime ===
  
Extends [[#Insentient|Insentient]].
+
{{Metadata inherit|Slime|inherits=Insentient}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,419: Line 2,838:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Size
 
  |colspan="2"| Size
Line 3,427: Line 2,846:
 
=== LlamaSpit ===
 
=== LlamaSpit ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|LlamaSpit|inherits=Entity}}
  
 
=== Minecart ===
 
=== Minecart ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|Minecart|inherits=Entity}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,439: Line 2,858:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Shaking power
 
  |colspan="2"| Shaking power
 
  | 0
 
  | 0
 
  |-
 
  |-
  | 7
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Shaking direction
 
  |colspan="2"| Shaking direction
 
  | 1
 
  | 1
 
  |-
 
  |-
  | 8
+
  | {{Metadata id|}}
 
  | Float
 
  | Float
 
  |colspan="2"| Shaking multiplier
 
  |colspan="2"| Shaking multiplier
 
  | 0.0
 
  | 0.0
 
  |-
 
  |-
  | 9
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Custom block ID and damage
 
  |colspan="2"| Custom block ID and damage
 
  | 0
 
  | 0
 
  |-
 
  |-
  | 10
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Custom block Y position (in 16ths of a block)
 
  |colspan="2"| Custom block Y position (in 16ths of a block)
 
  | 6
 
  | 6
 
  |-
 
  |-
  | 11
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
 
  |colspan="2"| Show custom block
 
  |colspan="2"| Show custom block
Line 3,482: Line 2,901:
 
=== MinecartRideable ===
 
=== MinecartRideable ===
  
Extends [[#Minecart|Minecart]].
+
{{Metadata inherit|MinecartRideable|inherits=Minecart}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,488: Line 2,907:
 
=== MinecartContainer ===
 
=== MinecartContainer ===
  
Extends [[#Minecart|Minecart]].
+
{{Metadata inherit|MinecartContainer|inherits=Minecart}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,494: Line 2,913:
 
=== MinecartHopper ===
 
=== MinecartHopper ===
  
Extends [[#MinecartContainer|MinecartContainer]].
+
{{Metadata inherit|MinecartHopper|inherits=MinecartContainer}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,500: Line 2,919:
 
=== MinecartChest ===
 
=== MinecartChest ===
  
Extends [[#MinecartContainer|MinecartContainer]].
+
{{Metadata inherit|MinecartChest|inherits=MinecartContainer}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,506: Line 2,925:
 
=== MinecartFurnace ===
 
=== MinecartFurnace ===
  
Extends [[#Minecart|Minecart]].
+
{{Metadata inherit|MinecartFurnace|inherits=Minecart}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,514: Line 2,933:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | Boolean
 
  | Boolean
 
  |colspan="2"| Has fuel
 
  |colspan="2"| Has fuel
Line 3,522: Line 2,941:
 
=== MinecartTNT ===
 
=== MinecartTNT ===
  
Extends [[#Minecart|Minecart]].
+
{{Metadata inherit|MinecartTNT|inherits=Minecart}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,528: Line 2,947:
 
=== MinecartSpawner ===
 
=== MinecartSpawner ===
  
Extends [[#Minecart|Minecart]].
+
{{Metadata inherit|MinecartSpawner|inherits=Minecart}}
  
 
No additional metadata.
 
No additional metadata.
Line 3,534: Line 2,953:
 
=== MinecartCommandBlock ===
 
=== MinecartCommandBlock ===
  
Extends [[#Minecart|Minecart]].
+
{{Metadata inherit|MinecartCommandBlock|inherits=Minecart}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,542: Line 2,961:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 12
+
  | {{Metadata id|}}
 
  | String
 
  | String
 
  |colspan="2"| Command
 
  |colspan="2"| Command
 
  | <code></code>
 
  | <code></code>
 
  |-
 
  |-
  | 13
+
  | {{Metadata id|}}
 
  | [[Chat]]
 
  | [[Chat]]
 
  |colspan="2"| Last output
 
  |colspan="2"| Last output
Line 3,555: Line 2,974:
 
=== TNTPrimed ===
 
=== TNTPrimed ===
  
Extends [[#Entity|Entity]].
+
{{Metadata inherit|TNTPrimed|inherits=Entity}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 3,563: Line 2,982:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | 6
+
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
 
  |colspan="2"| Fuse time
 
  |colspan="2"| Fuse time

Revision as of 18:41, 11 March 2020

Various Entities have different metadata fields and status codes.

Contents

Mobs

Mobs are spawned via Spawn Mob.

Warning.png Some entities (marked in yellow) should only be spawned using Spawn Object and their Object ID. While they also have an entity ID, this ID is only used internally. Servers should not attempt to spawn these entities using Spawn Mob with that entity ID, although clients should accept such packets if they appear.

Additionally, a few other entities (marked in blue) must be spawned in their own special ways:

Warning.png These entity IDs are out of date. Use Data Generators or Burger to get current IDs.

Type Name bounding box x and z bounding box y ID
0 AreaEffectCloud 2.0 * Radius 0.5 minecraft:area_effect_cloud
1 ArmorStand normal: 0.5 marker: 0.0 small: 0.25 normal: 1.975 marker: 0.0 small: 0.9875 minecraft:armor_stand
2 Arrow 0.5 0.5 minecraft:arrow
3 Bat 0.5 0.9 minecraft:bat
4 Blaze 0.6 1.8 minecraft:blaze
5 Boat 1.375 0.5625 minecraft:boat
6 CaveSpider 0.7 0.5 minecraft:cave_spider
7 Chicken 0.4 0.7 minecraft:chicken
8 Cod 0.9 1.4 minecraft:cod
9 Cow 0.9 1.4 minecraft:cow
10 Creeper 0.6 1.7 minecraft:creeper
11 Donkey 1.3964844 1.6 minecraft:donkey
12 Dolphin 0.9 0.6 minecraft:dolphin
13 DragonFireball 1.0 1.0 minecraft:dragon_fireball
14 Drowned ? ? minecraft:drowned
15 ElderGuardian 1.9975 (2.35 * guardian) 1.9975 (2.35 * guardian) minecraft:elder_guardian
16 EnderCrystal 2.0 2.0 minecraft:end_crystal
17 EnderDragon 16.0 8.0 minecraft:ender_dragon
18 Enderman 0.6 2.9 minecraft:enderman
19 Endermite 0.4 0.3 minecraft:endermite
20 EvocationFangs 0.5 0.8 minecraft:evoker_fangs
21 EvocationIllager 0.6 1.95 minecraft:evoker
22 XPOrb 0.5 0.5 minecraft:experience_orb
23 EyeOfEnderSignal 0.25 0.25 minecraft:eye_of_ender
24 FallingSand 0.98 0.98 minecraft:falling_block
25 FireworksRocketEntity 0.25 0.25 minecraft:fireworks_rocket
26 Ghast 4 4 minecraft:ghast
27 Giant 3.6 10.8 minecraft:giant
28 Guardian 0.85 0.85 minecraft:guardian
29 Horse (EntityHorse until 1.11) 1.3964844 1.6 minecraft:horse
30 Husk 0.6 1.95 minecraft:husk
31 IllusionIllager 0.6 1.95 minecraft:illusioner
32 Item 0.25 0.25 minecraft:item
33 ItemFrame 0.75 or 0.0625 (depth) 0.75 minecraft:item_frame
34 Fireball (ghast) 1.0 1.0 minecraft:fireball
35 LeashKnot 0.375 0.5 minecraft:leash_knot
36 Llama 0.9 1.87 minecraft:llama
37 LlamaSpit 0.25 0.25 minecraft:llama_spit
38 LavaSlime (Magma Cube) 0.51000005 * size 0.51000005 * size minecraft:magma_cube
39 MinecartRideable 0.98 0.7 minecraft:minecart
40 MinecartChest 0.98 0.7 minecraft:chest_minecart
41 MinecartCommandBlock 0.98 0.7 minecraft:commandblock_minecart
42 MinecartFurnace 0.98 0.7 minecraft:furnace_minecart
43 MinecartHopper 0.98 0.7 minecraft:hopper_minecart
44 MinecartSpawner 0.98 0.7 minecraft:spawner_minecart
45 MinecartTNT 0.98 0.7 minecraft:tnt_minecart
46 Mule 1.3964844 1.6 minecraft:mule
47 MushroomCow (Mooshroom) 0.9 1.4 minecraft:mooshroom
48 Ozelot (Ocelot) 0.6 0.7 minecraft:ocelot
49 Painting type width or 0.0625 (depth) type height minecraft:painting
50 Parrot 0.5 0.9 minecraft:parrot
51 Pig 0.9 0.9 minecraft:pig
52 Pufferfish ? ? minecraft:pufferfish
53 PigZombie 0.6 1.95 minecraft:zombie_pigman
54 PolarBear 1.3 1.4 minecraft:polar_bear
55 PrimedTnt 0.98 0.98 minecraft:tnt
56 Rabbit 0.4 0.5 minecraft:rabbit
57 Salmon ? ? minecraft:salmon
58 Sheep 0.9 1.3 minecraft:sheep
59 Shulker 1.0 1.0-2.0 (depending on peek) minecraft:shulker
60 ShulkerBullet 0.3125 0.3125 minecraft:shulker_bullet
61 Silverfish 0.4 0.3 minecraft:silverfish
62 Skeleton 0.6 1.99 minecraft:skeleton
63 SkeletonHorse 1.3964844 1.6 minecraft:skeleton_horse
64 (67: 1.14) Slime 0.51000005 * size 0.51000005 * size minecraft:slime
65 SmallFireball (blaze) 0.3125 0.3125 minecraft:small_fireball
66 SnowMan 0.7 1.9 minecraft:snow_golem
67 Snowball 0.25 0.25 minecraft:snowball
68 SpectralArrow 0.5 0.5 minecraft:spectral_arrow
69 Spider 1.4 0.9 minecraft:spider
70 Squid 0.8 0.8 minecraft:squid
71 Stray 0.6 1.99 minecraft:stray
72 Tropical Fish 0.5 0.4 minecraft:tropical_fish
73 Turtle 1.2 0.4 minecraft:turtle
74 ThrownEgg 0.25 0.25 minecraft:egg
75 ThrownEnderpearl 0.25 0.25 minecraft:ender_pearl
76 ThrownExpBottle 0.25 0.25 minecraft:experience_bottle
77 ThrownPotion 0.25 0.25 minecraft:potion
78 Vex 0.4 0.8 minecraft:vex
79 Villager 0.6 1.95 minecraft:villager
80 VillagerGolem (Iron Golem) 1.4 2.7 minecraft:iron_golem}
81 VindicationIllager 0.6 1.95 minecraft:vindicator
82 Witch 0.6 1.95 minecraft:witch
83 WitherBoss 0.9 3.5 minecraft:wither
84 WitherSkeleton 0.7 2.4 minecraft:wither_skeleton
85 WitherSkull 0.3125 0.3125 minecraft:wither_skull
86 Wolf 0.6 0.85 minecraft:wolf
87 Zombie 0.6 1.95 minecraft:zombie
88 ZombieHorse 1.3964844 1.6 minecraft:zombie_horse
89 ZombieVillager 0.6 1.95 minecraft:zombie_villager
90 Phantom 0.9 0.5 minecraft:phantom
91 Lightning Bolt - - minecraft:lightning_bolt
92 Player 0.8 1.8 minecraft:player
93 Fishing bobber ? ? minecraft:fishing_bobber
94 Trident ? ? minecraft:trident

Objects

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

Object IDs and Entity IDs are different. Most objects also have an entity ID, but should only ever be spawned via Spawn Object.

ID Name bounding box x and z bounding box y
1 Boat 1.375 0.6
2 Item Stack (Slot) 0.25 0.25
3 Area Effect Cloud 2.0 * Radius 0.5
10 Minecart 0.98 0.7
50 Activated TNT 0.98 0.98
51 EnderCrystal 2.0 2.0
60 Tipped arrow (projectile; also used for regular arrows) 0.5 0.5
61 Snowball (projectile) 0.25 0.25
62 Egg (projectile) 0.25 0.25
63 FireBall (ghast projectile) 1.0 1.0
64 FireCharge (blaze projectile) 0.3125 0.3125
65 Thrown Enderpearl 0.25 0.25
66 Wither Skull (projectile) 0.3125 0.3125
67 Shulker Bullet 0.3125 0.3125
68 Llama spit 0.25 0.25
70 Falling Objects 0.98 0.98
71 Item frames 0.75 or 0.0625 0.75
72 Eye of Ender 0.25 0.25
73 Thrown Potion 0.25 0.25
75 Thrown Exp Bottle 0.25 0.25
76 Firework Rocket 0.25 0.25
77 Leash Knot 0.375 0.5
78 ArmorStand normal: 0.5 marker: 0.0 small: 0.25 normal: 1.975 marker: 0.0 small: 0.9875
79 Evocation Fangs 0.5 0.8
90 Fishing Hook 0.25 0.25
91 Spectral Arrow 0.5 0.5
93 Dragon Fireball 1.0 1.0
94 Trident ? ?

Since release 1.6, 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:

Name Type Meaning
Index Unsigned Byte Unique index key determining the meaning of the following value, see the table below. If this is 0xff then the it is the end of the Entity Metadata array and no more is read.
Type Optional VarInt Enum Only if Index is not 0xff; the type of the index, see the table below
Value Optional value of Type Only if Index is not 0xff: the value of the metadata field
Value of Type field Type of Value field Notes
0 Byte
1 VarInt
2 Float
3 String
4 Chat
5 OptChat (Boolean + Optional Chat) Chat is present if the Boolean is set to true
6 Slot
7 Boolean
8 Rotation 3 floats: rotation on x, rotation on y, rotation on z
9 Position
10 OptPosition (Boolean + Optional Position) Position is present if the Boolean is set to true
11 Direction (VarInt) (Down = 0, Up = 1, North = 2, South = 3, West = 4, East = 5)
12 OptUUID (Boolean + Optional UUID) UUID is present if the Boolean is set to true
13 OptBlockID (VarInt) 0 for absent (implies air); otherwise, a block state ID as per the global palette
14 NBT
15 Particle
16 Villager Data 3 VarInts: villager type, villager profession, level
17 OptVarInt 0 for absent; 1 + actual value otherwise. Used for entity IDs.
18 Pose A VarInt enum: 0: STANDING, 1: FALL_FLYING, 2: SLEEPING, 3: SWIMMING, 4: SPIN_ATTACK, 5: SNEAKING, 6: DYING

Villager type (minecraft:villager_type registry):

Name ID
minecraft:desert 0
minecraft:jungle 1
minecraft:plains 2
minecraft:savanna 3
minecraft:snow 4
minecraft:swamp 5
minecraft:taiga 6

Villager professions (minecraft:villager_profession registry):

Name ID
minecraft:none 0
minecraft:armorer 1
minecraft:butcher 2
minecraft:cartographer 3
minecraft:cleric 4
minecraft:farmer 5
minecraft:fisherman 6
minecraft:fletcher 7
minecraft:leatherworker 8
minecraft:librarian 9
minecraft:mason 10
minecraft:nitwit 11
minecraft:shepherd 12
minecraft:toolsmith 13
minecraft:weaponsmith 14

Entity classes also recursively inherit fields from classes they extend.

Entity

The base class.

Index Type Meaning Default
0 Byte Bit mask Meaning 0
0x01 On Fire
0x02 Crouched
0x04 Unused (previously riding)
0x08 Sprinting
0x10 Swimming
0x20 Invisible
0x40 Glowing effect
0x80 Flying with elytra
1 VarInt Air 300
2 OptChat Custom name empty
3 Boolean Is custom name visible false
4 Boolean Is silent false
5 Boolean No gravity false
6 Pose Pose STANDING

Throwable

Extends Entity.

No additional metadata.

Itemed Throwable

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

Index Type Meaning Default
7 Slot Item empty (which behaves as if it were a specific item, depending on the subclass)

Egg

Extends Itemed Throwable.

No additional metadata.

An empty item behaves as if the item were a minecraft:egg.

Ender Pearl

Extends Itemed Throwable.

No additional metadata.

An empty item behaves as if the item were a minecraft:ender_pearl.

Experience Bottle

Extends Itemed Throwable.

No additional metadata.

An empty item behaves as if the item were a minecraft:experience_bottle

Snowball

Extends Itemed Throwable.

No additional metadata.

An empty item behaves as if the item were a minecraft:snowball

Potion

Extends Throwable.

Index Type Meaning Default
7 Slot Potion which is thrown Empty

Eye of Ender

Extends Entity.

Index Type Meaning Default
7 Slot Item empty (which behaves as if it were a minecraft:ender_eye)

FallingBlock

Extends Entity.

Index Type Meaning Default
7 Position spawn position (0, 0, 0)

AreaEffectCloud

Extends Entity.

Index Type Meaning Default
7 Float Radius 0.5
8 VarInt Color (only for mob spell particle) 0
9 Boolean Ignore radius and show effect as single point, not area false
10 Particle The #Particle effect

FishingHook

Extends Entity.

Index Type Meaning Default
7 VarInt Hooked entity id + 1, or 0 if there is no hooked entity 0

Abstract Arrow

Extends Entity.

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

Index Type Meaning Default
7 Byte Bit mask Meaning 0
0x01 Is critical
0x02 Is noclip (used by loyalty tridents when returning)
8 OptUUID Unused Empty
9 Byte Peircing level 0

Tipped Arrow

Extends Abstract Arrow.

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

Index Type Meaning Default
10 VarInt Color (-1 for no particles) -1

Spectral Arrow

Extends Abstract Arrow.

No additional metadata.

Trident

Extends Abstract Arrow.

Index Type Meaning Default
10 VarInt Loyalty level (enchantment) 0
11 Boolean Has enchantment glint False

Boat

Extends Entity.

Index Type Meaning Default
7 VarInt Time since last hit 0
8 VarInt Forward direction 1
9 Float Damage taken 0.0
10 VarInt Type (0=oak, 1=spruce, 2=birch, 3=jungle, 4=acacia, 5=dark oak) 0
11 Boolean Left paddle turning false
12 Boolean Right paddle turning false
13 VarInt Splash timer 0

EnderCrystal

Extends Entity.

Index Type Meaning Default
7 OptPosition Beam target Absent
8 Boolean Show bottom true

Abstract Fireball

Extends Entity.

No additional metadata.

Dragon Fireball

Extends Abstract Fireball.

No additional metadata.

Itemed Fireball

Extends Abstract Fireball.

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

Index Type Meaning Default
7 Slot Item empty (which behaves as if it were a minecraft:fire_charge)

Fireball

Extends Itemed Fireball. This is the large fireball shot by ghasts.

No additional metadata.

Small Fireball

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

No additional metadata.

WitherSkull

Extends Abstract Fireball.

Index Type Meaning Default
7 Boolean Invulnerable false

Fireworks

Extends Entity.

Index Type Meaning Default
7 Slot Firework info empty
8 VarInt Entity ID of entity which used firework (for elytra boosting) 0
9 Boolean Shot at angle (from a crossbow) false

Hanging

Extends Entity.

No additional metadata.

ItemFrame

Extends Hanging.

Index Type Meaning Default
7 Slot Item Empty
8 VarInt Rotation 0

Item

Extends Entity.

Index Type Meaning Default
7 Slot Item Empty

Living

Extends Entity.

Index Type Meaning Default
7 Byte Hand states, used to trigger blocking/eating/drinking animation. 0
Bit mask Meaning
0x01 Is hand active
0x02 Active hand (0 = main hand, 1 = offhand)
0x04 In riptide spin attack
8 Float Health 1.0
9 VarInt Potion effect color (or 0 if there is no effect) 0
10 Boolean Is potion effect ambient: reduces the number of particles generated by potions to 1/5 the normal amount false
11 VarInt Number of arrows in entity 0
12 VarInt Health added by absorption (based on the AbsorptionAmount tag) 0
13 OptBlockPos Unknown (Bed location?) Absent

Player

Extends Living.

Index Type Meaning Default
14 Float Additional Hearts 0.0
15 VarInt Score 0
16 Byte The Displayed Skin Parts bit mask that is sent in Client Settings 0
Bit mask Meaning
0x01 Cape enabled
0x02 Jacket enabled
0x04 Left sleeve enabled
0x08 Right sleeve enabled
0x10 Left pants leg enabled
0x20 Right pants leg enabled
0x40 Hat enabled
0x80 Unused
17 Byte Main hand (0 : Left, 1 : Right) 1
18 NBT Left shoulder entity data (for occupying parrot) Empty
19 NBT Right shoulder entity data (for occupying parrot) Empty

ArmorStand

Extends Living.

Index Type Meaning Default
14 Byte Bit mask Meaning 0
0x01 is Small
0x04 has Arms
0x08 no BasePlate
0x10 set Marker
15 Rotation Head rotation (0.0, 0.0, 0.0)
16 Rotation Body rotation (0.0, 0.0, 0.0)
17 Rotation Left arm rotation (-10.0, 0.0, -10.0)
18 Rotation Right arm rotation (-15.0, 0.0, 10.0)
19 Rotation Left leg rotation (-1.0, 0.0, -1.0)
20 Rotation Right leg rotation (1.0, 0.0, 1.0)

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.

Insentient

Extends Living.

Index Type Meaning Default
14 Byte Bit mask Meaning 0
0x01 NoAI
0x02 Left handed

Ambient

Extends Insentient.

No additional metadata.

Bat

Extends Ambient.

Index Type Meaning Default
15 Byte Bit mask Meaning 0
0x01 Is hanging

Creature

Extends Insentient.

No additional metadata.

WaterMob

Extends Creature.

No additional metadata.

Squid

Extends WaterMob.

No additional metadata.

Dolphin

Extends WaterMob.

Index Type Meaning Default
15 Position Treasure position (0, 0, 0)
16 Boolean Can find treasure false
17 Boolean Has fish false

Abstract fish

Extends WaterMob.

Index Type Meaning Default
15 Boolean From bucket False

Cod

Extends Abstract fish.

No additional metadata.

Puffer fish

Extends Abstract fish.

Index Type Meaning Default
16 VarInt PuffState (varies from 0 to 2) 0

Salmon

Extends Abstract fish.

No additional metadata.

Tropical fish

Extends Abstract fish.

Index Type Meaning Default
16 VarInt Variant 0

Ageable

Extends Creature.

Index Type Meaning Default
15 Boolean Is baby false

Animal

Extends Ageable.

No additional metadata.

AbstractHorse

Extends Animal.

Index Type Meaning Default
16 Byte Bit mask Meaning 0
0x01 Unused
0x02 Is Tame
0x04 Is saddled
0x08 Has bred
0x10 Is eating
0x20 Is rearing (on hind legs)
0x40 Is mouth open
0x80 Unused
17 OptUUID Owner Absent

Horse

Extends AbstractHorse.

Index Type Meaning Default
18 VarInt Variant (Color & Style) 0

ZombieHorse

Extends AbstractHorse.

SkeletonHorse

Extends AbstractHorse.

ChestedHorse

Extends AbstractHorse.

Index Type Meaning Default
18 Boolean Has Chest false

Donkey

Extends ChestedHorse.

Llama

Extends ChestedHorse.

Index Type Meaning Default
19 VarInt Strength (number of columns of 3 slots in the llama's inventory once a chest is equipped) 0
20 VarInt Carpet color (a dye color, or -1 if no carpet equipped) -1
21 VarInt Variant (0: llama_creamy.png, 1: llama_white.png, 2: llama_brown.png, 3: llama_gray.png) 0

Trader Llama

The base class.

No additional metadata.

Mule

Extends ChestedHorse.

Bee

Extends Animal.

Index Type Meaning Default
16 Byte Flags 0
0x01 Unused
0x02 Is angry
0x04 Has stung
0x08 Has nectar
17 VarInt Anger time in ticks 0 (Not angry)

Fox

Extends Animal.

Index Type Meaning Default
16 VarInt Type (0: red, 1: snow) 0 (red)
17 Byte Bit mask Meaning 0
0x01 Sitting
0x02 Unused
0x04 Crouching
0x08 Unknown
0x10 Unknown
0x20 Sleeping
0x40 Unknown
0x80 Unknown
18 OptUUID First UUID (in UUIDs NBT)? Absent
19 OptUUID Second UUID (in UUIDs NBT)? Absent

Ocelot

Extends Animal.

Index Type Meaning Default
16 Boolean Is trusting false

Panda

Extends Animal.

Index Type Meaning Default
16 Integer Breed timer? Set to 32 when something happens, and then counts down to 0 again. At 29 and 14 (before counting down), will play the entity.panda.cant_breed sound event. 0
17 Integer Sneeze timer. Counts up from 0; when it hits 1 the entity.panda.pre_sneeze event plays and when it hits 21 the entity.panda.sneeze event plays (and it is set back to 0 and the sneeze flag is cleared). 0
18 Integer Eat timer. If nonzero, counts upwards. 0
19 Byte Main Gene 0
20 Byte Hidden Gene 0
21 Byte Bit mask Meaning 0
0x01 Unused
0x02 Is sneezing
0x04 Is eating
0x08 Unknown
0x10 Unknown

Pig

Extends Animal.

Index Type Meaning Default
16 Boolean Has saddle false
17 VarInt Total time to "boost" with a carrot on a stick for 0

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.

Rabbit

Extends Animal.

Index Type Meaning Default
16 VarInt Type 0

Turtle

Extends Animal.

Index Type Meaning Default
16 BlockPos Home pos (0, 0, 0)
17 Boolean Has egg false
18 Boolean Laying egg false
19 BlockPos Travel pos (0, 0, 0)
20 Boolean Going home false
21 Boolean Traveling false

Polar Bear

Extends Animal.

Index Type Meaning Default
16 Boolean Standing up false

Chicken

Extends Animal.

No additional metadata.

Cow

Extends Animal.

No additional metadata.

Mooshroom

Extends Cow.

Index Type Meaning Default
16 String Variant ("red" or "brown") red

Sheep

Extends Animal.

Index Type Meaning Default
16 Byte Bit mask Meaning 0
0x0F Color (matches dye damage values)
0x10 Is sheared

TameableAnimal

Extends Animal.

Index Type Meaning Default
16 Byte Bit mask Meaning 0
0x01 Is sitting
0x02 Is angry (only used with wolves)
0x04 Is tamed
17 OptUUID Owner Absent

Cat

Extends TameableAnimal.

Index Type Meaning Default
18 VarInt Type (0 = tabby, 1 = black, 2 = red, 3 = siamese, 4 = british_shorthair, 5 = calico, 6 = persian, 7 = ragdoll, 8 = white, 9 = all_black) 1
19 Boolean Unknown false
20 Boolean Unknown false
21 VarInt Collar color (values are those used with dyes) 14 (Red)

Wolf

Extends TameableAnimal.

Index Type Meaning Default
18 Boolean Is begging false
19 VarInt Collar color (values are those used with dyes) 14 (Red)

Parrot

Extends TameableAnimal.

Index Type Meaning Default
18 VarInt Variant (0: red/blue, 1: blue, 2: green, 3: yellow/blue, 4: grey) 0

Abstract Merchant

Extends Ageable.

Index Type Meaning Default
16 VarInt Head shake timer (starts at 40, decrements each tick) 0

Villager

Extends Abstract Merchant.

Index Type Meaning Default
17 Villager Data Villager Data Plains/None/1

Wandering Trader

Extends Abstract Merchant.

No additional metadata.

Golem

Extends Creature.

No additional metadata.

IronGolem

Extends Golem.

Index Type Meaning Default
15 Byte Bit mask Meaning 0
0x01 Is player-created

Snowman

Extends Golem.

Index Type Meaning Default
15 Byte Bit mask Meaning 0x10
0x10 has pumpkin hat
0x00 has no pumpkin hat

Shulker

Extends Golem.

Index Type Meaning Default
15 Direction Attach face Down (0)
16 OptPosition Attachment position Absent
17 Byte Shield height 0
18 Byte Color (dye color) 10 (purple)

Monster

Extends Creature.

No additional metadata.

Blaze

Extends Monster.

Index Type Meaning Default
15 Byte Bit mask Meaning 0
0x01 Is on fire

Creeper

Extends Monster.

Index Type Meaning Default
15 VarInt State (-1 = idle, 1 = fuse) -1
16 Boolean Is charged false
17 Boolean Is ignited false

Endermite

Extends Monster.

No additional metadata.

Giant Zombie

Extends Monster.

No additional metadata.

Guardian

Extends Monster.

Index Type Meaning Default
15 Boolean Is retracting spikes false
16 VarInt Target EID 0

ElderGuardian

Extends Guardian.

Silverfish

Extends Monster.

No additional metadata.

Raid Participant

Extends Monster.

Index Type Meaning Default
15 boolean Is celebrating false

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

Abstract Illager

Extends Raid Participant.

No additional metadata.

Vindicator

Extends Abstract Illager.

Pillager

Extends Abstract Illager.

Spellcaster Illager

Extends Abstract Illager.

Index Type Meaning Default
16 Byte Spell (0: none, 1: summon vex, 2: attack, 3: wololo, 4: disappear, 5: blindness) 0

Evoker

Extends Spellcaster Illager.

Illusioner

Extends Spellcaster Illager.

Ravager

Extends Raid Participant.

No additional metadata.

Witch

Extends Raid Participant.

Index Type Meaning Default
16 Boolean Is drinking potion false

EvocationFangs

Extends Entity.

No additional metadata.

Vex

Extends Monster.

Index Type Meaning Default
15 Byte Bit mask Meaning 0
0x01 Is in attack mode

AbstractSkeleton

Extends Monster.

No additional metadata.

Skeleton

Extends AbstractSkeleton.

Wither Skeleton

Extends AbstractSkeleton.

Stray

Extends AbstractSkeleton.

Spider

Extends Monster.

Index Type Meaning Default
15 Byte Bit mask Meaning 0
0x01 Is climbing

Wither

Extends Monster.

Index Type Meaning Default
15 VarInt Center head's target (entity ID, or 0 if no target) 0
16 VarInt Left head's target (entity ID, or 0 if no target) 0
17 VarInt Right head's target (entity ID, or 0 if no target) 0
18 VarInt Invulnerable time 0

Zombie

Extends Monster.

Index Type Meaning Default
15 Boolean Is baby false
16 VarInt Unused (previously type) 0
17 Boolean Is becoming a drowned false

Zombie Villager

Extends Zombie.

Index Type Meaning Default
18 Boolean Is converting false
19 Villager Data Villager Data Plains/None/1

Husk

Extends Zombie.

No additional metadata.

Drowned

Extends Zombie.

No additional metadata.

Zombie Pigman

Extends Zombie.

No additional metadata.

Enderman

Extends Monster.

Index Type Meaning Default
15 Opt BlockID Carried block Absent
16 Boolean Is screaming false
17 Boolean Is stared at false

EnderDragon

Extends Insentient.

Index Type Meaning Default
15 VarInt Dragon phase 10 (hover)

Phases (according to the wiki page on dragon data values) 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

Extends Insentient.

No additional metadata.

Ghast

Extends Flying.

Index Type Meaning Default
15 Boolean Is attacking false

Phantom

Extends Flying.

Index Type Meaning Default
15 VarInt Size 0

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

Slime

Extends Insentient.

Index Type Meaning Default
15 VarInt Size 1

LlamaSpit

Extends Entity.

Minecart

Extends Entity.

Index Type Meaning Default
7 VarInt Shaking power 0
8 VarInt Shaking direction 1
9 Float Shaking multiplier 0.0
10 VarInt Custom block ID and damage 0
11 VarInt Custom block Y position (in 16ths of a block) 6
12 Boolean Show custom block false

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

Extends Minecart.

No additional metadata.

MinecartContainer

Extends Minecart.

No additional metadata.

MinecartHopper

Extends MinecartContainer.

No additional metadata.

MinecartChest

Extends MinecartContainer.

No additional metadata.

MinecartFurnace

Extends Minecart.

Index Type Meaning Default
13 Boolean Has fuel false

MinecartTNT

Extends Minecart.

No additional metadata.

MinecartSpawner

Extends Minecart.

No additional metadata.

MinecartCommandBlock

Extends Minecart.

Index Type Meaning Default
13 String Command
14 Chat Last output {"text":""}

TNTPrimed

Extends Entity.

Index Type Meaning Default
7 VarInt Fuse time 80