Difference between revisions of "Entity metadata"

From wiki.vg
Jump to: navigation, search
(Entity Metadata Format: add panda, fox (I incorrectly said I skipped ocelot before; it was fox I skipped), and villager table; move witch to be with other raid participants)
m (Cat: Fix table class)
 
(One intermediate revision by the same user 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]]
Entity Metadata is an array of entries, each of which looks like the following:
+
* XP orbs should be spawned using [[Protocol#Spawn_Experience_Orb|Spawn Experience Orb]].}}
  
 
{| 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.
 
 
 
=== Abstract Illager ===
 
 
 
Extends {{change|[[#Monster|Monster]]|[[#Raid Participant|Raid Participant]]}}.
 
  
{| class="wikitable" {{removed}}
+
== Objects ==
! 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?)}}
+
Objects are spawned via [[Protocol#Spawn_Object|Spawn Object]]. See [[Object Data]] for more details.
  
=== Spellcaster Illager ===
+
{{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]].}}
 
 
Extends [[#Abstract Illager|Abstract Illlager]].
 
  
 
{| class="wikitable"
 
{| class="wikitable"
! Index
+
|-
! Type
+
! ID
!style="width: 250px;" colspan="2"| Meaning
+
! Name
! Default
+
! bounding box x and z
|-
+
! bounding box y
| {{change|13|15}}
+
|-  
| Byte
+
| 1
| colspan="2"| Spell (0: none, 1: summon vex, 2: attack, 3: wololo, 4: disappear, 5: blindness)
+
| Boat
| 0
+
| 1.375
|}
+
| 0.6
 
+
|-
=== {{change|EvocationIllager|Evoker}} ===
+
| 2
 
+
| Item Stack ([[Slot]])
Extends [[#Spellcaster Illager|Spellcaster Illager]].
+
| 0.25
 
+
| 0.25
=== {{change|IllusionIllager|Illusioner}} ===
+
|-
 
+
| 3
Extends [[#Spellcaster Illager|Spellcaster Illager]].
+
| Area Effect Cloud
 
+
| 2.0 * Radius
=== Pillager ===
+
| 0.5
 
+
|-
Extends [[#Abstract Illager|Abstract Illlager]].
+
| 10
 
+
| Minecart
{| class="wikitable" {{added}}
+
| 0.98
! Index
+
| 0.7
! Type
+
|-
!style="width: 250px;" colspan="2"| Meaning
+
| 50
! Default
+
| Activated TNT
|-
+
| 0.98
| 15
+
| 0.98
| Boolean
+
|-
| colspan="2"| Using crossbow
+
| 51
| false
+
| EnderCrystal
|}
+
| 2.0
 
+
| 2.0
=== {{change|VindicationIllager|Vindicator}} ===
+
|-  
 
+
| 60
Extends [[#Abstract Illager|Abstract Illager]].
+
| Tipped arrow (projectile; also used for regular arrows)
 
+
| 0.5
=== Ravager ===
+
| 0.5
 
+
|-
Extends [[#Raid Participant|Raid Participant]]
+
| 61
 
+
| Snowball (projectile)
No additional metadata.
+
| 0.25
 
+
| 0.25
{| class="wikitable" {{added}}
+
|-
! Status
+
| 62
!colspan="2"| Description
+
| Egg (projectile)
|-
+
| 0.25
| 4
+
| 0.25
|colspan="2"| Starts the attack animation.
+
|-  
|-
+
| 63
| 39
+
| FireBall (ghast projectile)
|colspan="2"| Starts the stun animation.
+
| 1.0
|}
+
| 1.0
 
+
|-
=== Witch ===
+
| 64
 
+
| FireCharge (blaze projectile)
Extends {{change|[[#Monster|Monster]]|[[#Raid Participant|Raid Participant]]}}.
+
| 0.3125
 
+
| 0.3125
{| class="wikitable"
+
|-  
! Index
+
| 65
! Type
+
| Thrown Enderpearl
!style="width: 250px;" colspan="2"| Meaning
+
| 0.25
! Default
+
| 0.25
|-
+
|-
| {{change|12|15}}
+
| 66
| Boolean
+
| Wither Skull (projectile)
|colspan="2"| Is drinking potion
+
| 0.3125
| false
+
| 0.3125
|}
+
|-
 
+
| 67
=== AbstractSkeleton ===
+
| Shulker Bullet
 
+
| 0.3125
Extends [[#Monster|Monster]].
+
| 0.3125
 
+
|-  
{| class="wikitable" {{removed}}
+
| 68
! Index
+
| Llama spit
! Type
+
| 0.25
!style="width: 250px;" colspan="2"| Meaning
+
| 0.25
! Default
+
|-  
|-
+
| 70
| {{change|12|14}}
+
| Falling Objects
| Boolean
+
| 0.98
|colspan="2"| Is swinging arms
+
| 0.98
| false
+
|-  
|}
+
| 71
 
+
| Item frames
{{Change||Replaced with pose (presumably?)}}
+
| 0.75 or 0.0625
 
+
| 0.75
=== Zombie ===
+
|-  
 
+
| 72
Extends [[#Monster|Monster]].
+
| Eye of Ender
 
+
| 0.25
{| class="wikitable"
+
| 0.25
! Index
+
|-
! Type
+
| 73
!style="width: 250px;" colspan="2"| Meaning
+
| Thrown Potion
! Default
+
| 0.25
|-
+
| 0.25
| {{change|12|14}}
+
|-
| Boolean
+
| 75
|colspan="2"| Is baby
+
| Thrown Exp Bottle
| false
+
| 0.25
|-
+
| 0.25
| {{change|13|15}}
+
|-  
| VarInt
+
| 76
|colspan="2"| Unused (previously type)
+
| Firework Rocket
| 0
+
| 0.25
|- {{removed}}
+
| 0.25
| 14
+
|-  
| Boolean
+
| 77
|colspan="2"| Are hands held up
+
| Leash Knot
| false
+
| 0.375
|-
+
| 0.5
| {{change|15|16}}
+
|-
| Boolean
+
| 78
|colspan="2"| Is becoming a drowned
+
| ArmorStand
| false
+
| normal: 0.5 marker: 0.0 small: 0.25
|}
+
| normal: 1.975 marker: 0.0 small: 0.9875
 
+
|-
{{Change||Replaced with pose (presumably?)}}
+
| 79
 
+
| Evocation Fangs
=== Zombie Villager ===
+
| 0.5
 
+
| 0.8
Extends [[#Zombie|Zombie]].
+
|-  
 
+
| 90
{| class="wikitable"
+
| Fishing Hook
! Index
+
| 0.25
! Type
+
| 0.25
!style="width: 250px;" colspan="2"| Meaning
+
|-  
! Default
+
| 91
|-
+
| Spectral Arrow
| {{change|16|17}}
+
| 0.5
| Boolean
+
| 0.5
|colspan="2"| Is converting
+
|-
| false
+
| 93
|-  
+
| Dragon Fireball
| {{change|17|18}}
+
| 1.0
| {{Change|VarInt|Villager Data}}
+
| 1.0
|colspan="2"| {{Change|Profession|Villager Data}}
+
|-
| {{change|0|Plains/None/1}}
+
| 94
|}
+
| Trident
 
+
| ?
 
+
| ?
=== Ocelot ===
+
|}
 
+
 
Extends {{change|[[#TameableAnimal|TameableAnimal]]|[[#Ageable|Ageable]]}}.
+
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.
 
+
 
{| class="wikitable"
+
== Entity Metadata Format ==
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|- {{removed}}
 
| 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
 
|- {{added}}
 
| 15
 
| Boolean
 
|colspan="2"| Is trusting
 
| false
 
|}
 
 
 
{| class="wikitable" {{added}}
 
! Status
 
!colspan="2"| Description
 
|-
 
| 40
 
|colspan="2"| Spawn smoke particles (trust gaining failed)
 
|-
 
| 41
 
|colspan="2"| Spawn heart particles (trust gaining succeeded)
 
|}
 
 
 
=== Cat ===
 
 
 
Extends [[#TameableAnimal|TameableAnimal]].
 
  
{| class="wikitable" {{added}}
+
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.
  ! Index
+
 
  ! Type
+
Entity Metadata is an array of entries, each of which looks like the following:
  !style="width: 250px;" colspan="2"| Meaning
+
 
! Default
+
{| class="wikitable"
 +
  ! Name
 +
  ! Type
 +
  ! Meaning
 
  |-
 
  |-
  | 17
+
  | Index
  | VarInt
+
  | Unsigned Byte
  |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)
+
  | 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.
| 1
 
 
  |-
 
  |-
  | 18
+
  | Type
  | Boolean
+
  | Optional VarInt Enum
  |colspan="2"| Unknown
+
  | Only if Index is not <code>0xff</code>; the type of the index, see the table below
| false
 
 
  |-
 
  |-
  | 19
+
  | Value
  | Boolean
+
  | Optional ''value of Type''
  |colspan="2"| Unknown
+
  | Only if Index is not <code>0xff</code>: the value of the metadata field
| false
 
|-
 
| 20
 
| VarInt
 
|colspan="2"| Collar color (values are those {{Minecraft Wiki|Data_values#Dyes|used with dyes}})
 
| 14 (Red)
 
 
  |}
 
  |}
  
=== Horse ===
+
{| class="wikitable"
 
+
  ! Value of Type field
Extends [[#AbstractHorse|AbstractHorse]].
+
  ! [[Data types|Type]] of Value field
 
+
  ! Notes
{| class="wikitable"  
 
  ! Index
 
! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
  ! Default
 
 
  |-
 
  |-
| {{change|15|17}}
 
| VarInt
 
|colspan="2"| Variant (Color & Style)
 
 
  | 0
 
  | 0
  |- {{removed}}
+
| Byte
  | 16
+
|
 +
  |-
 +
  | 1
 
  | VarInt
 
  | 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
+
  | 2
| VarInt
+
  | Float
|colspan="2"| Head shake timer (starts at 40, decrements each tick)
+
  |
| 0
 
  |}
 
 
 
=== Villager ===
 
 
 
Extends {{change|[[#Ageable|Ageable]]|[[#Abstract Merchant|Abstract Merchant]]}}.
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
  | {{change|13|16}}
+
  | 3
| {{change|VarInt|Villager Data}}
+
  | String
|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 ===
 
 
 
Extends [[#Abstract Merchant|Abstract Merchant]].
 
 
 
No additional metadata.
 
 
 
=== Bee ===
 
 
 
Extends [[#Animal|Animal]].
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
  | rowspan="5" | 16
+
  | 4
  | rowspan="5" | Byte
+
  | [[Chat]]
! Bit mask
+
  |
  ! Meaning
 
| rowspan="5" | 0
 
 
  |-
 
  |-
  | 0x01 || ''Unused''
+
  | 5
 +
| OptChat (Boolean + Optional [[Chat]])
 +
| [[Chat]] is present if the Boolean is set to true
 
  |-
 
  |-
  | 0x02 || Looping
+
  | 6
 +
| [[Slot]]
 +
|
 +
|-
 +
| 7
 +
| Boolean
 +
|
 +
|-
 +
| 8
 +
| Rotation
 +
| 3 floats: rotation on x, rotation on y, rotation on z
 +
|-
 +
| 9
 +
| [[Data Types#Position|Position]]
 +
|
 
  |-
 
  |-
  | 0x04 || Has lost stung
+
  | 10
 +
| OptPosition (Boolean + Optional Position)
 +
| Position is present if the Boolean is set to true
 
  |-
 
  |-
  | 0x08 || Has nectar
+
  | 11
 +
| Direction (VarInt)
 +
| (Down = 0, Up = 1, North = 2, South = 3, West = 4, East = 5)
 
  |-
 
  |-
  | 17
+
  | 12
  | VarInt
+
| OptUUID (Boolean + Optional UUID)
  | colspan="2"| Anger time in ticks
+
| UUID is present if the Boolean is set to true
  | 0 (Not angry)
+
  |-
  |}
+
  | 13
 
+
| OptBlockID (VarInt)
</div>
+
  | 0 for absent (implies air); otherwise, a block state ID as per the global palette
 
+
  |-
== Mobs ==
+
| 14
 
+
| [[NBT]]
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 internallyServers 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.
+
| 15
 
+
| [[Data Types#Particle|Particle]]
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]].}}
+
| 16
 +
| Villager Data
 +
| 3 VarInts: villager type, villager profession, level
 +
|-
 +
| 17
 +
| OptVarInt
 +
| 0 for absent; 1 + actual value otherwiseUsed 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 (<code>minecraft:villager_type</code> registry):
  
 
{| class="wikitable"
 
{| class="wikitable"
|-
+
! Name !! ID
! Type
+
|-
! Name
+
| <code>minecraft:desert</code> || 0
! bounding box x and z
+
|-
! bounding box y
+
| <code>minecraft:jungle</code> || 1
! ID
+
|-
|- style="background: #ffff88;"
+
| <code>minecraft:plains</code> || 2
| 0
+
|-
| AreaEffectCloud
+
| <code>minecraft:savanna</code> || 3
| 2.0 * Radius
+
|-
| 0.5
+
| <code>minecraft:snow</code> || 4
| <code>minecraft:area_effect_cloud</code>
+
|-
|- style="background: #ffff88;"
+
| <code>minecraft:swamp</code> || 5
| 1
+
|-
| ArmorStand
+
| <code>minecraft:taiga</code> || 6
| normal: 0.5 marker: 0.0 small: 0.25
+
|}
| normal: 1.975 marker: 0.0 small: 0.9875
+
 
| <code>minecraft:armor_stand</code>
+
Villager professions (<code>minecraft:villager_profession</code> registry):
|- style="background: #ffff88;"
+
 
| 2
+
{| class="wikitable"
| Arrow
+
! Name !! ID
| 0.5
+
|-
| 0.5
+
| <code>minecraft:none</code> || 0
| <code>minecraft:arrow</code>
+
|-
|-
+
| <code>minecraft:armorer</code> || 1
| 3
+
|-
| Bat
+
| <code>minecraft:butcher</code> || 2
| 0.5
+
|-
| 0.9
+
| <code>minecraft:cartographer</code> || 3
| <code>minecraft:bat</code>
+
|-
|-
+
| <code>minecraft:cleric</code> || 4
| 4
+
|-
| Blaze
+
| <code>minecraft:farmer</code> || 5
| 0.6
+
|-
| 1.8
+
| <code>minecraft:fisherman</code> || 6
| <code>minecraft:blaze</code>
+
|-
|- style="background: #ffff88;"
+
| <code>minecraft:fletcher</code> || 7
| 5
+
|-
| Boat
+
| <code>minecraft:leatherworker</code> || 8
| 1.375
+
|-
| 0.5625
+
| <code>minecraft:librarian</code> || 9
| <code>minecraft:boat</code>
+
|-
|-
+
| <code>minecraft:mason</code> || 10
| 6
+
|-
| CaveSpider
+
| <code>minecraft:nitwit</code> || 11
| 0.7
+
|-
| 0.5
+
| <code>minecraft:shepherd</code> || 12
| <code>minecraft:cave_spider</code>
+
|-
|-
+
| <code>minecraft:toolsmith</code> || 13
| 7
+
|-
| Chicken
+
| <code>minecraft:weaponsmith</code> || 14
| 0.4
+
|}
| 0.7
+
 
| <code>minecraft:chicken</code>
+
Entity classes also recursively inherit fields from classes they extend.
|-
+
 
| 8
+
=== Entity ===
| Cod
+
 
| 0.9
+
{{metadata inherit|Entity}}
| 1.4
+
 
| <code>minecraft:cod</code>
+
{| class="wikitable"
|-
+
! Index
| 9
+
! Type
| Cow
+
!style="width: 250px;" colspan="2"| Meaning
| 0.9
+
! Default
| 1.4
+
|-
| <code>minecraft:cow</code>
+
|rowspan="9"| {{Metadata id|}}
|-
+
|rowspan="9"| Byte
| 10
+
! Bit mask
| Creeper
+
! Meaning
| 0.6
+
|rowspan="9"| 0
| 1.7
+
|-
| <code>minecraft:creeper</code>
+
| 0x01
|-
+
| On Fire
| 11
+
|-
| Donkey
+
| 0x02
| 1.3964844
+
| Crouched
| 1.6
+
|-
| <code>minecraft:donkey</code>
+
| 0x04
|-
+
| Unused (previously riding)
| 12
+
|-
| Dolphin
+
| 0x08
| 0.9
+
| Sprinting
| 0.6
+
|-
| <code>minecraft:dolphin</code>
+
| 0x10
|- style="background: #ffff88;"
+
| Swimming
| 13
+
|-
| DragonFireball
+
| 0x20
| 1.0
+
| Invisible
| 1.0
+
|-
| <code>minecraft:dragon_fireball</code>
+
| 0x40
|-
+
| Glowing effect
| 14
+
|-
| Drowned
+
| 0x80
| ?
+
| Flying with {{Minecraft Wiki|elytra}}
| ?
+
|-
| <code>minecraft:drowned</code>
+
| {{Metadata id|}}
|-
+
| VarInt
| 15
+
|colspan="2"| Air
| ElderGuardian
+
| 300
| 1.9975 (2.35 * guardian)
+
|-
| 1.9975 (2.35 * guardian)
+
| {{Metadata id|}}
| <code>minecraft:elder_guardian</code>
+
| OptChat
|- style="background: #ffff88;"
+
|colspan="2"| Custom name
| 16
+
| empty
| EnderCrystal
+
|-
| 2.0
+
| {{Metadata id|}}
| 2.0
+
| Boolean
| <code>minecraft:end_crystal</code>
+
|colspan="2"| Is custom name visible
|-
+
| false
| 17
+
|-
| EnderDragon
+
| {{Metadata id|}}
| 16.0
+
| Boolean
| 8.0
+
|colspan="2"| Is silent
| <code>minecraft:ender_dragon</code>
+
| false
|-
+
|-
| 18
+
| {{Metadata id|}}
| Enderman
+
| Boolean
| 0.6
+
|colspan="2"| No gravity
| 2.9
+
| false
| <code>minecraft:enderman</code>
+
|-
|-
+
| {{Metadata id|}}
| 19
+
| Pose
| Endermite
+
|colspan="2"| Pose
| 0.4
+
| STANDING
| 0.3
+
|}
| <code>minecraft:endermite</code>
+
 
|- style="background: #ffff88;"
+
=== Throwable ===
| 20
+
 
| EvocationFangs
+
{{Metadata inherit|Throwable|inherits=Entity}}
| 0.5
+
 
| 0.8
+
No additional metadata.
| <code>minecraft:evoker_fangs</code>
+
 
|-
+
=== Itemed Throwable ===
| 21
+
 
| EvocationIllager
+
{{Metadata inherit|Itemed Throwable|inherits=Throwable}}  Used for all things that previously extended throwable other than potions, which already had an item.
| 0.6
+
 
| 1.95
+
{| class="wikitable"
| <code>minecraft:evoker</code>
+
! Index
|- style="background: #aaaaff;"
+
! Type
| 22
+
!style="width: 250px;" colspan="2"| Meaning
| XPOrb
+
! Default
| 0.5
+
|-
| 0.5
+
| {{Metadata id|}}
| <code>minecraft:experience_orb</code>
+
| Slot
|- style="background: #ffff88;"
+
|colspan="2"| Item
| 23
+
| empty (which behaves as if it were a specific item, depending on the subclass)
| EyeOfEnderSignal
+
|}
| 0.25
+
 
| 0.25
+
=== Egg ===
| <code>minecraft:eye_of_ender</code>
+
 
|- style="background: #ffff88;"
+
{{Metadata inherit|Egg|inherits=Itemed Throwable}}
| 24
+
 
| FallingSand
+
No additional metadata.
| 0.98
+
 
| 0.98
+
An empty item behaves as if the item were a <code>minecraft:egg</code>.
| <code>minecraft:falling_block</code>
+
 
|- style="background: #ffff88;"
+
=== Ender Pearl ===
| 25
+
 
| FireworksRocketEntity
+
{{Metadata inherit|Ender Pearl|inherits=Itemed Throwable}}
| 0.25
+
 
| 0.25
+
No additional metadata.
| <code>minecraft:fireworks_rocket</code>
+
 
|-
+
An empty item behaves as if the item were a <code>minecraft:ender_pearl</code>.
| 26
+
 
| Ghast
+
=== Experience Bottle ===
| 4
+
 
| 4
+
{{Metadata inherit|Experience Bottle|inherits=Itemed Throwable}}
| <code>minecraft:ghast</code>
+
 
|-
+
No additional metadata.
| 27
+
 
| Giant
+
An empty item behaves as if the item were a <code>minecraft:experience_bottle</code>
| 3.6
+
 
| 10.8
+
=== Snowball ===
| <code>minecraft:giant</code>
+
 
|-
+
{{Metadata inherit|Snowball|inherits=Itemed Throwable}}
| 28
+
 
| Guardian
+
No additional metadata.
| 0.85
+
 
| 0.85
+
An empty item behaves as if the item were a <code>minecraft:snowball</code>
| <code>minecraft:guardian</code>
+
 
|-
+
=== Potion ===
| 29
+
 
| Horse (EntityHorse until 1.11)
+
{{Metadata inherit|Potion|inherits=Throwable}}
| 1.3964844
+
 
| 1.6
+
{| class="wikitable"
| <code>minecraft:horse</code>
+
! Index
|-
+
! Type
| 30
+
!style="width: 250px;" colspan="2"| Meaning
| Husk
+
! Default
| 0.6
+
|-
| 1.95
+
| {{Metadata id|}}
| <code>minecraft:husk</code>
+
| [[Slot]]
|-
+
|colspan="2"| Potion which is thrown
| 31
+
| Empty
| IllusionIllager
+
|}
| 0.6
+
 
| 1.95
+
=== Eye of Ender ===
| <code>minecraft:illusioner</code>
+
 
|- style="background: #ffff88;"
+
{{Metadata inherit|Eye of Ender|inherits=Entity}}
| 32
+
 
| Item
+
{| class="wikitable"
| 0.25
+
! Index
| 0.25
+
! Type
| <code>minecraft:item</code>
+
!style="width: 250px;" colspan="2"| Meaning
|- style="background: #ffff88;"
+
! Default
| 33
+
|-
| ItemFrame
+
| {{Metadata id|}}
| 0.75 or 0.0625 (depth)
+
| Slot
| 0.75
+
|colspan="2"| Item
| <code>minecraft:item_frame</code>
+
| empty (which behaves as if it were a <code>minecraft:ender_eye</code>)
|- style="background: #ffff88;"
+
|}
| 34
+
 
| Fireball (ghast)
+
=== FallingBlock ===
| 1.0
+
 
| 1.0
+
{{Metadata inherit|FallingBlock|inherits=Entity}}
| <code>minecraft:fireball</code>
+
 
|- style="background: #ffff88;"
+
{| class="wikitable"
| 35
+
! Index
| LeashKnot
+
! Type
| 0.375
+
!style="width: 250px;" colspan="2"| Meaning
| 0.5
+
! Default
| <code>minecraft:leash_knot</code>
+
|-
|-
+
| {{Metadata id|}}
| 36
+
| [[Data Types#Position|Position]]
| Llama
+
|colspan="2"| spawn position
| 0.9
+
| (0, 0, 0)
| 1.87
+
|}
| <code>minecraft:llama</code>
+
 
|- style="background: #ffff88;"
+
=== AreaEffectCloud ===
| 37
+
 
| LlamaSpit
+
{{Metadata inherit|AreaEffectCloud|inherits=Entity}}
| 0.25
+
 
| 0.25
+
{| class="wikitable"
| <code>minecraft:llama_spit</code>
+
! Index
|-
+
! Type
| 38
+
!style="width: 250px;" colspan="2"| Meaning
| LavaSlime (Magma Cube)
+
! Default
| 0.51000005 * size
+
|-
| 0.51000005 * size
+
| {{Metadata id|}}
| <code>minecraft:magma_cube</code>
+
| Float
|- style="background: #ffff88;"
+
|colspan="2"| Radius
| 39
+
| 0.5
| MinecartRideable
+
|-
| 0.98
+
| {{Metadata id|}}
| 0.7
+
| VarInt
| <code>minecraft:minecart</code>
+
|colspan="2"| Color (only for mob spell particle)
|- style="background: #ffff88;"
+
| 0
| 40
+
|-
| MinecartChest
+
| {{Metadata id|}}
| 0.98
+
| Boolean
| 0.7
+
|colspan="2"| Ignore radius and show effect as single point, not area
| <code>minecraft:chest_minecart</code>
+
| false
|- style="background: #ffff88;"
+
|-
| 41
+
| {{Metadata id|}}
| MinecartCommandBlock
+
| Particle
| 0.98
+
| colspan="2"| The [[#Particle]]
| 0.7
+
| <code>effect</code>
| <code>minecraft:commandblock_minecart</code>
+
|}
|- style="background: #ffff88;"
+
 
| 42
+
=== FishingHook ===
| MinecartFurnace
+
 
| 0.98
+
{{Metadata inherit|FishingHook|inherits=Entity}}
| 0.7
+
 
| <code>minecraft:furnace_minecart</code>
+
{| class="wikitable"
|- style="background: #ffff88;"
+
! Index
| 43
+
! Type
| MinecartHopper
+
!style="width: 250px;" colspan="2"| Meaning
| 0.98
+
! Default
| 0.7
+
|-
| <code>minecraft:hopper_minecart</code>
+
| {{Metadata id|}}
|- style="background: #ffff88;"
+
| VarInt
| 44
+
|colspan="2"| Hooked entity id + 1, or 0 if there is no hooked entity
| MinecartSpawner
+
| 0
| 0.98
+
|}
| 0.7
+
 
| <code>minecraft:spawner_minecart</code>
+
=== Arrow ===
|- style="background: #ffff88;"
+
 
| 45
+
{{Metadata inherit|Arrow|inherits=Entity}}
| MinecartTNT
+
 
| 0.98
+
Abstract base class for [[#TippedArrow|TippedArrow]] (which is used for regular arrows as well as tipped ones) and Spectral Arrow.
| 0.7
+
 
| <code>minecraft:tnt_minecart</code>
+
{| class="wikitable"
|-
+
! Index
| 46
+
! Type
| Mule
+
!style="width: 250px;" colspan="2"| Meaning
| 1.3964844
+
! Default
| 1.6
+
|-
| <code>minecraft:mule</code>
+
| rowspan="3" | {{Metadata id|}}
|-
+
| rowspan="3" | Byte
| 47
+
! Bit mask
| MushroomCow (Mooshroom)
+
! Meaning
| 0.9
+
| rowspan="3" | 0
| 1.4
+
|-
| <code>minecraft:mooshroom</code>
+
| 0x01
|-
+
| Is critical
| 48
+
|-
| Ozelot (Ocelot)
+
| 0x02
| 0.6
+
| Is noclip (used by loyalty tridents when returning)
| 0.7
+
|-
| <code>minecraft:ocelot</code>
+
| {{Metadata id|}}
|- style="background: #aaaaff;"
+
| OptUUID
| 49
+
|colspan="2"| Shooter UUID
| Painting
+
| Empty
| type width or 0.0625 (depth)
+
|-
| type height
+
| {{Metadata id|}}
| <code>minecraft:painting</code>
+
| Byte
|-
+
|colspan="2"| Peircing level
| 50
+
| 0
| Parrot
+
|}
| 0.5
+
 
| 0.9
+
=== TippedArrow ===
| <code>minecraft:parrot</code>
+
 
|-
+
{{Metadata inherit|TippedArrow|inherits=Arrow}}
| 51
+
 
| Pig
+
Used for both tipped and regular arrows.  If not tipped, then color is set to -1 and no tipped arrow particles are used.
| 0.9
+
 
| 0.9
+
{| class="wikitable"
| <code>minecraft:pig</code>
+
! Index
|-
+
! Type
| 52
+
!style="width: 250px;" colspan="2"| Meaning
| Pufferfish
+
! Default
| ?
+
|-
| ?
+
| {{Metadata id|}}
| <code>minecraft:pufferfish</code>
+
| VarInt
|-
+
|colspan="2"| Color (-1 for no particles)
| 53
+
| -1
| PigZombie
+
|}
| 0.6
+
 
| 1.95
+
=== Trident ===
| <code>minecraft:zombie_pigman</code>
+
 
|-
+
{{Metadata inherit|Trident|inherits=Arrow}}
| 54
+
 
| PolarBear
+
{| class="wikitable"
| 1.3
+
! Index
| 1.4
+
! Type
| <code>minecraft:polar_bear</code>
+
!style="width: 250px;" colspan="2"| Meaning
|- style="background: #ffff88;"
+
! Default
| 55
+
|-
| PrimedTnt
+
| {{Metadata id|}}
| 0.98
+
| VarInt
| 0.98
+
|colspan="2"| Loyalty level (enchantment)
| <code>minecraft:tnt</code>
+
| 0
|-
+
|}
| 56
+
 
| Rabbit
+
=== Boat ===
| 0.4
+
 
| 0.5
+
{{Metadata inherit|Boat|inherits=Entity}}
| <code>minecraft:rabbit</code>
+
 
|-
+
{| class="wikitable"
| 57
+
! Index
| Salmon
+
! Type
| ?
+
!style="width: 250px;" colspan="2"| Meaning
| ?
+
! Default
| <code>minecraft:salmon</code>
+
|-
|-
+
| {{Metadata id|}}
| 58
+
| VarInt
| Sheep
+
|colspan="2"| Time since last hit
| 0.9
+
| 0
| 1.3
+
|-
| <code>minecraft:sheep</code>
+
| {{Metadata id|}}
|-
+
| VarInt
| 59
+
|colspan="2"| Forward direction
| Shulker
+
| 1
| 1.0
+
|-
| 1.0-2.0 (depending on peek)
+
| {{Metadata id|}}
| <code>minecraft:shulker</code>
+
| Float
|- style="background: #ffff88;"
+
|colspan="2"| Damage taken
| 60
+
| 0.0
| ShulkerBullet
+
|-
| 0.3125
+
| {{Metadata id|}}
| 0.3125
+
| VarInt
| <code>minecraft:shulker_bullet</code>
+
|colspan="2"| Type (0=oak, 1=spruce, 2=birch, 3=jungle, 4=acacia, 5=dark oak)
|-
+
| 0
| 61
+
|-
| Silverfish
+
| {{Metadata id|}}
| 0.4
+
| Boolean
| 0.3
+
|colspan="2"| Left paddle turning
| <code>minecraft:silverfish</code>
+
| false
|-
+
|-
| 62
+
| {{Metadata id|}}
| Skeleton
+
| Boolean
| 0.6
+
|colspan="2"| Right paddle turning
| 1.99
+
| false
| <code>minecraft:skeleton</code>
+
|-
|-
+
| {{Metadata id|}}
| 63
+
| VarInt
| SkeletonHorse
+
|colspan="2"| Splash timer
| 1.3964844
+
| 0
| 1.6
+
|}
| <code>minecraft:skeleton_horse</code>
+
 
|-
+
=== EnderCrystal ===
| 64 (67: 1.14)
+
 
| Slime
+
{{Metadata inherit|EnderCrystal|inherits=Entity}}
| 0.51000005 * size
+
 
| 0.51000005 * size
+
{| class="wikitable"
| <code>minecraft:slime</code>
+
! Index
|- style="background: #ffff88;"
+
! Type
| 65
+
!style="width: 250px;" colspan="2"| Meaning
| SmallFireball (blaze)
+
! Default
| 0.3125
+
|-
| 0.3125
+
| {{Metadata id|}}
| <code>minecraft:small_fireball</code>
+
| OptPosition
|-
+
|colspan="2"| Beam target
| 66
+
| Absent
| SnowMan
+
|-
| 0.7
+
| {{Metadata id|}}
| 1.9
+
| Boolean
| <code>minecraft:snow_golem</code>
+
|colspan="2"| Show bottom
|- style="background: #ffff88;"
+
| true
| 67
+
|}
| Snowball
+
 
| 0.25
+
=== Abstract Fireball ===
| 0.25
+
 
| <code>minecraft:snowball</code>
+
{{Metadata inherit|Abstract Fireball|inherits=Entity}}
|- style="background: #ffff88;"
+
 
| 68
+
No additional metadata.
| SpectralArrow
+
 
| 0.5
+
=== Dragon Fireball ===
| 0.5
+
 
| <code>minecraft:spectral_arrow</code>
+
{{Metadata inherit|Dragon Fireball|inherits=Abstract Fireball}}
|-
+
 
| 69
+
No additional metadata.
| Spider
+
 
| 1.4
+
=== Itemed Fireball ===
| 0.9
+
 
| <code>minecraft:spider</code>
+
{{Metadata inherit|Itemed Fireball|inherits=Abstract Fireball}}
|-
+
 
| 70
+
Used for regular and small fireballs.  Not used for dragon fireballs and wither skulls.  Interestingly, regular fireballs do not come from an item.
| Squid
+
 
| 0.8
+
{| class="wikitable"
| 0.8
+
! Index
| <code>minecraft:squid</code>
+
! Type
|-
+
!style="width: 250px;" colspan="2"| Meaning
| 71
+
! Default
| Stray
+
|-
| 0.6
+
| {{Metadata id|}}
| 1.99
+
| Slot
| <code>minecraft:stray</code>
+
|colspan="2"| Item
|-
+
| empty (which behaves as if it were a <code>minecraft:fire_charge</code>)
| 72
+
|}
| Tropical Fish
+
 
| 0.5
+
=== Fireball ===
| 0.4
+
 
| <code>minecraft:tropical_fish</code>
+
{{Metadata inherit|Fireball|inherits=Itemed Fireball}}  This is the large fireball shot by ghasts.
|-
+
 
| 73
+
No additional metadata.
| Turtle
+
 
| 1.2
+
=== Small Fireball ===
| 0.4
+
 
| <code>minecraft:turtle</code>
+
{{Metadata inherit|Small Fireball|inherits=Itemed Fireball}}  This is the fireball shot by blazes and dispensers with fire charges.
|- style="background: #ffff88;"
+
 
| 74
+
No additional metadata.
| ThrownEgg
+
 
| 0.25
+
=== WitherSkull ===
| 0.25
+
 
| <code>minecraft:egg</code>
+
{{Metadata inherit|WitherSkull|inherits=Abstract Fireball}}
|- style="background: #ffff88;"
+
 
| 75
+
{| class="wikitable"
| ThrownEnderpearl
+
! Index
| 0.25
+
! Type
| 0.25
+
!style="width: 250px;" colspan="2"| Meaning
| <code>minecraft:ender_pearl</code>
+
! Default
|- style="background: #ffff88;"
+
|-
| 76
+
| {{Metadata id|}}
| ThrownExpBottle
+
| Boolean
| 0.25
+
|colspan="2"| Invulnerable
| 0.25
+
| false
| <code>minecraft:experience_bottle</code>
+
|}
|- style="background: #ffff88;"
+
 
| 77
+
=== Fireworks ===
| ThrownPotion
+
 
| 0.25
+
{{Metadata inherit|Fireworks|inherits=Entity}}
| 0.25
+
 
| <code>minecraft:potion</code>
+
{| class="wikitable"
|-
+
! Index
| 78
+
! Type
| Vex
+
!style="width: 250px;" colspan="2"| Meaning
| 0.4
+
! Default
| 0.8
+
|-
| <code>minecraft:vex</code>
+
| {{Metadata id|}}
|-
+
| [[Slot]]
| 79
+
|colspan="2"| Firework info
| Villager
+
| empty
| 0.6
+
|-
| 1.95
+
| {{Metadata id|}}
| <code>minecraft:villager</code>
+
| VarInt
|-
+
|colspan="2"| Entity ID of entity which used firework (for elytra boosting)
| 80
+
| 0
| VillagerGolem (Iron Golem)
+
|-
| 1.4
+
| {{Metadata id|}}
| 2.7
+
| Boolean
| <code>minecraft:iron_golem}</code>
+
|colspan="2"| Shot at angle (from a crossbow)
|-
+
| false
| 81
+
|}
| VindicationIllager
+
 
| 0.6
+
=== Hanging ===
| 1.95
+
 
| <code>minecraft:vindicator</code>
+
{{Metadata inherit|Hanging|inherits=Entity}}
|-
+
 
| 82
+
No additional metadata.
| Witch
+
 
| 0.6
+
=== ItemFrame ===
| 1.95
+
 
| <code>minecraft:witch</code>
+
{{Metadata inherit|ItemFrame|inherits=Hanging}}
|-
+
 
| 83
+
{| class="wikitable"
| WitherBoss
+
! Index
| 0.9
+
! Type
| 3.5
+
!style="width: 250px;" colspan="2"| Meaning
| <code>minecraft:wither</code>
+
! Default
|-
+
|-
| 84
+
| {{Metadata id|}}
| WitherSkeleton
+
| [[Slot]]
| 0.7
+
|colspan="2"| Item
| 2.4
+
| Empty
| <code>minecraft:wither_skeleton</code>
+
|-
|- style="background: #ffff88;"
+
| {{Metadata id|}}
| 85
+
| VarInt
| WitherSkull
+
|colspan="2"| Rotation
| 0.3125
+
| 0
| 0.3125
+
|}
| <code>minecraft:wither_skull</code>
+
 
|-
+
=== Item ===
| 86
+
 
| Wolf
+
{{Metadata inherit|Item|inherits=Entity}}
| 0.6
+
 
| 0.85
+
{| class="wikitable"
| <code>minecraft:wolf</code>
+
! Index
|-
+
! Type
| 87
+
!style="width: 250px;" colspan="2"| Meaning
| Zombie
+
! Default
| 0.6
+
|-
| 1.95
+
| {{Metadata id|}}
| <code>minecraft:zombie</code>
+
| [[Slot]]
|-
+
|colspan="2"| Item
| 88
+
| Empty
| ZombieHorse
+
|}
| 1.3964844
+
 
| 1.6
+
=== Living ===
| <code>minecraft:zombie_horse</code>
+
 
|-
+
{{Metadata inherit|Living|inherits=Entity}}
| 89
+
 
| ZombieVillager
+
{| class="wikitable"
| 0.6
+
! Index
| 1.95
+
! Type
| <code>minecraft:zombie_villager</code>
+
!style="width: 250px;" colspan="2"| Meaning
|-
+
! Default
| 90
+
|-
| Phantom
+
|rowspan="5"| {{Metadata id|}}
| 0.9
+
|rowspan="5"| Byte
| 0.5
+
|colspan="2"| Hand states, used to trigger blocking/eating/drinking animation.
| <code>minecraft:phantom</code>
+
|rowspan="5"| 0
|- style="background: #aaaaff;"
+
|-
| 91
+
! Bit mask
| Lightning Bolt
+
! Meaning
| -
+
|-
| -
+
| 0x01
| <code>minecraft:lightning_bolt</code>
+
| Is hand active
|- style="background: #aaaaff;"
+
|-
| 92
+
| 0x02
| Player
+
| Active hand (0 = main hand, 1 = offhand)
| 0.8
+
|-
| 1.8
+
| 0x04
| <code>minecraft:player</code>
+
| In riptide spin attack
|- style="background: #ffff88;"
+
|-
| 93
+
| {{Metadata id|}}
| Fishing bobber
+
| Float
| ?
+
|colspan="2"| Health
| ?
+
| 1.0
| <code>minecraft:fishing_bobber</code>
+
|-
|- style="background: #ffff88;"
+
| {{Metadata id|}}
| 94
+
| VarInt
| Trident
+
|colspan="2"| Potion effect color (or 0 if there is no effect)
| ?
+
| 0
| ?
+
|-
| <code>minecraft:trident</code>
+
| {{Metadata id|}}
|}
+
| Boolean
 
+
|colspan="2"| Is potion effect ambient: reduces the number of particles generated by potions to 1/5 the normal amount
== Objects ==
+
| false
 +
|-
 +
| {{Metadata id|}}
 +
| VarInt
 +
|colspan="2"| Number of arrows in entity
 +
| 0
 +
|-
 +
| {{Metadata id|}}
 +
| OptBlockPos
 +
|colspan="2"| Unknown (Bed location?)
 +
| Absent
 +
|}
  
Objects are spawned via [[Protocol#Spawn_Object|Spawn Object]]. See [[Object Data]] for more details.
+
=== Player ===
  
{{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|Player|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
+
|-
|-  
+
| {{Metadata id|}}
| 1
+
| Float
| Boat
+
|colspan="2"| Additional Hearts
| 1.375
+
| 0.0
| 0.6
+
|-
|-  
+
| {{Metadata id|}}
| 2
+
| VarInt
| Item Stack ([[Slot]])
+
|colspan="2"| Score
| 0.25
+
| 0
| 0.25
+
|-
|-  
+
|rowspan="10"| {{Metadata id|}}
| 3
+
|rowspan="10"| Byte
| Area Effect Cloud
+
|colspan="2"| The Displayed Skin Parts bit mask that is sent in [[Protocol#Client Settings|Client Settings]]
| 2.0 * Radius
+
|rowspan="10"| 0
| 0.5
+
|-
|-  
+
! Bit mask !! Meaning
| 10
+
|-
| Minecart
+
| 0x01 || Cape enabled
| 0.98
+
|-
| 0.7
+
| 0x02 || Jacket enabled
|-  
+
|-
| 50
+
| 0x04 || Left sleeve enabled
| Activated TNT
+
|-
| 0.98
+
| 0x08 || Right sleeve enabled
| 0.98
+
|-
|-  
+
| 0x10 || Left pants leg enabled
| 51
+
|-
| EnderCrystal
+
| 0x20 || Right pants leg enabled
| 2.0
+
|-
| 2.0
+
| 0x40 || Hat enabled
|-  
+
|-
| 60
+
| 0x80 || ''Unused''
| Tipped arrow (projectile; also used for regular arrows)
+
|-
| 0.5
+
| {{Metadata id|}}
| 0.5
+
| Byte
|-  
+
|colspan="2"| Main hand (0 : Left, 1 : Right)
| 61
+
| 1
| Snowball (projectile)
+
|-
| 0.25
+
| {{Metadata id|}}
| 0.25
+
| [[NBT]]
|-
+
|colspan="2"| Left shoulder entity data (for occupying parrot)
| 62
+
| Empty
| Egg (projectile)
+
|-
| 0.25
+
| {{Metadata id|}}
| 0.25
+
| [[NBT]]
|-
+
|colspan="2"| Right shoulder entity data (for occupying parrot)
| 63
+
| Empty
| FireBall (ghast projectile)
+
|}
| 1.0
+
 
| 1.0
+
=== ArmorStand ===
|-
+
 
| 64
+
{{Metadata inherit|ArmorStand|inherits=Living}}
| FireCharge (blaze projectile)
+
 
| 0.3125
+
{| class="wikitable"
| 0.3125
+
! Index
|-
+
! Type
| 65
+
!style="width: 250px;" colspan="2"| Meaning
| Thrown Enderpearl
+
! Default
| 0.25
+
|-
| 0.25
+
|rowspan="5"| {{Metadata id|}}
|-  
+
|rowspan="5"| Byte
| 66
+
! Bit mask
| Wither Skull (projectile)
+
! Meaning
| 0.3125
+
|rowspan="5"| 0
| 0.3125
+
|-
|-  
+
| 0x01
| 67
+
| is Small
| Shulker Bullet
+
|-
| 0.3125
+
| 0x04
| 0.3125
+
| has Arms
|-
+
|-
| 68
+
| 0x08
| Llama spit
+
| no BasePlate
| 0.25
+
|-
| 0.25
+
| 0x10
|-
+
| set Marker
| 70
+
|-
| Falling Objects
+
| {{Metadata id|}}
| 0.98
+
| Rotation
| 0.98
+
|colspan="2"| Head rotation
|-
+
| (0.0, 0.0, 0.0)
| 71
+
|-
| Item frames
+
| {{Metadata id|}}
| 0.75 or 0.0625
+
| Rotation
| 0.75
+
|colspan="2"| Body rotation
|-  
+
| (0.0, 0.0, 0.0)
| 72
+
|-
| Eye of Ender
+
| {{Metadata id|}}
| 0.25
+
| Rotation
| 0.25
+
|colspan="2"| Left arm rotation
|-  
+
| (-10.0, 0.0, -10.0)
| 73
+
|-
| Thrown Potion
+
| {{Metadata id|}}
| 0.25
+
| Rotation
| 0.25
+
|colspan="2"| Right arm rotation
|-  
+
| (-15.0, 0.0, 10.0)
| 75
+
|-
| Thrown Exp Bottle
+
| {{Metadata id|}}
| 0.25
+
| Rotation
| 0.25
+
|colspan="2"| Left leg rotation
|-  
+
| (-1.0, 0.0, -1.0)
| 76
+
|-
| Firework Rocket
+
| {{Metadata id|}}
| 0.25
+
| Rotation
| 0.25
+
|colspan="2"| Right leg rotation
|-  
+
| (1.0, 0.0, 1.0)
| 77
+
|}
| Leash Knot
+
 
| 0.375
+
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.
| 0.5
+
 
|-
+
=== Insentient ===
| 78
+
 
| ArmorStand
+
{{Metadata inherit|Insentient|inherits=Living}}
| normal: 0.5 marker: 0.0 small: 0.25
+
 
| normal: 1.975 marker: 0.0 small: 0.9875
+
{| class="wikitable"
|-
+
! Index
| 79
+
! Type
| Evocation Fangs
+
!style="width: 250px;" colspan="2"| Meaning
| 0.5
+
! Default
| 0.8
+
|-
|-
+
|rowspan="3"| {{Metadata id|}}
| 90
+
|rowspan="3"| Byte
| Fishing Hook
+
! Bit mask
| 0.25
+
! Meaning
| 0.25
+
|rowspan="3"| 0
|-  
+
|-
| 91
+
| 0x01
| Spectral Arrow
+
| NoAI
| 0.5
+
|-
| 0.5
+
| 0x02
|-
+
| Left handed
| 93
+
|}
| Dragon Fireball
 
| 1.0
 
| 1.0
 
|-
 
| 94
 
| Trident
 
| ?
 
| ?
 
|}
 
  
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.
+
=== Ambient ===
  
== Entity Metadata Format ==
+
{{Metadata inherit|Ambient|inherits=Insentient}}
  
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.
+
No additional metadata.
  
Entity Metadata is an array of entries, each of which looks like the following:
+
=== Bat ===
 +
 
 +
{{Metadata inherit|Bat|inherits=Ambient}}
  
 
{| class="wikitable"
 
{| class="wikitable"
  ! Name
+
  ! Index
 
  ! Type
 
  ! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 +
|-
 +
| rowspan="2"| {{Metadata id|}}
 +
| rowspan="2"| Byte
 +
! Bit mask
 
  ! Meaning
 
  ! Meaning
 +
| rowspan="2"| 0
 
  |-
 
  |-
  | Index
+
  | 0x01
  | Unsigned Byte
+
  | Is hanging
| 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.
 
|-
 
| 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
 
 
  |}
 
  |}
  
{| class="wikitable"
+
=== Creature ===
  ! Value of Type field
+
 
  ! [[Data types|Type]] of Value field
+
{{Metadata inherit|Creature|inherits=Insentient}}
  ! Notes
+
 
 +
No additional metadata.
 +
 
 +
=== WaterMob ===
 +
 
 +
{{Metadata inherit|WaterMob|inherits=Creature}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Squid ===
 +
 
 +
{{Metadata inherit|Squid|inherits=WaterMob}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Dolphin ===
 +
 
 +
{{Metadata inherit|Dolphin|inherits=WaterMob}}
 +
 
 +
{| class="wikitable"
 +
  ! Index
 +
! Type
 +
  !style="width: 250px;" colspan="2"| Meaning
 +
  ! Default
 
  |-
 
  |-
  | 0
+
  | {{Metadata id|}}
  | Byte
+
  | Position
  |
+
  |colspan="2"| Treasure position
 +
| (0, 0, 0)
 
  |-
 
  |-
  | 1
+
  | {{Metadata id|}}
  | VarInt
+
  | Boolean
  |
+
|colspan="2"| Can find treasure
 +
  | false
 
  |-
 
  |-
  | 2
+
  | {{Metadata id|}}
  | Float
+
| Boolean
  |
+
|colspan="2"| Has fish
 +
  | false
 +
  |}
 +
 
 +
=== Abstract fish ===
 +
 
 +
{{Metadata inherit|Abstract fish|inherits=WaterMob}}
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | 3
+
  | {{Metadata id|}}
  | String
+
  | Boolean
  |
+
  |colspan="2"| From bucket
  |-
+
  | False
  | 4
+
  |}
| [[Chat]]
+
 
|
+
=== Cod ===
|-
+
 
| 5
+
{{Metadata inherit|Cod|inherits=Abstract fish}}
| OptChat (Boolean + Optional [[Chat]])
+
 
| [[Chat]] is present if the Boolean is set to true
+
No additional metadata.
  |-
+
 
  | 6
+
=== Puffer fish ===
  | [[Slot]]
+
 
  |
+
{{Metadata inherit|Puffer fish|inherits=Abstract fish}}
 +
 
 +
{| class="wikitable"
 +
  ! Index
 +
  ! Type
 +
  !style="width: 250px;" colspan="2"| Meaning
 +
  ! Default
 
  |-
 
  |-
  | 7
+
  | {{Metadata id|}}
  | Boolean
+
  | VarInt
  |
+
  |colspan="2"| PuffState (varies from 0 to 2)
  |-
+
  | 0
  | 8
+
  |}
  | Rotation
+
 
  | 3 floats: rotation on x, rotation on y, rotation on z
+
=== Salmon ===
 +
 
 +
{{Metadata inherit|Salmon|inherits=Abstract fish}}
 +
 
 +
No additional metadata.
 +
 
 +
=== Tropical fish ===
 +
 
 +
{{Metadata inherit|Tropical fish|inherits=Abstract fish}}
 +
 
 +
{| class="wikitable"
 +
  ! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
  ! Default
 
  |-
 
  |-
  | 9
+
  | {{Metadata id|}}
  | [[Data Types#Position|Position]]
+
| VarInt
  |
+
  |colspan="2"| Variant
 +
  | 0
 +
|}
 +
 
 +
=== Ageable ===
 +
 
 +
{{Metadata inherit|Ageable|inherits=Creature}}
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | 10
+
  | {{Metadata id|}}
  | OptPosition (Boolean + Optional Position)
+
  | Boolean
  | Position is present if the Boolean is set to true
+
  |colspan="2"| Is baby
 +
| false
 +
|}
 +
 
 +
=== Animal ===
 +
 
 +
{{Metadata inherit|Animal|inherits=Ageable}}
 +
 
 +
No additional metadata.
 +
 
 +
=== AbstractHorse ===
 +
 
 +
{{Metadata inherit|AbstractHorse|inherits=Animal}}
 +
 
 +
{| class="wikitable"
 +
! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | 11
+
  |rowspan="9"| {{Metadata id|}}
  | Direction (VarInt)
+
  |rowspan="9"| Byte
  | (Down = 0, Up = 1, North = 2, South = 3, West = 4, East = 5)
+
! Bit mask
 +
! Meaning
 +
  |rowspan="9"| 0
 
  |-
 
  |-
  | 12
+
  | 0x01
  | OptUUID (Boolean + Optional UUID)
+
  | ''Unused''
  | UUID is present if the Boolean is set to true
+
  |-
 +
| 0x02
 +
| Is Tame
 
  |-
 
  |-
  | 13
+
  | 0x04
  | OptBlockID (VarInt)
+
  | Is saddled
| 0 for absent (implies air); otherwise, a block state ID as per the global palette
 
 
  |-
 
  |-
  | 14
+
  | 0x08
| [[NBT]]
+
  | Has bred
  |
 
 
  |-
 
  |-
  | 15
+
  | 0x10
| [[Data Types#Particle|Particle]]
+
  | Is eating
  |
 
 
  |-
 
  |-
  | 16
+
  | 0x20
  | Villager Data
+
  | Is rearing (on hind legs)
| 3 VarInts: villager type, villager profession, level
 
 
  |-
 
  |-
  | 17
+
  | 0x40
  | OptVarInt
+
  | Is mouth open
| 0 for absent; 1 + actual value otherwise.  Used for entity IDs.
 
 
  |-
 
  |-
  | 18
+
  | 0x80
  | Pose
+
  | ''Unused''
  | A VarInt enum: 0: STANDING, 1: FALL_FLYING, 2: SLEEPING, 3: SWIMMING, 4: SPIN_ATTACK, 5: SNEAKING, 6: DYING
+
  |-
 +
| {{Metadata id|}}
 +
| OptUUID
 +
|colspan="2"| Owner
 +
| Absent
 
  |}
 
  |}
  
Villager type (<code>minecraft:villager_type</code> registry):
+
=== Horse ===
 +
 
 +
{{Metadata inherit|Horse|inherits=AbstractHorse}}
  
{| class="wikitable"
+
{| class="wikitable"  
  ! Name !! ID
+
  ! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | <code>minecraft:desert</code> || 0
+
  | {{Metadata id|}}
  |-
+
  | VarInt
  | <code>minecraft:jungle</code> || 1
+
  |colspan="2"| Variant (Color & Style)
|-
+
  | 0
| <code>minecraft:plains</code> || 2
 
|-
 
  | <code>minecraft:savanna</code> || 3
 
|-
 
| <code>minecraft:snow</code> || 4
 
|-
 
| <code>minecraft:swamp</code> || 5
 
|-
 
| <code>minecraft:taiga</code> || 6
 
 
  |}
 
  |}
  
Villager professions (<code>minecraft:villager_profession</code> registry):
+
=== ZombieHorse ===
 +
 
 +
{{Metadata inherit|ZombieHorse|inherits=AbstractHorse}}
 +
 
 +
=== SkeletonHorse ===
 +
 
 +
{{Metadata inherit|SkeletonHorse|inherits=AbstractHorse}}
 +
 
 +
=== ChestedHorse ===
 +
 
 +
{{Metadata inherit|ChestedHorse|inherits=AbstractHorse}}
  
{| class="wikitable"
+
{| class="wikitable"  
  ! Name !! ID
+
  ! Index
 +
! Type
 +
!style="width: 250px;" colspan="2"| Meaning
 +
! Default
 
  |-
 
  |-
  | <code>minecraft:none</code> || 0
+
  | {{Metadata id|}}
  |-
+
  | Boolean
  | <code>minecraft:armorer</code> || 1
+
  |colspan="2"| Has Chest
|-
+
  | false
| <code>minecraft:butcher</code> || 2
+
  |}
|-
+
 
  | <code>minecraft:cartographer</code> || 3
+
=== Donkey ===
  |-
+
 
| <code>minecraft:cleric</code> || 4
+
{{Metadata inherit|Donkey|inherits=ChestedHorse}}
|-
 
| <code>minecraft:farmer</code> || 5
 
|-
 
| <code>minecraft:fisherman</code> || 6
 
|-
 
| <code>minecraft:fletcher</code> || 7
 
|-
 
| <code>minecraft:leatherworker</code> || 8
 
|-
 
| <code>minecraft:librarian</code> || 9
 
|-
 
| <code>minecraft:mason</code> || 10
 
|-
 
| <code>minecraft:nitwit</code> || 11
 
|-
 
| <code>minecraft:shepherd</code> || 12
 
|-
 
| <code>minecraft:toolsmith</code> || 13
 
|-
 
| <code>minecraft:weaponsmith</code> || 14
 
|}
 
  
Entity classes also recursively inherit fields from classes they extend.
+
=== Llama ===
  
=== Entity ===
+
{{Metadata inherit|Llama|inherits=ChestedHorse}}
 
 
{{metadata inherit|Entity}}
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 1,887: Line 1,841:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  |rowspan="9"| {{Metadata id|}}
+
  | {{Metadata id|}}
  |rowspan="9"| Byte
+
  | VarInt
! Bit mask
+
  | colspan="2"| Strength (number of columns of 3 slots in the llama's inventory once a chest is equipped)
! Meaning
+
  | 0
  |rowspan="9"| 0
 
|-
 
| 0x01
 
| On Fire
 
|-
 
| 0x02
 
| Crouched
 
|-
 
| 0x04
 
| Unused (previously riding)
 
  |-
 
| 0x08
 
| Sprinting
 
|-
 
| 0x10
 
| Swimming
 
|-
 
| 0x20
 
| Invisible
 
|-
 
| 0x40
 
| Glowing effect
 
|-
 
| 0x80
 
| Flying with {{Minecraft Wiki|elytra}}
 
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  |colspan="2"| Air
+
  | colspan="2"| Carpet color (a dye color, or -1 if no carpet equipped)
  | 300
+
  | -1
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | OptChat
+
  | VarInt
  |colspan="2"| Custom name
+
  | 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>)
| empty
+
  | 0
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Is custom name visible
 
| false
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Is silent
 
| false
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| No gravity
 
| false
 
|-
 
| {{Metadata id|}}
 
| Pose
 
|colspan="2"| Pose
 
  | STANDING
 
 
  |}
 
  |}
  
=== Throwable ===
+
=== Trader Llama ===
  
{{Metadata inherit|Throwable|inherits=Entity}}
+
{{Metadata inherit|Trader Llama|Llama}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Itemed Throwable ===
+
=== Mule ===
  
{{Metadata inherit|Itemed Throwable|inherits=Throwable}} Used for all things that previously extended throwable other than potions, which already had an item.
+
{{Metadata inherit|Mule|inherits=ChestedHorse}}
 +
 
 +
=== Fox ===
 +
 
 +
{{Metadata inherit|Fox|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 1,965: Line 1,878:
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | Slot
+
  | VarInt
  |colspan="2"| Item
+
  | colspan="2" | Type (0: red, 1: snow)
  | empty (which behaves as if it were a specific item, depending on the subclass)
+
  | 0 (red)
  |}
+
  |-
 
+
| rowspan="9" | {{Metadata id|}}
=== Egg ===
+
| rowspan="9" | Byte
 
+
! Bit mask
{{Metadata inherit|Egg|inherits=Itemed Throwable}}
+
! Meaning
 
+
| rowspan="9" | 0
No additional metadata.
+
|-
 
+
| 0x01 || Sitting
An empty item behaves as if the item were a <code>minecraft:egg</code>.
+
|-
 
+
| 0x02 || ''Unused''
=== Ender Pearl ===
+
|-
 
+
| 0x04 || Crouching
{{Metadata inherit|Ender Pearl|inherits=Itemed Throwable}}
+
|-
 +
| 0x08 || Unknown
 +
|-
 +
| 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
 +
|}
  
No additional metadata.
+
=== Ocelot ===
  
An empty item behaves as if the item were a <code>minecraft:ender_pearl</code>.
+
{{Metadata inherit|Ocelot|inherits=Animal}}
  
=== Experience Bottle ===
+
{| class="wikitable"
 
+
  ! Index
{{Metadata inherit|Experience Bottle|inherits=Itemed Throwable}}
+
  ! Type
 
+
  !style="width: 250px;" colspan="2"| Meaning
No additional metadata.
 
 
 
An empty item behaves as if the item were a <code>minecraft:experience_bottle</code>
 
 
 
=== Snowball ===
 
 
 
{{Metadata inherit|Snowball|inherits=Itemed Throwable}}
 
 
 
No additional metadata.
 
 
 
An empty item behaves as if the item were a <code>minecraft:snowball</code>
 
 
 
=== Potion ===
 
 
 
{{Metadata inherit|Potion|inherits=Throwable}}
 
 
 
{| class="wikitable"
 
  ! Index
 
  ! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
 
  ! Default
 
  ! Default
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | [[Slot]]
+
  | Boolean
  |colspan="2"| Potion which is thrown
+
  |colspan="2"| Is trusting
  | Empty
+
  | false
 
  |}
 
  |}
  
=== Eye of Ender ===
+
=== Panda ===
  
{{Metadata inherit|Eye of Ender|inherits=Entity}}
+
{{Metadata inherit|Panda|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,029: Line 1,942:
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | Slot
+
  | Integer
  |colspan="2"| Item
+
  |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.
  | empty (which behaves as if it were a <code>minecraft:ender_eye</code>)
+
  | 0
  |}
 
 
 
=== FallingBlock ===
 
 
 
{{Metadata inherit|FallingBlock|inherits=Entity}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | [[Data Types#Position|Position]]
+
  | Integer
  |colspan="2"| spawn position
+
  |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, 0, 0)
+
  | 0
  |}
 
 
 
=== AreaEffectCloud ===
 
 
 
{{Metadata inherit|AreaEffectCloud|inherits=Entity}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | Float
+
  | Integer
  |colspan="2"| Radius
+
  |colspan="2"| Eat timer.  If nonzero, counts upwards.
  | 0.5
+
  | 0
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | VarInt
+
  | Byte
  |colspan="2"| Color (only for mob spell particle)
+
  |colspan="2"| Main Gene
 
  | 0
 
  | 0
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | Boolean
+
  | Byte
  |colspan="2"| Ignore radius and show effect as single point, not area
+
  |colspan="2"| Hidden Gene
  | false
+
  | 0
 
  |-
 
  |-
  | {{Metadata id|}}
+
  |rowspan="6"| {{Metadata id|}}
| Particle
+
|rowspan="6"| Byte
| colspan="2"| The [[#Particle]]
+
  ! Bit mask
| <code>effect</code>
+
  ! Meaning
|}
+
  |rowspan="6"| 0
 
 
=== FishingHook ===
 
 
 
{{Metadata inherit|FishingHook|inherits=Entity}}
 
 
 
{| class="wikitable"
 
  ! Index
 
  ! Type
 
  !style="width: 250px;" colspan="2"| Meaning
 
! Default
 
 
  |-
 
  |-
  | {{Metadata id|}}
+
  | 0x01
  | VarInt
+
| Unused
  |colspan="2"| Hooked entity id + 1, or 0 if there is no hooked entity
+
|-
  | 0
+
| 0x02
 +
| Is sneezing
 +
|-
 +
| 0x04
 +
| Is eating
 +
|-
 +
  | 0x08
 +
  | Unknown
 +
|-
 +
| 0x10
 +
  | Unknown
 
  |}
 
  |}
  
=== Arrow ===
+
=== Pig ===
  
{{Metadata inherit|Arrow|inherits=Entity}}
+
{{Metadata inherit|Pig|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 2,109: Line 1,998:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | rowspan="3" | {{Metadata id|}}
+
  | {{Metadata id|}}
  | rowspan="3" | Byte
+
  | Boolean
  ! Bit mask
+
|colspan="2"| Has saddle
! Meaning
+
  | false
| rowspan="3" | 0
 
 
  |-
 
  |-
| 0x01
+
  | {{Metadata id|}}
| Is critical
+
  | VarInt
|-
+
  |colspan="2"| Total time to "boost" with a carrot on a stick for
| 0x02
 
| Is noclip (used by loyalty tridents when returning)
 
|-
 
  | {{Metadata id|}}
 
  | OptUUID
 
  |colspan="2"| Shooter UUID
 
| Empty
 
|-
 
| {{Metadata id|}}
 
| Byte
 
|colspan="2"| Peircing level
 
 
  | 0
 
  | 0
 
  |}
 
  |}
  
=== TippedArrow ===
+
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.
  
{{Metadata inherit|TippedArrow|inherits=Arrow}}
+
=== Rabbit ===
  
Used for both tipped and regular arrows.  If not tipped, then color is set to -1 and no tipped arrow particles are used.
+
{{Metadata inherit|Rabbit|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,146: Line 2,023:
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
 
  | VarInt
 
  | VarInt
  |colspan="2"| Color (-1 for no particles)
+
  |colspan="2"| Type
  | -1
+
  | 0
 
  |}
 
  |}
  
=== Trident ===
+
=== Turtle ===
  
{{Metadata inherit|Trident|inherits=Arrow}}
+
{{Metadata inherit|Turtle|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,161: Line 2,038:
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | VarInt
+
  | BlockPos
  |colspan="2"| Loyalty level (enchantment)
+
  |colspan="2"| Home pos
  | 0
+
| (0, 0, 0)
 +
  |-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Has egg
 +
| false
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Laying egg
 +
| false
 +
|-
 +
| {{Metadata id|}}
 +
| BlockPos
 +
|colspan="2"| Travel pos
 +
| (0, 0, 0)
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Going home
 +
| false
 +
|-
 +
| {{Metadata id|}}
 +
| Boolean
 +
|colspan="2"| Traveling
 +
| false
 
  |}
 
  |}
  
=== Boat ===
+
=== Polar Bear ===
  
{{Metadata inherit|Boat|inherits=Entity}}
+
{{Metadata inherit|Polar Bear|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,177: Line 2,079:
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
| VarInt
+
  | Boolean
|colspan="2"| Time since last hit
+
  |colspan="2"| Standing up
| 0
+
  | false
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Forward direction
 
| 1
 
|-
 
| {{Metadata id|}}
 
| Float
 
|colspan="2"| Damage taken
 
| 0.0
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Type (0=oak, 1=spruce, 2=birch, 3=jungle, 4=acacia, 5=dark oak)
 
| 0
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Left paddle turning
 
| false
 
|-
 
| {{Metadata id|}}
 
  | Boolean
 
  |colspan="2"| Right paddle turning
 
  | false
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Splash timer
 
| 0
 
 
  |}
 
  |}
  
=== EnderCrystal ===
+
=== Chicken ===
  
{{Metadata inherit|EnderCrystal|inherits=Entity}}
+
{{Metadata inherit|Chicken|inherits=Animal}}
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| OptPosition
 
|colspan="2"| Beam target
 
| Absent
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Show bottom
 
| true
 
|}
 
 
 
=== Abstract Fireball ===
 
 
 
{{Metadata inherit|Abstract Fireball|inherits=Entity}}
 
  
 
No additional metadata.
 
No additional metadata.
  
=== Dragon Fireball ===
+
=== Cow ===
  
{{Metadata inherit|Dragon Fireball|inherits=Abstract Fireball}}
+
{{Metadata inherit|Cow|inherits=Animal}}
  
 
No additional metadata.
 
No additional metadata.
  
=== Itemed Fireball ===
+
=== Mooshroom ===
  
{{Metadata inherit|Itemed Fireball|inherits=Abstract Fireball}}
+
{{Metadata inherit|Mooshroom|inherits=Cow}}
 
 
Used for regular and small fireballs.  Not used for dragon fireballs and wither skulls.  Interestingly, regular fireballs do not come from an item.
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,258: Line 2,107:
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | Slot
+
  | String
  |colspan="2"| Item
+
  | colspan="2"| Variant ("red" or "brown")
  | empty (which behaves as if it were a <code>minecraft:fire_charge</code>)
+
  | red
 
  |}
 
  |}
  
=== Fireball ===
+
=== Sheep ===
  
{{Metadata inherit|Fireball|inherits=Itemed Fireball}}  This is the large fireball shot by ghasts.
+
{{Metadata inherit|Sheep|inherits=Animal}}
 
 
No additional metadata.
 
 
 
=== Small Fireball ===
 
 
 
{{Metadata inherit|Small Fireball|inherits=Itemed Fireball}}  This is the fireball shot by blazes and dispensers with fire charges.
 
 
 
No additional metadata.
 
 
 
=== WitherSkull ===
 
 
 
{{Metadata inherit|WitherSkull|inherits=Abstract Fireball}}
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,285: Line 2,122:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | {{Metadata id|}}
+
  |rowspan="3"| {{Metadata id|}}
  | Boolean
+
  |rowspan="3"| Byte
  |colspan="2"| Invulnerable
+
! Bit mask
  | false
+
! Meaning
  |}
+
  |rowspan="3"| 0
 
+
  |-
=== Fireworks ===
+
  | 0x0F
 +
| Color (matches {{Minecraft Wiki|Data_values#Dyes|dye damage values}})
 +
|-
 +
| 0x10
 +
| Is sheared
 +
|}
  
{{Metadata inherit|Fireworks|inherits=Entity}}
+
=== TameableAnimal ===
 +
 
 +
{{Metadata inherit|TameableAnimal|inherits=Animal}}
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 2,301: Line 2,145:
 
  ! Default
 
  ! Default
 
  |-
 
  |-
  | {{Metadata id|}}
+
  |rowspan="4"| {{Metadata id|}}
  | [[Slot]]
+
  |rowspan="4"| Byte
  |colspan="2"| Firework info
+
! Bit mask
  | empty
+
! Meaning
 +
  |rowspan="4"| 0
 +
|-
 +
| 0x01
 +
| Is sitting
 +
|-
 +
| 0x02
 +
  | Is angry (only used with wolves)
 
  |-
 
  |-
  | {{Metadata id|}}
+
  | 0x04
| VarInt
+
  | Is tamed
|colspan="2"| Entity ID of entity which used firework (for elytra boosting)
 
  | 0
 
 
  |-
 
  |-
 
  | {{Metadata id|}}
 
  | {{Metadata id|}}
  | Boolean
+
  | OptUUID
  |colspan="2"| Shot at angle (from a crossbow)
+
  |colspan="2"| Owner
  | false
+
  | Absent
 
  |}
 
  |}
  
=== Hanging ===
+
=== Cat ===
  
{{Metadata inherit|Hanging|inherits=Entity}}
+
{{Metadata inherit|Cat|inherits=TameableAnimal}}
 
 
No additional metadata.
 
 
 
=== ItemFrame ===
 
 
 
{{Metadata inherit|ItemFrame|inherits=Hanging}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| [[Slot]]
 
|colspan="2"| Item
 
| Empty
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Rotation
 
| 0
 
|}
 
 
 
=== Item ===
 
 
 
{{Metadata inherit|Item|inherits=Entity}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| [[Slot]]
 
|colspan="2"| Item
 
| Empty
 
|}
 
 
 
=== Living ===
 
 
 
{{Metadata inherit|Living|inherits=Entity}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="5"| {{Metadata id|}}
 
|rowspan="5"| Byte
 
|colspan="2"| Hand states, used to trigger blocking/eating/drinking animation.
 
|rowspan="5"| 0
 
|-
 
! Bit mask
 
! Meaning
 
|-
 
| 0x01
 
| Is hand active
 
|-
 
| 0x02
 
| Active hand (0 = main hand, 1 = offhand)
 
|-
 
| 0x04
 
| In riptide spin attack
 
|-
 
| {{Metadata id|}}
 
| Float
 
|colspan="2"| Health
 
| 1.0
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Potion effect color (or 0 if there is no effect)
 
| 0
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Is potion effect ambient: reduces the number of particles generated by potions to 1/5 the normal amount
 
| false
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Number of arrows in entity
 
| 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)
 
|}
 
 
 
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 ===
 
 
 
{{Metadata inherit|Insentient|inherits=Living}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="3"| {{Metadata id|}}
 
|rowspan="3"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="3"| 0
 
|-
 
| 0x01
 
| NoAI
 
|-
 
| 0x02
 
| Left handed
 
|}
 
 
 
=== Ambient ===
 
 
 
{{Metadata inherit|Ambient|inherits=Insentient}}
 
 
 
No additional metadata.
 
 
 
=== Bat ===
 
 
 
{{Metadata inherit|Bat|inherits=Ambient}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| rowspan="2"| {{Metadata id|}}
 
| rowspan="2"| Byte
 
! Bit mask
 
! Meaning
 
| rowspan="2"| 0
 
|-
 
| 0x01
 
| Is hanging
 
|}
 
 
 
=== Creature ===
 
 
 
{{Metadata inherit|Creature|inherits=Insentient}}
 
 
 
No additional metadata.
 
 
 
=== WaterMob ===
 
 
 
{{Metadata inherit|WaterMob|inherits=Creature}}
 
 
 
No additional metadata.
 
 
 
=== Squid ===
 
 
 
{{Metadata inherit|Squid|inherits=WaterMob}}
 
 
 
No additional metadata.
 
 
 
=== Dolphin ===
 
 
 
{{Metadata inherit|Dolphin|inherits=WaterMob}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Position
 
|colspan="2"| Treasure position
 
| (0, 0, 0)
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Can find treasure
 
| false
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Has fish
 
| false
 
|}
 
 
 
=== Abstract fish ===
 
 
 
{{Metadata inherit|Abstract fish|inherits=WaterMob}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| From bucket
 
| False
 
|}
 
 
 
=== Cod ===
 
 
 
{{Metadata inherit|Cod|inherits=Abstract fish}}
 
 
 
No additional metadata.
 
 
 
=== Puffer fish ===
 
 
 
{{Metadata inherit|Puffer fish|inherits=Abstract fish}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| PuffState (varies from 0 to 2)
 
| 0
 
|}
 
 
 
=== Salmon ===
 
 
 
{{Metadata inherit|Salmon|inherits=Abstract fish}}
 
 
 
No additional metadata.
 
 
 
=== Tropical fish ===
 
 
 
{{Metadata inherit|Tropical fish|inherits=Abstract fish}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Variant
 
| 0
 
|}
 
 
 
=== Ageable ===
 
 
 
{{Metadata inherit|Ageable|inherits=Creature}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Is baby
 
| false
 
|}
 
 
 
=== Animal ===
 
 
 
{{Metadata inherit|Animal|inherits=Ageable}}
 
 
 
No additional metadata.
 
 
 
=== AbstractHorse ===
 
 
 
{{Metadata inherit|AbstractHorse|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="9"| {{Metadata id|}}
 
|rowspan="9"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="9"| 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''
 
|-
 
| {{Metadata id|}}
 
| OptUUID
 
|colspan="2"| Owner
 
| Absent
 
|}
 
 
 
=== Horse ===
 
 
 
{{Metadata inherit|Horse|inherits=AbstractHorse}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Variant (Color & Style)
 
| 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
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Has Chest
 
| false
 
|}
 
 
 
=== Donkey ===
 
 
 
{{Metadata inherit|Donkey|inherits=ChestedHorse}}
 
 
 
=== Llama ===
 
 
 
{{Metadata inherit|Llama|inherits=ChestedHorse}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
| colspan="2"| Strength (number of columns of 3 slots in the llama's inventory once a chest is equipped)
 
| 0
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
| colspan="2"| Carpet color (a dye color, or -1 if no carpet equipped)
 
| -1
 
|-
 
| {{Metadata id|}}
 
| 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>)
 
| 0
 
|}
 
 
 
=== Trader Llama ===
 
 
 
{{Metadata inherit|Trader Llama|Llama}}
 
 
 
No additional metadata.
 
 
 
=== Mule ===
 
 
 
{{Metadata inherit|Mule|inherits=ChestedHorse}}
 
 
 
=== Fox ===
 
 
 
{{Metadata inherit|Fox|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
| colspan="2" | Type (0: red, 1: snow)
 
| 0 (red)
 
|-
 
| rowspan="9" | {{Metadata id|}}
 
| rowspan="9" | Byte
 
! Bit mask
 
! Meaning
 
| rowspan="9" | 0
 
|-
 
| 0x01 || Sitting
 
|-
 
| 0x02 || ''Unused''
 
|-
 
| 0x04 || Crouching
 
|-
 
| 0x08 || Unknown
 
|-
 
| 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
 
|}
 
 
 
=== Ocelot ===
 
 
 
{{Metadata inherit|Ocelot|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Is trusting
 
| false
 
|}
 
 
 
=== Panda ===
 
 
 
{{Metadata inherit|Panda|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Integer
 
|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
 
|rowspan="6"| 0
 
|-
 
| 0x01
 
| Unused
 
|-
 
| 0x02
 
| Is sneezing
 
|-
 
| 0x04
 
| Is eating
 
|-
 
| 0x08
 
| Unknown
 
|-
 
| 0x10
 
| Unknown
 
|}
 
 
 
=== Pig ===
 
 
 
{{Metadata inherit|Pig|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Has saddle
 
| false
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| 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 ===
 
 
 
{{Metadata inherit|Rabbit|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| VarInt
 
|colspan="2"| Type
 
| 0
 
|}
 
 
 
=== Turtle ===
 
 
 
{{Metadata inherit|Turtle|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| BlockPos
 
|colspan="2"| Home pos
 
| (0, 0, 0)
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Has egg
 
| false
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Laying egg
 
| false
 
|-
 
| {{Metadata id|}}
 
| BlockPos
 
|colspan="2"| Travel pos
 
| (0, 0, 0)
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Going home
 
| false
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Traveling
 
| false
 
|}
 
 
 
=== Polar Bear ===
 
 
 
{{Metadata inherit|Polar Bear|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| Boolean
 
|colspan="2"| Standing up
 
| false
 
|}
 
 
 
=== Chicken ===
 
 
 
{{Metadata inherit|Chicken|inherits=Animal}}
 
 
 
No additional metadata.
 
 
 
=== Cow ===
 
 
 
{{Metadata inherit|Cow|inherits=Animal}}
 
 
 
No additional metadata.
 
 
 
=== Mooshroom ===
 
 
 
{{Metadata inherit|Mooshroom|inherits=Cow}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
| {{Metadata id|}}
 
| String
 
| colspan="2"| Variant ("red" or "brown")
 
| red
 
|}
 
 
 
=== Sheep ===
 
 
 
{{Metadata inherit|Sheep|inherits=Animal}}
 
 
 
{| class="wikitable"
 
! Index
 
! Type
 
!style="width: 250px;" colspan="2"| Meaning
 
! Default
 
|-
 
|rowspan="3"| {{Metadata id|}}
 
|rowspan="3"| Byte
 
! Bit mask
 
! Meaning
 
|rowspan="3"| 0
 
|-
 
| 0x0F
 
| Color (matches {{Minecraft Wiki|Data_values#Dyes|dye damage values}})
 
|-
 
| 0x10
 
| Is sheared
 
|}
 
 
 
=== TameableAnimal ===
 
 
 
{{Metadata inherit|TameableAnimal|inherits=Animal}}
 
  
 
{| class="wikitable"
 
{| 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
 
|}
 
 
=== Cat ===
 
 
{{Metadata inherit|Cat|inherits=TameableAnimal}}
 
 
{| class="wikitable"}
 
 
  ! Index
 
  ! Index
 
  ! Type
 
  ! Type

Latest revision as of 06:18, 9 January 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:

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

Arrow

Extends Entity.

Abstract base class for TippedArrow (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 Shooter UUID Empty
9 Byte Peircing level 0

TippedArrow

Extends 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

Trident

Extends Arrow.

Index Type Meaning Default
10 VarInt Loyalty level (enchantment) 0

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 OptBlockPos Unknown (Bed location?) Absent

Player

Extends Living.

Index Type Meaning Default
13 Float Additional Hearts 0.0
14 VarInt Score 0
15 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
16 Byte Main hand (0 : Left, 1 : Right) 1
17 NBT Left shoulder entity data (for occupying parrot) Empty
18 NBT Right shoulder entity data (for occupying parrot) Empty

ArmorStand

Extends Living.

Index Type Meaning Default
13 Byte Bit mask Meaning 0
0x01 is Small
0x04 has Arms
0x08 no BasePlate
0x10 set Marker
14 Rotation Head rotation (0.0, 0.0, 0.0)
15 Rotation Body rotation (0.0, 0.0, 0.0)
16 Rotation Left arm rotation (-10.0, 0.0, -10.0)
17 Rotation Right arm rotation (-15.0, 0.0, 10.0)
18 Rotation Left leg rotation (-1.0, 0.0, -1.0)
19 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
13 Byte Bit mask Meaning 0
0x01 NoAI
0x02 Left handed

Ambient

Extends Insentient.

No additional metadata.

Bat

Extends Ambient.

Index Type Meaning Default
14 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
14 Position Treasure position (0, 0, 0)
15 Boolean Can find treasure false
16 Boolean Has fish false

Abstract fish

Extends WaterMob.

Index Type Meaning Default
14 Boolean From bucket False

Cod

Extends Abstract fish.

No additional metadata.

Puffer fish

Extends Abstract fish.

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

Salmon

Extends Abstract fish.

No additional metadata.

Tropical fish

Extends Abstract fish.

Index Type Meaning Default
15 VarInt Variant 0

Ageable

Extends Creature.

Index Type Meaning Default
14 Boolean Is baby false

Animal

Extends Ageable.

No additional metadata.

AbstractHorse

Extends Animal.

Index Type Meaning Default
15 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
16 OptUUID Owner Absent

Horse

Extends AbstractHorse.

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

ZombieHorse

Extends AbstractHorse.

SkeletonHorse

Extends AbstractHorse.

ChestedHorse

Extends AbstractHorse.

Index Type Meaning Default
17 Boolean Has Chest false

Donkey

Extends ChestedHorse.

Llama

Extends ChestedHorse.

Index Type Meaning Default
18 VarInt Strength (number of columns of 3 slots in the llama's inventory once a chest is equipped) 0
19 VarInt Carpet color (a dye color, or -1 if no carpet equipped) -1
20 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.

Fox

Extends Animal.

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

Ocelot

Extends Animal.

Index Type Meaning Default
15 Boolean Is trusting false

Panda

Extends Animal.

Index Type Meaning Default
15 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
16 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
17 Integer Eat timer. If nonzero, counts upwards. 0
18 Byte Main Gene 0
19 Byte Hidden Gene 0
20 Byte Bit mask Meaning 0
0x01 Unused
0x02 Is sneezing
0x04 Is eating
0x08 Unknown
0x10 Unknown

Pig

Extends Animal.

Index Type Meaning Default
15 Boolean Has saddle false
16 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
15 VarInt Type 0

Turtle

Extends Animal.

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

Polar Bear

Extends Animal.

Index Type Meaning Default
15 Boolean Standing up false

Chicken

Extends Animal.

No additional metadata.

Cow

Extends Animal.

No additional metadata.

Mooshroom

Extends Cow.

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

Sheep

Extends Animal.

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

TameableAnimal

Extends Animal.

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

Cat

Extends TameableAnimal.

Index Type Meaning Default
17 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
18 Boolean Unknown false
19 Boolean Unknown false
20 VarInt Collar color (values are those used with dyes) 14 (Red)

Wolf

Extends TameableAnimal.

Index Type Meaning Default
17 Float Damage taken (used for tail rotation) Value of health field (1.0)
18 Boolean Is begging false
19 VarInt Collar color (values are those used with dyes) 14 (Red)

Parrot

Extends TameableAnimal.

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

Abstract Merchant

Extends Ageable.

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

Villager

Extends Abstract Merchant.

Index Type Meaning Default
16 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
14 Byte Bit mask Meaning 0
0x01 Is player-created

Snowman

Extends Golem.

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

Shulker

Extends Golem.

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

Monster

Extends Creature.

No additional metadata.

Blaze

Extends Monster.

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

Creeper

Extends Monster.

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

Endermite

Extends Monster.

No additional metadata.

Giant Zombie

Extends Monster.

No additional metadata.

Guardian

Extends Monster.

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

ElderGuardian

Extends Guardian.

Silverfish

Extends Monster.

No additional metadata.

Raid Participant

Extends Monster.

Index Type Meaning Default
14 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
15 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
15 Boolean Is drinking potion false

EvocationFangs

Extends Entity.

No additional metadata.

Vex

Extends Monster.

Index Type Meaning Default
14 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
14 Byte Bit mask Meaning 0
0x01 Is climbing

Wither

Extends Monster.

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

Zombie

Extends Monster.

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

Zombie Villager

Extends Zombie.

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

Husk

Extends Zombie.

No additional metadata.

Drowned

Extends Zombie.

No additional metadata.

Enderman

Extends Monster.

Index Type Meaning Default
14 Opt BlockID Carried block Absent
15 Boolean Is screaming false

EnderDragon

Extends Insentient.

Index Type Meaning Default
14 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
14 Boolean Is attacking false

Phantom

Extends Flying.

Index Type Meaning Default
14 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
14 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