0x12 S12PacketEntityVelocity

Sets an entity's velocity (e.g., from knockback, explosion, piston push).

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S12PacketEntityVelocity.java
entitymovementknockbackvelocity

Fields

FieldTypeDescription
entityIdVarInt
motionXshortVelocity X × 8000
motionYshortVelocity Y × 8000
motionZshortVelocity Z × 8000

Wire Encoding

FieldTypeNotes
Entity IDVarInt
Velocity Xshort× 8000
Velocity Yshort× 8000
Velocity Zshort× 8000

MCP References

MCPNetHandlerPlayClient.handleEntityVelocity()

Handler Interface

HNDINetHandlerPlayClient

Notes

Velocities are encoded as (value * 8000). Real velocity = encoded / 8000.

implementation Implementation Cases

Velocity (Tenacity 5.1, Sigma 3.9, Raze v1.5b, Gugustus, November 0.2, Nekoware v1, Memeware 7.3, Jigsaw 0.24, Helium B41420)

Cancel or scale velocity. Most common anti-knockback implementation. Cancel entirely (100% antiKB) or scale motionX/Y/Z by percentage. Backtrack buffers S12 for delayed processing.

Vanilla hook: EventReceivePacket
AntiKnockback (Tenacity 5.1, Sigma 3.9, Raze v1.5b, Gugustus, November 0.2, Nekoware v1, Memeware 7.3, Jigsaw 0.24, Helium B41420)

Cancel or scale velocity. Most common anti-knockback implementation. Cancel entirely (100% antiKB) or scale motionX/Y/Z by percentage. Backtrack buffers S12 for delayed processing.

Vanilla hook: EventReceivePacket
Backtrack (Tenacity 5.1, Sigma 3.9, Raze v1.5b, Gugustus, November 0.2, Nekoware v1, Memeware 7.3, Jigsaw 0.24, Helium B41420)

Cancel or scale velocity. Most common anti-knockback implementation. Cancel entirely (100% antiKB) or scale motionX/Y/Z by percentage. Backtrack buffers S12 for delayed processing.

Vanilla hook: EventReceivePacket
← Back to all packets