0x2C S2CPacketSpawnGlobalEntity
Spawns a global entity visible to all players (lightning bolt).
Fields
| Field | Type | Description |
|---|---|---|
| entityId | VarInt | Entity ID |
| x/y/z | fixed-point int | Position × 32 |
| type | byte | Entity type (1=lightning) |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Entity ID | VarInt | |
| X | Int | x*32 |
| Y | Int | y*32 |
| Z | Int | z*32 |
| Type | byte | 1=lightning |
MCP References
MCP
NetHandlerPlayClient.handleSpawnGlobalEntity()Handler Interface
HND
INetHandlerPlayClientimplementation Implementation Cases
Weather
Detect lightning strikes.
LightningDetector
Detect lightning strikes.