[PR #7339] [MERGED] port map: game-010's sun-shy path and the golem's walk are ported #7509

Closed
opened 2026-11-03 06:40:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7339
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/vol-c-game-010


📝 Commits (3)

  • 2a815c3 port_map: game-010's sun-shy path and the golem's walk are ported
  • eb8379f port_map: game-010's bat flap and horse chest slot say what is there
  • b1a1b58 Merge main into #7339

📊 Changes

1 file changed (+4 additions, -4 deletions)

View changed files

📝 tools/port_map/game-010.tsv (+4 -4)

📄 Description

Rows of tools/port_map/game-010.tsv (131 rows, map-check clean against 26.3): mob navigation and goals — PathNavigation, GroundPathNavigation, LandRandomPos, the bat, the chested horse.

Verdicts

row was now where
GroundPathNavigation.trimPath missing port crates/horizon-client/src/mobs/nav.rs::Mob::trim_path
LandRandomPos.getPosTowards missing port crates/horizon-client/src/mobs/goals.rs::Mob::land_random_pos_towards
  • trim_path is the sun-shy trim, not a gap: it checks avoid_sun and that the navigator is a ground or wall-climbing one, leaves the path alone when the mob itself can see the sky, and otherwise truncates the nodes at the first one that can. So a skeleton chasing you by day does stop at the shade — the note said the opposite.
  • land_random_pos_towards is getPosTowards: the direction from the mob to the point, then land_pos_in_direction's ten tries within a quarter turn of it. The part that is still missing is the caller: GolemRandomStrollInVillageGoal and MoveBackToVillageGoal are not registered, so a golem keeps wandering — the row is a port with that player gap in the note rather than a missing method.

Notes repaired

  • Bat.isFlapping now names what it misses and where: mobs/living.rs posts minecraft:flap for a bee on every other tick and for a parrot, and the bat is not in that list — so a flying bat's wing beat is drawn but no sculk sensor hears it.
  • AbstractChestedHorse.getSlot now names the slot set Horizon resolves, the eight names in loot::EQUIPMENT_SLOTS, which has no horse.chest (499) in it, so /item replace entity … horse.chest has nothing to hit.

Checked and left as gaps: PathNavigation.trimPath's cauldron raise (no cauldron handling in nav.rs).

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game-010.tsv
131 rows, no problems.

Proven: both ports read at the cite — trim_path's three conditions and path.nodes.truncate(i), land_random_pos_towards's (to - position) direction into land_pos_in_direction — and both notes from the code they name: mobs/living.rs's minecraft:flap arms (bee, parrot) and loot::EQUIPMENT_SLOTS' eight entries.

Not proven: that a skeleton now stops in the shade in game — I read trim_path and its call into the navigation tick, I did not watch a skeleton at dawn.


🔄 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/7339 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/vol-c-game-010` --- ### 📝 Commits (3) - [`2a815c3`](https://github.com/horizon-rust/horizon/commit/2a815c332c9f46ea6270a4ad054bed0cfb133e4a) port_map: game-010's sun-shy path and the golem's walk are ported - [`eb8379f`](https://github.com/horizon-rust/horizon/commit/eb8379f197036cd85c072ea7ec7acbb77da06c8f) port_map: game-010's bat flap and horse chest slot say what is there - [`b1a1b58`](https://github.com/horizon-rust/horizon/commit/b1a1b582c69a3cf5e8ef8b4331a691f44f2bd6b8) Merge main into #7339 ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-010.tsv` (+4 -4) </details> ### 📄 Description Rows of `tools/port_map/game-010.tsv` (131 rows, map-check clean against 26.3): mob navigation and goals — `PathNavigation`, `GroundPathNavigation`, `LandRandomPos`, the bat, the chested horse. **Verdicts** | row | was | now | where | | --- | --- | --- | --- | | `GroundPathNavigation.trimPath` | missing | port | `crates/horizon-client/src/mobs/nav.rs::Mob::trim_path` | | `LandRandomPos.getPosTowards` | missing | port | `crates/horizon-client/src/mobs/goals.rs::Mob::land_random_pos_towards` | - `trim_path` is the sun-shy trim, not a gap: it checks `avoid_sun` and that the navigator is a ground or wall-climbing one, leaves the path alone when the mob itself can see the sky, and otherwise truncates the nodes at the first one that can. So a skeleton chasing you by day does stop at the shade — the note said the opposite. - `land_random_pos_towards` is `getPosTowards`: the direction from the mob to the point, then `land_pos_in_direction`'s ten tries within a quarter turn of it. The part that is still missing is the caller: `GolemRandomStrollInVillageGoal` and `MoveBackToVillageGoal` are not registered, so a golem keeps wandering — the row is a port with that player gap in the note rather than a missing method. **Notes repaired** - `Bat.isFlapping` now names what it misses and where: `mobs/living.rs` posts `minecraft:flap` for a bee on every other tick and for a parrot, and the bat is not in that list — so a flying bat's wing beat is drawn but no sculk sensor hears it. - `AbstractChestedHorse.getSlot` now names the slot set Horizon resolves, the eight names in `loot::EQUIPMENT_SLOTS`, which has no `horse.chest` (499) in it, so `/item replace entity … horse.chest` has nothing to hit. Checked and left as gaps: `PathNavigation.trimPath`'s cauldron raise (no cauldron handling in `nav.rs`). Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game-010.tsv 131 rows, no problems. ``` **Proven:** both ports read at the cite — `trim_path`'s three conditions and `path.nodes.truncate(i)`, `land_random_pos_towards`'s `(to - position)` direction into `land_pos_in_direction` — and both notes from the code they name: `mobs/living.rs`'s `minecraft:flap` arms (bee, parrot) and `loot::EQUIPMENT_SLOTS`' eight entries. **Not proven:** that a skeleton now stops in the shade in game — I read `trim_path` and its call into the navigation tick, I did not watch a skeleton at dawn. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:16 +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#7509
No description provided.