Skip to content

Spawn Mob

Packet IDDirectionMojang NameMCP Name
0x18ClientboundAddMobPacketPacket24MobSpawn

Sent to the client when a mob entity should be spawned. The position and rotation are in entity space.

Clientbound

FieldTypeDescription
Entity IDIntegerThe ID of the entity that will refer to this mob
Mob TypeByteThe type of the mob
XIntegerThe X position of the item entity (Quantized)
YIntegerThe Y position of the item entity (Quantized)
ZIntegerThe Z position of the item entity (Quantized)
YawByteRotation on the X Axis (Quantized)
PitchByteRotation on the Y Axis (Quantized)
Metadata-Additional entity metadata

Example Packet

FieldValue
Entity ID1298
Mob Type90
X5669 (177.15)
Y2176 (68.0)
Z-5325 (-166.40)
Yaw16 (22.58)
Pitch9 (12.70)
Metadata0x00 0x01 0x7F