[PR #6793] [MERGED] port map: game-012.tsv rows whose fixes already landed #7097

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

📋 Pull Request Information

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

Base: main ← Head: fix/ledger-game-012


📝 Commits (1)

  • 6e27909 port map: game-012.tsv rows whose fixes already landed

📊 Changes

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

View changed files

📝 tools/port_map/game-012.tsv (+8 -8)

📄 Description

The rows of tools/port_map/game-012.tsv that still said missing after the code they describe landed: the fox's item pickup and its spit and stack drop, the frog's long jump and frogspawn goals, and the tadpole's bucket load.

Horizon's map was stale for them - the fox pickup is mobs/fox.rs::can_hold_item and game/foxes.rs::fox_pick_up, the frog goals are registered in mobs/frog.rs::register with the landing test in mobs/frog.rs::acceptable_landing, and the tadpole's Age/AgeLocked load is entity_nbt::apply_item_components; Tadpole.loadFromBucketTag additionally named entity_nbt.rs::load_bucket_data, which does not exist, so map-check counted it as a dangling row.

Proven: on the build VM, python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar then python3 tools/port_ledger.py map-check tools/port_map/game-012.tsv reports 131 rows, no problems. (before the change the same command reported the dangling Tadpole.loadFromBucketTag row). Each new where was read in the tree first: can_hold_item matches Fox.canHoldItem's empty-mouth-or-consumable-food test, and fox_pick_up matches Fox.spitOutItem (item at eye level plus the look direction, pickup delay 40, entity.fox.spit) and Fox.dropItemStack (split(count - 1) at the fox's feet), both checked against javap -p -c net.minecraft.world.entity.animal.fox.Fox.

Not proven: no code change, so nothing was run in the game; the rows are map entries, and the behaviour they point at was verified by reading the functions above, not by a play session.

The genuinely missing notes left in the file (Fox.get, Fox.setTarget, Fox.FoxStrollThroughVillageGoal.canFoxMove, Frog.spawnChildFromBreeding, the frog node evaluator's getStart/getPathType, Goat.setYHeadRot, the golems' and fox's getLeashOffset, IronGolem.doPush) are still missing; they are not touched here.


🔄 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/6793 **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:** `fix/ledger-game-012` --- ### 📝 Commits (1) - [`6e27909`](https://github.com/horizon-rust/horizon/commit/6e2790907c89358b8f3db6da49f305a49c26286e) port map: game-012.tsv rows whose fixes already landed ### 📊 Changes **1 file changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-012.tsv` (+8 -8) </details> ### 📄 Description The rows of `tools/port_map/game-012.tsv` that still said `missing` after the code they describe landed: the fox's item pickup and its spit and stack drop, the frog's long jump and frogspawn goals, and the tadpole's bucket load. Horizon's map was stale for them - the fox pickup is `mobs/fox.rs::can_hold_item` and `game/foxes.rs::fox_pick_up`, the frog goals are registered in `mobs/frog.rs::register` with the landing test in `mobs/frog.rs::acceptable_landing`, and the tadpole's `Age`/`AgeLocked` load is `entity_nbt::apply_item_components`; `Tadpole.loadFromBucketTag` additionally named `entity_nbt.rs::load_bucket_data`, which does not exist, so `map-check` counted it as a dangling row. **Proven:** on the build VM, `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar` then `python3 tools/port_ledger.py map-check tools/port_map/game-012.tsv` reports `131 rows, no problems.` (before the change the same command reported the dangling `Tadpole.loadFromBucketTag` row). Each new `where` was read in the tree first: `can_hold_item` matches `Fox.canHoldItem`'s empty-mouth-or-consumable-food test, and `fox_pick_up` matches `Fox.spitOutItem` (item at eye level plus the look direction, pickup delay 40, `entity.fox.spit`) and `Fox.dropItemStack` (`split(count - 1)` at the fox's feet), both checked against `javap -p -c net.minecraft.world.entity.animal.fox.Fox`. **Not proven:** no code change, so nothing was run in the game; the rows are map entries, and the behaviour they point at was verified by reading the functions above, not by a play session. The genuinely missing notes left in the file (`Fox.get`, `Fox.setTarget`, `Fox.FoxStrollThroughVillageGoal.canFoxMove`, `Frog.spawnChildFromBreeding`, the frog node evaluator's `getStart`/`getPathType`, `Goat.setYHeadRot`, the golems' and fox's `getLeashOffset`, `IronGolem.doPush`) are still `missing`; they are not touched here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:33:45 +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#7097
No description provided.