[PR #2355] [MERGED] Respawn on a free column within the respawn radius around the world spawn #4236

Closed
opened 2026-11-03 04:15:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2355
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/respawn-radius


📝 Commits (5)

  • 79c3896 Respawn on a free column within the respawn radius around the world spawn
  • 2d70e55 Load the respawn search's candidate chunks instead of skipping unloaded ones
  • dc3762b Merge remote-tracking branch 'origin/main' into HEAD
  • e350b87 End portal exits pass no spawn finder
  • 1bd74d1 Skip the world spawn trip's teleport when the respawn already put the player there

📊 Changes

6 files changed (+170 additions, -36 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+26 -5)
📝 crates/horizon-client/src/game/end.rs (+33 -8)
📝 crates/horizon-client/src/game/initial_spawn.rs (+35 -16)
📝 crates/horizon-client/src/game/lan_actions.rs (+8 -0)
📝 crates/horizon-client/src/game/nether_portal.rs (+2 -1)
📝 crates/horizon-client/src/game/server_travel.rs (+66 -6)

📄 Description

What and why

Dying with no bed or anchor (or with a bed that is gone) always put the player on the exact world spawn block. Vanilla puts them on a free column within the respawn_radius game rule (default 10) around the world spawn, so respawns are spread out. Horizon only did this for the very first spawn of a new world.

Now every respawn at the world spawn uses the same spawn search as a new world: in-frame respawn, the integrated server and LAN guests, a server player whose anchor is gone, and leaving the End. A guest waits at the spawn until the chunks around it have loaded, then moves onto the found column. A /spawnpoint elsewhere still puts the player exactly there, as in vanilla.

Vanilla reference

  • TeleportTransition.createDefault and missingRespawnBlock (findAdjustedSharedSpawnPos)
  • ServerPlayer.adjustSpawnLocation -> PlayerSpawnFinder.findSpawn (radius from RESPAWN_RADIUS, cut to the world border)

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2355 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/respawn-radius` --- ### 📝 Commits (5) - [`79c3896`](https://github.com/horizon-rust/horizon/commit/79c3896449584da2309eea8db8aad12d8e949eda) Respawn on a free column within the respawn radius around the world spawn - [`2d70e55`](https://github.com/horizon-rust/horizon/commit/2d70e55fbbffeb5c8b7105ca970a22d195332ef5) Load the respawn search's candidate chunks instead of skipping unloaded ones - [`dc3762b`](https://github.com/horizon-rust/horizon/commit/dc3762b5339c0a3cfd30bbf55002ca4765eb48ef) Merge remote-tracking branch 'origin/main' into HEAD - [`e350b87`](https://github.com/horizon-rust/horizon/commit/e350b87b3c28480c672943e832ff38aae5fce02a) End portal exits pass no spawn finder - [`1bd74d1`](https://github.com/horizon-rust/horizon/commit/1bd74d1b2f358bb878ddf432539fc5bcc015d6cd) Skip the world spawn trip's teleport when the respawn already put the player there ### 📊 Changes **6 files changed** (+170 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+26 -5) 📝 `crates/horizon-client/src/game/end.rs` (+33 -8) 📝 `crates/horizon-client/src/game/initial_spawn.rs` (+35 -16) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+8 -0) 📝 `crates/horizon-client/src/game/nether_portal.rs` (+2 -1) 📝 `crates/horizon-client/src/game/server_travel.rs` (+66 -6) </details> ### 📄 Description ## What and why Dying with no bed or anchor (or with a bed that is gone) always put the player on the exact world spawn block. Vanilla puts them on a free column within the `respawn_radius` game rule (default 10) around the world spawn, so respawns are spread out. Horizon only did this for the very first spawn of a new world. Now every respawn at the world spawn uses the same spawn search as a new world: in-frame respawn, the integrated server and LAN guests, a server player whose anchor is gone, and leaving the End. A guest waits at the spawn until the chunks around it have loaded, then moves onto the found column. A `/spawnpoint` elsewhere still puts the player exactly there, as in vanilla. ## Vanilla reference - `TeleportTransition.createDefault` and `missingRespawnBlock` (`findAdjustedSharedSpawnPos`) - `ServerPlayer.adjustSpawnLocation` -> `PlayerSpawnFinder.findSpawn` (radius from `RESPAWN_RADIUS`, cut to the world border) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:41 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4236
No description provided.