Skip to content

Spawn Painting ​

Packet IDDirectionMojang NameMCP Name
0x19ClientboundAddPaintingPacketPacket25EntityPainting

Sent to the client when a painting entity should be spawned. The position is in block space.

Clientbound ​

FieldTypeDescription
Entity IDIntegerThe ID of the entity that will refer to this mob
TitleString16The name of the painting (Max 13 Characters).
XIntegerThe X block position of the item entity
YIntegerThe Y block position of the item entity
ZIntegerThe Z block position of the item entity
DirectionByteThe direction of the painting

The coordinates refer to the center of the painting. Given a set width and height, the center is determined to be at

c
// Horizontal Center
int h = max(0, width / 2 - 1);
// Vertical Center
int v = height / 2;

The direction can be figured out via this table.

ValueDirection
0-Z
1-X
2+Z
3+X

Example Packet ​

FieldValue
Entity ID532
X177
Y68
Z-166
Direction2 (+Z)