0x18 S18PacketEntityTeleport
Teleports an entity to an absolute position (fixed-point int × 32) and rotation.
Fields
| Field | Type | Description |
|---|---|---|
| entityId | VarInt | Entity ID |
| x/y/z | fixed-point int | Absolute position × 32 |
| yaw/pitch | byte | Rotation × 256/360 |
| onGround | boolean | Whether the entity is on ground |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Entity ID | VarInt | |
| X | Int | x * 32 |
| Y | Int | y * 32 |
| Z | Int | z * 32 |
| Yaw | byte | yaw * 256/360 |
| Pitch | byte | pitch * 256/360 |
| On Ground | bool |
MCP References
MCP
NetHandlerPlayClient.handleEntityTeleport()Handler Interface
HND
INetHandlerPlayClientNotes
Unlike S14 (Entity Relative Move), S18 sets ABSOLUTE position — the entity moves to this exact location regardless of where it was. Used when players teleport (ender pearls, chorus fruit), mobs teleport (endermen), or when S14 cumulative errors need correction.
implementation Implementation Cases
ESP
(Tenacity 4.0, Sigma 3.9, Lycoris 2.0)
Track entity teleports for ESP position sync and ranking detection.
if (event.getPacket() instanceof S18PacketEntityTeleport) {
S18PacketEntityTeleport s18 = (S18PacketEntityTeleport) event.getPacket();
updateTargetPosition(s18.getEntityId(), s18.getX()/32.0, s18.getY()/32.0, s18.getZ()/32.0);
}Tracers
(Tenacity 4.0, Sigma 3.9, Lycoris 2.0)
Track entity teleports for ESP position sync and ranking detection.
if (event.getPacket() instanceof S18PacketEntityTeleport) {
S18PacketEntityTeleport s18 = (S18PacketEntityTeleport) event.getPacket();
updateTargetPosition(s18.getEntityId(), s18.getX()/32.0, s18.getY()/32.0, s18.getZ()/32.0);
}KillAura
(Tenacity 4.0, Sigma 3.9, Lycoris 2.0)
Track entity teleports for ESP position sync and ranking detection.
if (event.getPacket() instanceof S18PacketEntityTeleport) {
S18PacketEntityTeleport s18 = (S18PacketEntityTeleport) event.getPacket();
updateTargetPosition(s18.getEntityId(), s18.getX()/32.0, s18.getY()/32.0, s18.getZ()/32.0);
}Ranking
(Tenacity 4.0, Sigma 3.9, Lycoris 2.0)
Track entity teleports for ESP position sync and ranking detection.
if (event.getPacket() instanceof S18PacketEntityTeleport) {
S18PacketEntityTeleport s18 = (S18PacketEntityTeleport) event.getPacket();
updateTargetPosition(s18.getEntityId(), s18.getX()/32.0, s18.getY()/32.0, s18.getZ()/32.0);
}