[PR #6943] [MERGED] Clear stale game-008.tsv rows main already implements #7219

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game-008-rows


📝 Commits (1)

  • 060e4ac Clear stale game-008 ledger rows the tree already implements

📊 Changes

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

View changed files

📝 tools/port_map/game-008.tsv (+22 -22)

📄 Description

The spear behaviours of a piglin's fight activity (SpearApproach, SpearAttack, SpearRetreat), the baby piglin's Mount.create, and the frog's TryFindLandNearLiquid are all in the tree, wired into their activities; tools/port_map/game-008.tsv still listed them as missing.

Rows and their citations:

  • Mount.create → crates/horizon-client/src/mobs/piglin.rs::mount (port)
  • SpearApproach.ableToAttack, SpearAttack.ableToAttack, SpearRetreat.ableToAttack → crates/horizon-client/src/mobs/spear_use.rs::able_to_attack (inline)
  • SpearApproach.checkExtraStartConditions → crates/horizon-client/src/mobs/spear_use.rs::approach_check_extra_start_conditions (port)
  • SpearApproach.start → crates/horizon-client/src/mobs/spear_use.rs::approach_start (port)
  • SpearApproach.canStillUse → crates/horizon-client/src/mobs/spear_use.rs::approach_can_still_use (port)
  • SpearApproach.farEnough → crates/horizon-client/src/mobs/spear_use.rs::approach_can_still_use (inline, the distance test inside the still-using test)
  • SpearApproach.tick → crates/horizon-client/src/mobs/spear_use.rs::approach_tick (port)
  • SpearAttack.getKineticWeaponUseDuration → crates/horizon-client/src/mobs/spear_use.rs::attack_kinetic_weapon_use_duration (port)
  • SpearAttack.checkExtraStartConditions → crates/horizon-client/src/mobs/spear_use.rs::attack_check_extra_start_conditions (port)
  • SpearAttack.start → crates/horizon-client/src/mobs/spear_use.rs::attack_start (port)
  • SpearAttack.canStillUse → crates/horizon-client/src/mobs/spear_use.rs::attack_can_still_use (port)
  • SpearAttack.tick → crates/horizon-client/src/mobs/spear_use.rs::attack_tick (port)
  • SpearAttack.stop → crates/horizon-client/src/mobs/spear_use.rs::attack_stop (port)
  • SpearRetreat.checkExtraStartConditions → crates/horizon-client/src/mobs/spear_use.rs::retreat_check_extra_start_conditions (port)
  • SpearRetreat.start → crates/horizon-client/src/mobs/spear_use.rs::retreat_start (port)
  • SpearRetreat.canStillUse → crates/horizon-client/src/mobs/spear_use.rs::retreat_can_still_use (port)
  • SpearRetreat.tick → crates/horizon-client/src/mobs/spear_use.rs::retreat_tick (port)
  • SpearRetreat.stop → crates/horizon-client/src/mobs/spear_use.rs::retreat_stop (port)
  • TryFindLand.canStandOn → crates/horizon-client/src/mobs/frog.rs::LaySpawn::land_near_water (inline, an empty collision shape at the cell and a non-empty block below, a solid test standing in for isFaceSturdy(UP))
  • TryFindLandNearLiquid.create → crates/horizon-client/src/mobs/frog.rs::LaySpawn::find (port, the 8 block manhattan scan for land beside water, its 40 tick retry and the walk target on what it finds)

Left missing after checking, unchanged: MoveToTargetSink.isWalkTargetSpectator (a walk target holds only a block position here, so there is no entity to test, and nothing drops a target on a spectator) and TransportItemsBetweenContainers.isContainerLocked (the copper golem's target check reads the block name and ChestBlock.isChestBlockedAt, never a container's lock).

Checked on the build VM, changed file only:

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

Proven: every citation names a function the ledger indexes (map-check clean), the spear goal is registered in the piglin's fight activity (crates/horizon-client/src/mobs/piglin.rs:1173, with NoMeleeWithSpear keeping the melee goal off), mount runs in the piglin's tick (crates/horizon-client/src/mobs/piglin.rs:326), and the frog's LaySpawn is added to the lay-spawn activity (crates/horizon-client/src/mobs/frog.rs:123).

Not proven: none of this was watched in a running game. The two rows left missing rest on reading the code, not on play.


🔄 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/6943 **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-008-rows` --- ### 📝 Commits (1) - [`060e4ac`](https://github.com/horizon-rust/horizon/commit/060e4ac80efacaa7a74f67fdb977ce5e17487cd3) Clear stale game-008 ledger rows the tree already implements ### 📊 Changes **1 file changed** (+22 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-008.tsv` (+22 -22) </details> ### 📄 Description The spear behaviours of a piglin's fight activity (`SpearApproach`, `SpearAttack`, `SpearRetreat`), the baby piglin's `Mount.create`, and the frog's `TryFindLandNearLiquid` are all in the tree, wired into their activities; `tools/port_map/game-008.tsv` still listed them as `missing`. Rows and their citations: - `Mount.create` → `crates/horizon-client/src/mobs/piglin.rs::mount` (`port`) - `SpearApproach.ableToAttack`, `SpearAttack.ableToAttack`, `SpearRetreat.ableToAttack` → `crates/horizon-client/src/mobs/spear_use.rs::able_to_attack` (`inline`) - `SpearApproach.checkExtraStartConditions` → `crates/horizon-client/src/mobs/spear_use.rs::approach_check_extra_start_conditions` (`port`) - `SpearApproach.start` → `crates/horizon-client/src/mobs/spear_use.rs::approach_start` (`port`) - `SpearApproach.canStillUse` → `crates/horizon-client/src/mobs/spear_use.rs::approach_can_still_use` (`port`) - `SpearApproach.farEnough` → `crates/horizon-client/src/mobs/spear_use.rs::approach_can_still_use` (`inline`, the distance test inside the still-using test) - `SpearApproach.tick` → `crates/horizon-client/src/mobs/spear_use.rs::approach_tick` (`port`) - `SpearAttack.getKineticWeaponUseDuration` → `crates/horizon-client/src/mobs/spear_use.rs::attack_kinetic_weapon_use_duration` (`port`) - `SpearAttack.checkExtraStartConditions` → `crates/horizon-client/src/mobs/spear_use.rs::attack_check_extra_start_conditions` (`port`) - `SpearAttack.start` → `crates/horizon-client/src/mobs/spear_use.rs::attack_start` (`port`) - `SpearAttack.canStillUse` → `crates/horizon-client/src/mobs/spear_use.rs::attack_can_still_use` (`port`) - `SpearAttack.tick` → `crates/horizon-client/src/mobs/spear_use.rs::attack_tick` (`port`) - `SpearAttack.stop` → `crates/horizon-client/src/mobs/spear_use.rs::attack_stop` (`port`) - `SpearRetreat.checkExtraStartConditions` → `crates/horizon-client/src/mobs/spear_use.rs::retreat_check_extra_start_conditions` (`port`) - `SpearRetreat.start` → `crates/horizon-client/src/mobs/spear_use.rs::retreat_start` (`port`) - `SpearRetreat.canStillUse` → `crates/horizon-client/src/mobs/spear_use.rs::retreat_can_still_use` (`port`) - `SpearRetreat.tick` → `crates/horizon-client/src/mobs/spear_use.rs::retreat_tick` (`port`) - `SpearRetreat.stop` → `crates/horizon-client/src/mobs/spear_use.rs::retreat_stop` (`port`) - `TryFindLand.canStandOn` → `crates/horizon-client/src/mobs/frog.rs::LaySpawn::land_near_water` (`inline`, an empty collision shape at the cell and a non-empty block below, a solid test standing in for `isFaceSturdy(UP)`) - `TryFindLandNearLiquid.create` → `crates/horizon-client/src/mobs/frog.rs::LaySpawn::find` (`port`, the 8 block manhattan scan for land beside water, its 40 tick retry and the walk target on what it finds) Left `missing` after checking, unchanged: `MoveToTargetSink.isWalkTargetSpectator` (a walk target holds only a block position here, so there is no entity to test, and nothing drops a target on a spectator) and `TransportItemsBetweenContainers.isContainerLocked` (the copper golem's target check reads the block name and `ChestBlock.isChestBlockedAt`, never a container's lock). Checked on the build VM, changed file only: ``` python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar >/dev/null && python3 tools/port_ledger.py map-check tools/port_map/game-008.tsv 147 rows, no problems. ``` **Proven:** every citation names a function the ledger indexes (map-check clean), the spear goal is registered in the piglin's fight activity (`crates/horizon-client/src/mobs/piglin.rs:1173`, with `NoMeleeWithSpear` keeping the melee goal off), `mount` runs in the piglin's tick (`crates/horizon-client/src/mobs/piglin.rs:326`), and the frog's `LaySpawn` is added to the lay-spawn activity (`crates/horizon-client/src/mobs/frog.rs:123`). **Not proven:** none of this was watched in a running game. The two rows left `missing` rest on reading the code, not on play. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:35:54 +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#7219
No description provided.