0x07 S07PacketRespawn
Sends respawn or dimension change request. The client must reload the world (clear chunks, entities) and re-sync position.
Fields
| Field | Type | Description |
|---|---|---|
| dimensionId | int | -1=nether, 0=overworld, 1=end |
| difficulty | unsigned byte | Current server difficulty |
| gamemode | unsigned byte | Current gamemode |
| worldType | String | World type string |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Dimension | int | -1=nether, 0=overworld, 1=end |
| Difficulty | unsigned byte | 0=peaceful, 1=easy, 2=normal, 3=hard |
| Gamemode | unsigned byte | 0=survival, 1=creative, 2=adventure, 3=spectator |
| Level Type | String | World type |
MCP References
MCP
NetHandlerPlayClient.handleRespawn()Handler Interface
HND
INetHandlerPlayClientNotes
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).
implementation Implementation Cases
DimensionDetector
(Tenacity 6.0)
Detect dimension change for module state reset.
WorldChange
(Tenacity 6.0)
Detect dimension change for module state reset.