Packet 28
MobEffectPacket
At the start of the game the server sends any mob effects with _sendAdditionalLevelData() if the joining player saved out with them, and then anytime a mob effect is added, removed, or updated this packet is sent.<br> It is important for player movement simulation to ensure that the following effects are sent for the player or any client predicted vehicle they are in control of:<br> - levitation<br> - slow_falling<br> - jump<br> - movement_speed<br> - movement_slowdown<br> - weaving
HeaderID 28varuint
0Target Runtime IDActorRuntimeID · variable
1Event IDuint8 · 1 byte
2Effect IDvarint32 · variable (up to 5 bytes)
3Effect Amplifiervarint32 · variable (up to 5 bytes)
4Show Particlesboolean · 1 byte
5Effect Duration Ticksvarint32 · variable (up to 5 bytes)
6TickPlayerInputTick · variable
7Ambientboolean · 1 byte
Serialized fields
8 top-level fields0Target Runtime IDActorRuntimeID
- 0Actor Runtime IDCompression
varuint64
1Event IDEnum-as-ValueMobEffectPacketPayload::Eventas
uint8- 0
Invalid - 1
Add - 2
Update - 3
Remove
- 0
- 2Effect IDCompression
varint32 - 3Effect AmplifierCompression
varint32 - 4Show Particles
boolean - 5Effect Duration TicksCompression
varint32 6TickPlayerInputTick
- 0Input tickCompression
varuint64
- 7Ambient
boolean
Changelog
Stable releases
Changes between stable protocol releases.
No stable release changes are recorded for this packet.
Preview builds
Changes between Minecraft Preview protocol builds.
No preview build changes are recorded for this packet.