0x2C S2CPacketSpawnGlobalEntity

Spawns a global entity visible to all players (lightning bolt).

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

Fields

FieldTypeDescription
entityIdVarIntEntity ID
x/y/zfixed-point intPosition × 32
typebyteEntity type (1=lightning)

Wire Encoding

FieldTypeNotes
Entity IDVarInt
XIntx*32
YInty*32
ZIntz*32
Typebyte1=lightning

MCP References

MCPNetHandlerPlayClient.handleSpawnGlobalEntity()

Handler Interface

HNDINetHandlerPlayClient

implementation Implementation Cases

Weather

Detect lightning strikes.

Vanilla hook: EventReceivePacket
LightningDetector

Detect lightning strikes.

Vanilla hook: EventReceivePacket
← Back to all packets