0x07 S07PacketRespawn

Sends respawn or dimension change request. The client must reload the world (clear chunks, entities) and re-sync position.

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

Published 2026-06-18 · Updated 2026-10-14

playerworldrespawndeathdimension
Comprehensive 8/8

Fields

FieldTypeDescription
dimensionIdint-1=nether, 0=overworld, 1=end
difficultyunsigned byteCurrent server difficulty
gamemodeunsigned byteCurrent gamemode
worldTypeStringWorld type string

Wire Encoding

FieldTypeNotes
Dimensionint-1=nether, 0=overworld, 1=end
Difficultyunsigned byte0=peaceful, 1=easy, 2=normal, 3=hard
Gamemodeunsigned byte0=survival, 1=creative, 2=adventure, 3=spectator
Level TypeStringWorld type

MCP References

MCPNetHandlerPlayClient.handleRespawn()

Handler Interface

HNDINetHandlerPlayClient

Notes

After receiving this, the client resets chunk loading, clears all entities, sends C00PacketKeepAlive to re-sync, and sends a C03/C06 position packet. The packet is used both for death respawn (same dimension) and portal dimension changes (dimension changes).

Vanilla Source

S07PacketRespawn.java84 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
import net.minecraft.world.EnumDifficulty;
8
import net.minecraft.world.WorldSettings;
9
import net.minecraft.world.WorldType;
10
11
public class S07PacketRespawn implements Packet<INetHandlerPlayClient>
12
{
13
    private int dimensionID;
14
    private EnumDifficulty difficulty;
15
    private WorldSettings.GameType gameType;
16
    private WorldType worldType;
17
18
    public S07PacketRespawn()
19
    {
20
    }
21
22
    public S07PacketRespawn(int dimensionIDIn, EnumDifficulty difficultyIn, WorldType worldTypeIn, WorldSettings.GameType gameTypeIn)
23
    {
24
        this.dimensionID = dimensionIDIn;
25
        this.difficulty = difficultyIn;
26
        this.gameType = gameTypeIn;
27
        this.worldType = worldTypeIn;
28
    }
29
30
    /**
31
     * Passes this Packet on to the NetHandler for processing.
32
     */
33
    public void processPacket(INetHandlerPlayClient handler)
34
    {
35
        handler.handleRespawn(this);
36
    }
37
38
    /**
39
     * Reads the raw packet data from the data stream.
40
     */
41
    public void readPacketData(PacketBuffer buf) throws IOException
42
    {
43
        this.dimensionID = buf.readInt();
44
        this.difficulty = EnumDifficulty.getDifficultyEnum(buf.readUnsignedByte());
45
        this.gameType = WorldSettings.GameType.getByID(buf.readUnsignedByte());
46
        this.worldType = WorldType.parseWorldType(buf.readStringFromBuffer(16));
47
48
        if (this.worldType == null)
49
        {
50
            this.worldType = WorldType.DEFAULT;
51
        }
52
    }
53
54
    /**
55
     * Writes the raw packet data to the data stream.
56
     */
57
    public void writePacketData(PacketBuffer buf) throws IOException
58
    {
59
        buf.writeInt(this.dimensionID);
60
        buf.writeByte(this.difficulty.getDifficultyId());
61
        buf.writeByte(this.gameType.getID());
62
        buf.writeString(this.worldType.getWorldTypeName());
63
    }
64
65
    public int getDimensionID()
66
    {
67
        return this.dimensionID;
68
    }
69
70
    public EnumDifficulty getDifficulty()
71
    {
72
        return this.difficulty;
73
    }
74
75
    public WorldSettings.GameType getGameType()
76
    {
77
        return this.gameType;
78
    }
79
80
    public WorldType getWorldType()
81
    {
82
        return this.worldType;
83
    }
84
}

Deobfuscated MCP 1.8.9 source of S07PacketRespawn, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S07PacketRespawn.java) at build time and verified present.

Deep Dive

Role in the protocol

The respawn and dimension-change control. The server sends it on death respawn (ServerConfigurationManager line ~496), on portal dimension transfer (NetHandlerPlayServer line ~587, ServerConfigurationManager line ~473) and on gamemode changes; the payload is dimension id, difficulty, terrain type and gamemode. The client must treat it as a world-reload command: clear entities, rebuild chunk state, re-arm keepalive and re-sync position.

Vanilla handling

handleRespawn branches on the dimension: an equal dimension is a soft reset that rebuilds the player entity in place, a different dimension triggers a full world load with chunks unloaded, entities cleared and the player respawned. PacketThreadUtil special-cases S07 so the reload runs on the main thread and pre-processes the world transition before ordinary packet handling resumes. Every module that buffers per-world state (blink queues, transaction lists, teleport buffers, freecam position) must flush on this packet or carry stale state across the boundary.

