MCBE
OverviewPacketsInteract
ID 0x21 · 33Client → ServerPlayer

Interact

Used for inventory button press and in _updateInteraction() for a variety of purposes. From the client.

interact.bin
struct Interact {
  Action                                       Action;
  ActorRuntimeID                               TargetId;
  optional byte + Vec3                         Pos;
}

Structure

FieldTypeDescription
ActionAction
Target IdActorRuntimeID
Posoptional byte + Vec3Presence flag on the wire; value omitted when absent.

Structure of Vec3

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

Notes

  • No special notes.