[PR #6786] [MERGED] Port map: nine rows whose methods the tree already ports #7094

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

📋 Pull Request Information

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

Base: main ← Head: chore/port-map-ported-rows


📝 Commits (4)

  • 83dd998 Port map: eight rows whose methods the tree already ports
  • 0bf2ebb Port map: the debug stick's forward and backward cycling
  • f7a4f29 Merge origin/main into chore/port-map-ported-rows
  • 34b2a90 Merge main into #6786

📊 Changes

5 files changed (+9 additions, -9 deletions)

View changed files

📝 tools/port_map/game-002.tsv (+2 -2)
📝 tools/port_map/game2-008.tsv (+3 -3)
📝 tools/port_map/game2-013.tsv (+1 -1)
📝 tools/port_map/rest-004.tsv (+1 -1)
📝 tools/port_map/rest-023.tsv (+2 -2)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Nine map rows still say missing (and carry a player: gap note) for methods the
tree already ports. Each row now names the Rust function that does the work, and
each of those functions opens with the vanilla method it ports:

Vanilla method Port
ServerPlayer.tellNeutralMobsThatIDied game/creatures.rs::Game::tell_neutral_mobs_player_died
ServerPlayer.sendBuildLimitMessage game/lan_actions.rs::Game::build_limit_message
MerchantMenu.playTradeSound game/trading.rs::Game::merchant_apply
ItemStack.canPlaceOnBlockInAdventureMode game/game_mode.rs::Game::can_place_on_in_adventure
PotionItem.useOn game/potions.rs::Game::use_water_bottle_on_block
CreakingHeartBlock.isSurroundedByLogs mobs/creaking_heart.rs::has_required_logs
LocalPlayer.isHorizontalCollisionMinor motion.rs::EntityMoveWorld::minor_horizontal_collision
Util.findNextInIterable game/debug_stick.rs::Game::debug_stick_interact
Util.findPreviousInIterable game/debug_stick.rs::Game::debug_stick_interact

How each was checked, beyond the doc comment:

  • tell_neutral_mobs_player_died is called when the player dies on both paths
    (lan_actions.rs for a guest, game.rs for the host).
  • build_limit_message is called at all four build.tooHigh/build.tooLow
    sites in the place and use paths.
  • merchant_apply has a TradeSound arm that plays entity.villager.yes or
    the wandering trader's yes.
  • can_place_on_in_adventure is read by the placement path
    (creatures.rs, the use_on gate).
  • use_water_bottle_on_block reads #convertible_to_mud, sets minecraft:mud
    and empties the bottle.
  • has_required_logs gates spawning a creaking, not just the idle sound.
  • minor_horizontal_collision fills sprint::Conditions::minor_horizontal_collision,
    so a shallow wall hit keeps the sprint.
  • debug_stick_interact cycles a property's values through relative_index
    with backward from the sneak key, for both the use and the left-click path.

This came out of a mechanic-by-mechanic audit against the Minecraft Wiki: the
map is the first thing a parity worker reads, and nine rows sending them after
behaviour that is already there costs a cycle each. ColorLerper.getLerpedColor
was one of these too; main fixed that row first, so this branch leaves it as
main has it.

What I could not run: python3 tools/port_ledger.py map-check and check both
ask for a built ledger, and build needs the vanilla jar, which this machine
does not have (Horizon never downloads the game). The rows follow the column
convention of their neighbours (path::Owner::fn, 4 tab-separated columns).
Please run map-check before merging.

No code changes: git diff touches only these five TSVs.


🔄 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/6786 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/port-map-ported-rows` --- ### 📝 Commits (4) - [`83dd998`](https://github.com/horizon-rust/horizon/commit/83dd998b90c29b3485f6183ce2248fcf9b31e260) Port map: eight rows whose methods the tree already ports - [`0bf2ebb`](https://github.com/horizon-rust/horizon/commit/0bf2ebb6b31fb53b59775ff8808f03d9a4cf4051) Port map: the debug stick's forward and backward cycling - [`f7a4f29`](https://github.com/horizon-rust/horizon/commit/f7a4f29418bc4e90f6295889abc823646cf0c736) Merge origin/main into chore/port-map-ported-rows - [`34b2a90`](https://github.com/horizon-rust/horizon/commit/34b2a90efbcd68e8ed0e6fea93513d32843a2f41) Merge main into #6786 ### 📊 Changes **5 files changed** (+9 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-002.tsv` (+2 -2) 📝 `tools/port_map/game2-008.tsv` (+3 -3) 📝 `tools/port_map/game2-013.tsv` (+1 -1) 📝 `tools/port_map/rest-004.tsv` (+1 -1) 📝 `tools/port_map/rest-023.tsv` (+2 -2) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Nine map rows still say `missing` (and carry a `player:` gap note) for methods the tree already ports. Each row now names the Rust function that does the work, and each of those functions opens with the vanilla method it ports: | Vanilla method | Port | |---|---| | `ServerPlayer.tellNeutralMobsThatIDied` | `game/creatures.rs::Game::tell_neutral_mobs_player_died` | | `ServerPlayer.sendBuildLimitMessage` | `game/lan_actions.rs::Game::build_limit_message` | | `MerchantMenu.playTradeSound` | `game/trading.rs::Game::merchant_apply` | | `ItemStack.canPlaceOnBlockInAdventureMode` | `game/game_mode.rs::Game::can_place_on_in_adventure` | | `PotionItem.useOn` | `game/potions.rs::Game::use_water_bottle_on_block` | | `CreakingHeartBlock.isSurroundedByLogs` | `mobs/creaking_heart.rs::has_required_logs` | | `LocalPlayer.isHorizontalCollisionMinor` | `motion.rs::EntityMoveWorld::minor_horizontal_collision` | | `Util.findNextInIterable` | `game/debug_stick.rs::Game::debug_stick_interact` | | `Util.findPreviousInIterable` | `game/debug_stick.rs::Game::debug_stick_interact` | How each was checked, beyond the doc comment: - `tell_neutral_mobs_player_died` is called when the player dies on both paths (`lan_actions.rs` for a guest, `game.rs` for the host). - `build_limit_message` is called at all four `build.tooHigh`/`build.tooLow` sites in the place and use paths. - `merchant_apply` has a `TradeSound` arm that plays `entity.villager.yes` or the wandering trader's yes. - `can_place_on_in_adventure` is read by the placement path (`creatures.rs`, the `use_on` gate). - `use_water_bottle_on_block` reads `#convertible_to_mud`, sets `minecraft:mud` and empties the bottle. - `has_required_logs` gates spawning a creaking, not just the idle sound. - `minor_horizontal_collision` fills `sprint::Conditions::minor_horizontal_collision`, so a shallow wall hit keeps the sprint. - `debug_stick_interact` cycles a property's values through `relative_index` with `backward` from the sneak key, for both the use and the left-click path. This came out of a mechanic-by-mechanic audit against the Minecraft Wiki: the map is the first thing a parity worker reads, and nine rows sending them after behaviour that is already there costs a cycle each. `ColorLerper.getLerpedColor` was one of these too; `main` fixed that row first, so this branch leaves it as main has it. What I could not run: `python3 tools/port_ledger.py map-check` and `check` both ask for a built ledger, and `build` needs the vanilla jar, which this machine does not have (Horizon never downloads the game). The rows follow the column convention of their neighbours (`path::Owner::fn`, 4 tab-separated columns). Please run map-check before merging. No code changes: `git diff` touches only these five TSVs. --- <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:42 +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#7094
No description provided.