0x28 S28PacketEffect
Plays a sound effect or particle effect at a position (without a named sound).
Fields
| Field | Type | Description |
|---|---|---|
| effectType | int | Effect ID (1023=portal, 2004=smithingTable, etc.) |
| pos | BlockPos | Effect position |
| data | int | Effect-specific data |
| disableRelativeVolume | boolean | If true, plays at full volume regardless of position |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Effect ID | int | |
| Position | BlockPos (long) | |
| Data | int | |
| Disable Volume | bool | Supress volume reduction |
MCP References
MCP
NetHandlerPlayClient.handleEffect()Handler Interface
HND
INetHandlerPlayClientNotes
Effect IDs: 1000-1023 (sound events), 1500-2004 (particle events). Unlike S29 (named sound via resource location), S28 uses numeric IDs.
implementation Implementation Cases
ESP
Track world effects (record player, particles, etc.).
ParticleSpoof
Track world effects (record player, particles, etc.).