0x27 S27PacketExplosion

Server notifies the client of an explosion (TNT, creeper, bed in Nether/End, etc).

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

Fields

FieldTypeDescription
x/y/zfloatExplosion center
strengthfloatExplosion power/strength
affectedBlockPositionsList<BlockPos>Blocks destroyed by the explosion
motionX/Y/ZfloatPlayer knockback velocity from the explosion

Wire Encoding

FieldTypeNotes
Xfloat
Yfloat
Zfloat
Radiusfloat
Record Countint
Recordsbyte arrayRelative positions of affected blocks
Player Motion Xfloat
Player Motion Yfloat
Player Motion Zfloat

MCP References

MCPNetHandlerPlayClient.handleExplosion()

Handler Interface

HNDINetHandlerPlayClient

Notes

Affected blocks are sent as byte triplets (x, y, z) relative to the explosion center. The client applies particle effects and knockback to the local player.

implementation Implementation Cases

Velocity (Tenacity 5.1, Sigma 3.9, Raze v1.5b, Gugustus, Jello 0.1, Helium B41420)

Cancel or scale explosion velocity alongside S12PacketEntityVelocity.

Vanilla hook: EventReceivePacket
AntiKnockback (Tenacity 5.1, Sigma 3.9, Raze v1.5b, Gugustus, Jello 0.1, Helium B41420)

Cancel or scale explosion velocity alongside S12PacketEntityVelocity.

Vanilla hook: EventReceivePacket
← Back to all packets