MCBE
OverviewPacketsPlayerAction
ID 0x24 · 36Client → ServerMovement

PlayerAction

The expected actions change depending on the ServerAuthMovementMode specified in the StartGamePacket. See the PlayerActionType enum for details on which have differing behavior. See also PlayerAuthInputPacket and InventoryTransactionPacket for similar types of player actions.

player-action.bin
struct PlayerAction {
  ActorRuntimeID                               RuntimeId;
  PlayerActionType                             Action;
  BlockPos                                     Pos;
  BlockPos                                     ResultPos;
  varint32                                     Face;
}

Structure

FieldTypeDescription
Runtime IdActorRuntimeID
ActionPlayerActionType
PosBlockPos
Result PosBlockPos
Facevarint32

Structure of BlockPos

FieldTypeDescription
Xvarint32
Yvarint32
Zvarint32

Notes

  • No special notes.