Why clients touch it

The corpus reaction surface is exactly the flush pattern, and it lives in the disabler machinery. Rise 6.1.30 WatchdogDisabler clears its position, transaction and blink queues plus both stopwatches on S07; Rise 6.2.4 keeps only the import. UniversoCraftDisabler (both builds) uses S07 to arm a respawn-window transaction corruption. Tenacity 6.0 AdvancedDisablerModule carries a commented-out S07 import, evidence the reset was planned and disabled. No Freecam, AutoTool or inventory module hooks S07 in this corpus even though world reload visibly resets their state; those clients rely on vanilla world-load callbacks instead of the packet. LiquidSense Dev's MixinNetworkManager promotes S07 to a first-class EventRespawn: readpacket fires it right before the vanilla handler runs, giving every module a hookable world-reload signal.

Exploit surface

The respawn window is the attack surface: after S07 the server re-arms the player's transaction stream, so replaying C0F uids from the previous world desynchronizes the server's bookkeeping. UniversoCraftDisabler weaponizes the window by overwriting C0F uids with Short.MIN_VALUE or Short.MAX_VALUE for the first 350 ticks after respawn, alternating on tick parity. Anti-cheats that key transaction continuity off confirm/transaction pairs are the target. S07 itself is server-authored and not client-spoofable in the vanilla protocol, so the client side is purely defensive: flush old state, then corrupt the new window.

Server-Side Handling

ServerConfigurationManager sends S07 on death respawn (line ~496) and on dimension transfer (line ~473), NetHandlerPlayServer sends it on its own dimension-change path (line ~587 in MCP builds), always with the player's current dimension, difficulty, terrain type and gamemode. After sending, the server waits for the client's position re-sync (C03/C06) before resuming normal tracking. The client never sends S07; the closest serverbound step is C16 PERFORM_RESPAWN from the death screen.

Protocol Analysis

Fields in order: int dimension, unsigned byte difficulty, unsigned byte gamemode, String level type. PacketThreadUtil pre-processes S07 in Rise 6.1.30/6.2.4 and Tenacity (lines ~31 and ~40 respectively), forcing the world transition onto the main thread ahead of queued packets. The dimension field is the branch key: equal dimension means soft reset, different dimension means full reload, and modules keying state resets on S07 catch both cases in one hook.

Anti-Cheat Landscape

Transaction-continuity anti-cheats (Watchdog, Verus) reset their per-player counters on respawn, which is why stale C0F uids replayed across the boundary flag. The UniversoCraft corruption window targets exactly this reset: uid values of Short.MIN_VALUE and Short.MAX_VALUE alternating on tick parity are chosen to break the server's expectation of monotonic actions without a visible cancel pattern. The flush side (WatchdogDisabler) is the defensive mirror and is invisible; the corruption side is the detectable one if the server validates uids.

implementation Implementation Cases

The world-reload command: death respawn, portal transfer and gamemode change all arrive as S07, and the client tears down and rebuilds world state in response. In this corpus the packet is consumed by disabler state machines (Rise WatchdogDisabler flush, UniversoCraftDisabler corruption window) and was planned-but-disabled in Tenacity's AdvancedDisablerModule. LiquidSense Dev turns the packet into a dedicated EventRespawn fired from its NetworkManager mixin.

WatchdogDisabler (Rise 6.1.30, Rise 6.2.4)

Hypixel Watchdog disabler mode that uses S07 as the hard reset point for its buffered packet state.

On PacketReceiveEvent, S07 clears positionQueue, transactionQueue, blinkQueue and actionNumbers, resets pingStopwatch and transactionStopwatch and sets disabled=false. This is the defensive flush: after respawn or dimension change the old world's transaction stream is dead, so stale C0F uids and queued positions would desync the new world. The ping-spoof branch then restarts collecting negative-action S32 transactions, shuffling and replaying them a second later.

Source: Rise 6.1.30, com/alan/clients/module/impl/exploit/disabler/WatchdogDisabler.java

Vanilla hook: PacketReceiveEvent (S07 flush, S32 collection), PreMotionEvent (replay), PacketSendEvent (inventory spoof).
The S07 flush itself is invisible; the flag risk is the replay behavior it protects. Without the flush, a queued C0F from before the respawn arrives after the server reset its transaction counter and registers as an unknown action, a classic Watchdog flag.
Variations: Rise 6.2.4 drops the S07 receive handler entirely (import only at line 42), leaving the queue flush to the module's own lifecycle. The 6.1.30 and 6.2.4 files otherwise share the same structure.
UniversoCraftDisabler (Rise 6.1.30, Rise 6.2.4)

