Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Entity Event

Play 0x22, server → client.

play · 0x22 · clientbound (server → client)

Triggers a status event on the entity entityId, identified by the byte entityStatus. Examples are hurt or death animations, totem of undying pop, wolf shaking, and villager happy particles. The client plays the matching effect.

Sent by the server, read by the client. Listen for it with client.on("EntityEvent", (data) => …) on the receiving side.

Fields

Field Type Notes
entityId Int
entityStatus Byte

Send it

await client.sendPacket("EntityEvent", {
  entityId: /* Int */,
  entityStatus: /* Byte */,
});

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: src/Core/Versions/776/Packets/play/clientbound/EntityEvent.ts

Was this page helpful?