[PR #7110] [MERGED] Clear stale game-013 rows main already implements #7347

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-013.tsv


📝 Commits (1)

  • 3ccde69 Clear stale game-013 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game-013.tsv (+6 -6)

📄 Description

Six rows of tools/port_map/game-013.tsv said their behaviour was missing; it is in the tree on main, so each now cites the fn that implements it.

Rows:

  • AbstractNautilus.isAggravated — missing → port, crates/horizon-client/src/mobs/nautilus.rs::aggravated. The anger clock, whose target is last_hurt_by, or a live attack target stand in for the brain's ANGRY_AT and ATTACK_TARGET memories, and leash.rs::can_be_leashed asks it for the nautilus and the zombie nautilus.
  • ZombieNautilus.applyImplicitComponent — missing → inline, crates/horizon-client/src/entity_nbt.rs::apply_item_components. The minecraft:zombie_nautilus/variant component, applied from a bucket's or a spawn egg's data; no sound variant.
  • Rabbit.RaidGardenGoal.canUse — missing → port, crates/horizon-client/src/mobs/rabbit.rs::RaidGarden::can_use. A MoveToBlockGoal (0.7, 16) over ripe carrots, delayed 200 to 400 ticks; no raid while mob griefing is off or while moreCarrotTicks is still positive.
  • Rabbit.RaidGardenGoal.tick — missing → port, crates/horizon-client/src/mobs/rabbit.rs::RaidGarden::tick. One age off the carrot (air at age 0), then 40 moreCarrotTicks and a 10-tick delay.
  • Rabbit.RaidGardenGoal.isValidTarget — missing → port, crates/horizon-client/src/mobs/rabbit.rs::raid_target. A crop-supporting block under a carrot at its maximum age, while the rabbit wants more food and has found none.
  • Sheep.applyImplicitComponent — missing → inline, crates/horizon-client/src/entity_nbt.rs::apply_item_components. The minecraft:sheep/color component, a dye id.

map-check, both jars:

python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null
python3 tools/port_ledger.py map-check tools/port_map/game-013.tsv
147 rows, no problems.

Proven: each cited fn was read on upstream/main, and three of the rows were checked against the jar: Rabbit$RaidGardenGoal.canUse starts from nextStartTick and then defers to MoveToBlockGoal.canUse; isValidTarget tests SUPPORTS_CROPS under a CarrotBlock at its maximum age; tick takes one age off the crop. leash.rs::can_be_leashed has the nautilus and zombie nautilus arm that calls nautilus::aggravated, and ZombieNautilus and Sheep are both arms of apply_item_components, which the spawn egg and bucket paths call (game/creatures.rs, game/dispenser.rs).

Not proven: the rest of the file is untouched. The rows still marked missing there (Parrot.applyImplicitComponent, Rabbit.applyImplicitComponent, Pig.onSyncedDataUpdated, PolarBear.getDefaultDimensions, Rabbit.playAttackSound, Sniffer.jumpFromGround) have no port found: no minecraft:parrot/variant or minecraft:rabbit/variant arm in apply_item_components, no entity.rabbit.attack sound, and no polar bear baby dimensions of their own.


🔄 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/7110 **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/ledger-game-013.tsv` --- ### 📝 Commits (1) - [`3ccde69`](https://github.com/horizon-rust/horizon/commit/3ccde697e4eb9160eae29350376671d2f86bf2d2) Clear stale game-013 rows main already implements ### 📊 Changes **1 file changed** (+6 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-013.tsv` (+6 -6) </details> ### 📄 Description Six rows of `tools/port_map/game-013.tsv` said their behaviour was missing; it is in the tree on main, so each now cites the fn that implements it. Rows: - `AbstractNautilus.isAggravated` — `missing` → `port`, `crates/horizon-client/src/mobs/nautilus.rs::aggravated`. The anger clock, whose target is `last_hurt_by`, or a live attack target stand in for the brain's `ANGRY_AT` and `ATTACK_TARGET` memories, and `leash.rs::can_be_leashed` asks it for the nautilus and the zombie nautilus. - `ZombieNautilus.applyImplicitComponent` — `missing` → `inline`, `crates/horizon-client/src/entity_nbt.rs::apply_item_components`. The `minecraft:zombie_nautilus/variant` component, applied from a bucket's or a spawn egg's data; no sound variant. - `Rabbit.RaidGardenGoal.canUse` — `missing` → `port`, `crates/horizon-client/src/mobs/rabbit.rs::RaidGarden::can_use`. A `MoveToBlockGoal` (0.7, 16) over ripe carrots, delayed 200 to 400 ticks; no raid while mob griefing is off or while `moreCarrotTicks` is still positive. - `Rabbit.RaidGardenGoal.tick` — `missing` → `port`, `crates/horizon-client/src/mobs/rabbit.rs::RaidGarden::tick`. One age off the carrot (air at age 0), then 40 `moreCarrotTicks` and a 10-tick delay. - `Rabbit.RaidGardenGoal.isValidTarget` — `missing` → `port`, `crates/horizon-client/src/mobs/rabbit.rs::raid_target`. A crop-supporting block under a carrot at its maximum age, while the rabbit wants more food and has found none. - `Sheep.applyImplicitComponent` — `missing` → `inline`, `crates/horizon-client/src/entity_nbt.rs::apply_item_components`. The `minecraft:sheep/color` component, a dye id. map-check, both jars: python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/client.jar --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null python3 tools/port_ledger.py map-check tools/port_map/game-013.tsv 147 rows, no problems. **Proven:** each cited fn was read on `upstream/main`, and three of the rows were checked against the jar: `Rabbit$RaidGardenGoal.canUse` starts from `nextStartTick` and then defers to `MoveToBlockGoal.canUse`; `isValidTarget` tests `SUPPORTS_CROPS` under a `CarrotBlock` at its maximum age; `tick` takes one age off the crop. `leash.rs::can_be_leashed` has the nautilus and zombie nautilus arm that calls `nautilus::aggravated`, and `ZombieNautilus` and `Sheep` are both arms of `apply_item_components`, which the spawn egg and bucket paths call (`game/creatures.rs`, `game/dispenser.rs`). **Not proven:** the rest of the file is untouched. The rows still marked `missing` there (`Parrot.applyImplicitComponent`, `Rabbit.applyImplicitComponent`, `Pig.onSyncedDataUpdated`, `PolarBear.getDefaultDimensions`, `Rabbit.playAttackSound`, `Sniffer.jumpFromGround`) have no port found: no `minecraft:parrot/variant` or `minecraft:rabbit/variant` arm in `apply_item_components`, no `entity.rabbit.attack` sound, and no polar bear baby dimensions of their own. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:07 +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#7347
No description provided.