UniversoCraft disabler mode that arms a respawn-window transaction corruption from the S07 packet.

On the packet send listener, S07 sets disabling=true; C02PacketUseEntity clears it; C03PacketPlayer within the first 10 ticks sets it; and while disabling with ticksExisted below 350, every C0FPacketConfirmTransaction gets its uid overwritten with Short.MIN_VALUE or Short.MAX_VALUE alternating on tick parity. The S07 branch is redundant in practice because the C03-within-10-ticks branch arms the same flag, and its usefulness depends on the client's event wiring delivering clientbound packets to this listener.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/exploit/disabler/UniversoCraftDisabler.java

Vanilla hook: PacketSendEvent (S07/C02/C03/C0F dispatch).
Transaction uid corruption is the detectable surface: servers that validate C0F uids drop mismatches and can flag the alternating pattern. The respawn window matters because the server resets its transaction bookkeeping on S07, so corrupting uids during the first 350 ticks hits the anti-cheat before its counters warm up.
Variations: Rise 6.1.30 ships the identical file; the S07 branch and the C03 branch coexist in both builds.
MixinNetworkManager (respawn event) (LiquidSense Dev)

Fire a dedicated EventRespawn on the LiquidBounce event bus whenever S07PacketRespawn arrives, giving every module a hookable world-reload signal at the exact boundary.

readpacket injects into NetworkManager.channelRead0 right before Packet.processPacket runs: it posts EventPacketReceive and, when the packet is an S07PacketRespawn, also posts EventRespawn before the vanilla handler executes, then cancels the read if the event was cancelled.

Source: LiquidSense Dev, net/ccbluex/liquidbounce/injection/forge/mixins/network/MixinNetworkManager.java

Vanilla hook: @Inject on NetworkManager.channelRead0 (HEAD and INVOKE processPacket, shift BEFORE); @Inject on sendPacket (HEAD).
None: the mixin only observes S07 and re-dispatches events. The cancel path is the generic LiquidBounce packet-cancel mechanism used by any listener, not a respawn-specific manipulation.
Variations: Rise 6.1.30's WatchdogDisabler consumes S07 as its flush point inside module code; LiquidSense Dev is the only client that promotes the packet to a first-class event on the bus.
Both disabler modes consume S07 to manage a state machine: WatchdogDisabler flushes on PacketReceiveEvent, UniversoCraftDisabler arms a flag on its send-side listener. The packet is never modified, only observed. LiquidSense Dev fires EventRespawn from a MixinNetworkManager channelRead0 injection when the packet is an S07, before the vanilla handler runs.
Rise 6.x event model: @EventLink listener fields on Mode classes under the Disabler module. The 6.1.30 and 6.2.4 trees are structurally identical (com/alan/clients/...) with the 6.2.4 copy under Client-release2/Client/src/main/java. LiquidSense Dev observes S07 at the NetworkManager mixin level and re-dispatches it as a first-class EventRespawn; the Rise 6.x modes consume the packet inside module listeners.

anticheat Anti-Cheat Checks

The respawn packet is a state-reset command: the world reloads, so every anticheat that keeps per-player state must re-arm it on respawn. Simulation anticheats parse WrapperPlayServerRespawn on the send side and rebuild their player model (Grim, Shard, Artemis), while classic anticheats zero grace timers on PlayerRespawnEvent so freshly respawned players are not flagged by movement and combat checks. The packet itself is never flagged; it is the boundary that makes the checks after it trustworthy.

PacketPlayerRespawn (Grim) (GrimAnticheat-Grim)

Reset the entire simulated player model on respawn and dimension change: positions, ground flags, attributes, entity list and the death-screen state.

The RESPAWN branch wraps the packet as WrapperPlayServerRespawn, invalidates the setback teleport (hasAcceptedSpawnTeleport = false), clears server entity positions on world change, and schedules a real-time task that resets onGround, pose, sprinting, food, known input, the self PacketEntity and the BadPacketsE/G/M/F state. KEEP_TRACKED_DATA and KEEP_ATTRIBUTES flags decide what survives on 1.20.2+; isWorldChange compares world name or dimension type to detect cross-dimension teleports that wipe chunks and entities.

Detects: Nothing directly. It prevents stale movement state (old ground flags, old velocity, old entity ids) from leaking across the respawn boundary, which would poison every downstream check.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/PacketPlayerRespawn.java

