MCBE
OverviewPacketsActorEvent
ID 0x1B · 27BothEntities

ActorEvent

Triggers an entity animation or state event such as hurt, death, eating or taming.

actor-event.bin
struct ActorEvent {
  ActorRuntimeID                               RuntimeId;
  ActorEvent                                   EventId;
  varint32                                     Data;
  optional byte + Vec3                         FireAtPosition;
}

Structure

FieldTypeDescription
Runtime IdActorRuntimeID
Event IdActorEvent
Datavarint32
Fire At Positionoptional byte + Vec3Presence flag on the wire; value omitted when absent.

Structure of Vec3

FieldTypeDescription
Xfloat32 (LE)
Yfloat32 (LE)
Zfloat32 (LE)

Event (selected) values

2 Hurt
3 Death
4 StartAttacking
7 TameFail
9 UseItem
18 Love
31 FishHook
57 Eat

Notes

  • Data's meaning depends on the event (damage amount, food ticks, ...).