Skip to content

Spawn Mob Entity

Packet IDDirectionMojang NameMCP Name
0x18ClientboundAddMobPacketPacket24MobSpawn

Sent to the client when a mob entity should be spawned. The position is in block space, while the angles are quantized.

Clientbound

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

Example Packet

FieldValue
Entity ID1298
Mob Type90
X5669
Y68
Z-5325
Yaw16 (22.58)
Pitch9 (12.70)
Metadata0x00 0x01 0x7F