Variations: Shard's handleRespawn clears compensatedEntities only; Artemis stamps lastRespawn in MiscellaneousPreProcessor and sets respawnTicks (150) in EmulatorPreProcessor; Kauri resets its lastRespawn TickTimer in PacketHandler; NCP re-inits moving data through dataOnJoin with the joinOrRespawn flag.
Respawn pre-processing (Artemis) (artemisac-artemis-minecraft-anticheat)

Stamp the respawn moment and clear inventory and vehicle state so every check can exempt the respawn window.

fastHandle runs on the packet thread: GPacketPlayServerRespawn schedules a transaction-confirmed action that calls setLastRespawn(packet.getTimestamp()), closes the inventory state and drops the predicted vehicle. ExemptType.RESPAWN then exempts checks while lastRespawn is under three seconds or respawnTicks is positive, and MovementPreProcessor decrements respawnTicks each tick. The same timestamp is also set from the client's C16 PERFORM_RESPAWN command.

Detects: Nothing on its own; the mechanism is exemption bookkeeping. The dedicated DisablerRespawn check uses the respawn domain to catch clients that abuse the respawn window, while AimIdentical and BadPacketsN read respawnTicks to skip false positives.

Source: artemisac-artemis-minecraft-anticheat, ac.artemis.core/src/main/java/ac/artemis/core/v4/processor/miscellaneous/MiscellaneousPreProcessor.java

Variations: Grim and Shard reset state on the packet directly; SalmonAC and FlopAC keep tick counters instead of wall-clock stamps; Kauri uses a TickTimer reset from WrapperPlayServerRespawn in its PacketHandler.
Respawn-tick exemption (SalmonAC) (ch1ck3n-ovo-SalmonAC)

Zero the per-player respawnTick on respawn so every movement and combat check skips the respawn window.

PlayerEventListener.onRespawn (PlayerRespawnEvent) sets salmonPlayer.respawnTick = 0, and the counter increments in SalmonPlayer. Checks then bail early while the tick is under their threshold, from 20 ticks (ReachA, CriticalA, SpeedCode) to 60 ticks (TimerC, Invalid0A, JesusC). The same listener registers players on PlayerJoinEvent and zeroes respawnTick on join too.

Detects: Nothing directly: it is an exemption counter, and the corpus hits are the getRespawnTick() guards inside roughly 40 checks.

Source: ch1ck3n-ovo-SalmonAC, src/main/java/com/ch1ck3n/salmonac/events/PlayerEventListener.java

Variations: FlopAC guards with a respawnTimer.hasNotPassed(20) inside BadPacketsC, SpeedA/B and SprintA/B; LightAntiCheat keeps cache.lastRespawn in milliseconds and skips checks within 500 ms of respawn; ThotPatrol and Daedalus reset latency data on PlayerRespawnEvent.
Respawn-window exemption (FlopAC) (JTXOfficial-FlopAC)

Skip the bad-packets teleport check while the player is still inside the respawn grace window.

BadPacketsC watches the flying packet family and flags an invalid teleport when the client's horizontal delta exceeds the server-position speed. The exemption list includes getRespawnTimer().hasNotPassed(20), so a respawned player's first 20 ticks are never evaluated. The timer is armed from the respawn path in the action processor; the tinyprotocol WrappedOutRespawnPacket wrapper is the packet-side representation.

Detects: Nothing on its own; the guard prevents false flags for players that legitimately teleport into the world after respawn.

Source: JTXOfficial-FlopAC, src/main/java/me/jtx/flopac/checks/misc/badpackets/BadPacketsC.java

Variations: SalmonAC's respawnTick and LightAntiCheat's lastRespawn cache are the same grace-window idea; Grim instead resets the whole simulation and keeps checks active, trusting the reset rather than an exemption window.

Wiki Cross-Reference

For a dimension change the server sends respawn followed by chunks for the new dimension and then a position and look packet, and the client unloads old chunks automatically.

Avoid respawning a player into the same dimension they are already in unless they are dead, since it causes glitches such as being unable to attack.

MCP 1.8.9 S07PacketRespawn implements Packet dispatching to INetHandlerPlayClient.handleRespawn; wire serde is readPacketData/writePacketData via readInt, readStringFromBuffer, readUnsignedByte.

1.8.9 callers: NetHandlerPlayServer.handleSpectate sends new S07PacketRespawn (line 674) +1 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/network/NetHandlerPlayServer.java

Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.

Vanilla Internals

Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.

Module Analyses Using S07PacketRespawn

Full source walkthroughs of the modules and anti-cheats that use this packet.