[PR #6986] [MERGED] Clear stale game2-002.tsv rows main already implements #7253

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-game2-002-2


📝 Commits (1)

  • acfd992 port map: clear game2-002 rows main already implements

📊 Changes

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

View changed files

📝 tools/port_map/game2-002.tsv (+14 -14)

📄 Description

tools/port_map/game2-002.tsv no longer matched the tree: eight rows said missing
for behaviour main has, two described gaps that have since closed, and four rows
pointed at functions that do not exist.

Verdicts corrected:

  • ItemFrame.getSlot -> game/commands/items.rs::Game::slot_get: slots_named maps
    container.0 and contents on a frame to Slot::Frame; slot_get reads the frame's
    item and slot_set writes it.
  • Painting.applyImplicitComponent -> game/paintings.rs::Game::place_painting: the
    stack's painting/variant replaces the random pick (PaintingVariants::of_stack), and
    that variant has to survive where it goes or the use is refused.
  • FallingBlockEntity.teleport -> game.rs::Game::fall_step: the move itself is
    falling_through_portal, and the End-crossing forceTickAfterTeleportToDuplicate
    branch is in fall_step.
  • Phantom.updatePhantomSizeInfo -> mobs/phantom.rs::set_size: clamps the size to
    0..64 and sets the attack damage base to 6 + size.
  • Phantom.readAdditionalSaveData -> entity_nbt.rs::mob_from_nbt, and
    Phantom.addAdditionalSaveData -> entity_nbt.rs::mob_to_nbt: size is read and
    written as setPhantomSize/getPhantomSize do, at load and at save.
  • Phantom.getDefaultDimensions -> mobs/living.rs::Mob::dims: the box, height and eye
    height scale by 1 + 0.15 per size.
  • Silverfish.getWalkTargetValue -> mobs/ai.rs::walk_target_value: a block standing on
    an infested host is worth 10, and the row's own test covers it.

Gaps that had closed, notes fixed:

  • PrimedTnt.explode: the power is the tnt's own field, saved as explosion_power and
    4 by default (tnt.rs), so only the used-portal damage calculator is still missing.
  • Endermite.registerGoals: Float and ClimbOnTopOfPowderSnow at priority 1 are
    registered for the Endermite in mobs/hostile.rs.

Citations that named nothing, which map-check reported:

  • Creeper.spawnLingeringCloud -> mobs/hostile.rs::creeper_tick, which pushes the
    lingering cloud event.
  • Enderman.addAdditionalSaveData / readAdditionalSaveData -> entity_nbt.rs::mob_to_nbt
    / mob_from_nbt; the rows cited a line range and a bare file.
  • Monster.updateNoActionTime -> mobs/ai.rs::server_ai_step, where the counter is counted
    up, instead of prose in the citation column.

python3 tools/port_ledger.py map-check tools/port_map/game2-002.tsv: 139 rows, no problems.

Left alone, still absent: ItemFrame.getFrameItemStackWithData (a broken frame still drops
an unnamed stack), ItemEntity.getName and ItemEntity.getSlot, PrimedTnt.restoreFrom
(the owner is not carried across a portal move) and PrimedTnt.teleport (no used-portal
damage calculator), Monster.getProjectile (no held-ammo choice for mobs),
Ravager.updateControlFlags and Ravager.hasLineOfSight, and the six Shulker rows
(startRiding, stopRiding, move, getRenderPosition, applyImplicitComponent,
ShulkerDefenseAttackGoal.getTargetSearchArea).

Proven: data file only; each claim is from reading the function named in the row.

Not proven: no in-game check; ledger verdicts, not behaviour changes.


🔄 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/6986 **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-game2-002-2` --- ### 📝 Commits (1) - [`acfd992`](https://github.com/horizon-rust/horizon/commit/acfd992b34f7974dd61be905cb9438377dc4a1e1) port map: clear game2-002 rows main already implements ### 📊 Changes **1 file changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-002.tsv` (+14 -14) </details> ### 📄 Description `tools/port_map/game2-002.tsv` no longer matched the tree: eight rows said `missing` for behaviour `main` has, two described gaps that have since closed, and four rows pointed at functions that do not exist. Verdicts corrected: - `ItemFrame.getSlot` -> `game/commands/items.rs::Game::slot_get`: `slots_named` maps `container.0` and `contents` on a frame to `Slot::Frame`; `slot_get` reads the frame's item and `slot_set` writes it. - `Painting.applyImplicitComponent` -> `game/paintings.rs::Game::place_painting`: the stack's `painting/variant` replaces the random pick (`PaintingVariants::of_stack`), and that variant has to survive where it goes or the use is refused. - `FallingBlockEntity.teleport` -> `game.rs::Game::fall_step`: the move itself is `falling_through_portal`, and the End-crossing `forceTickAfterTeleportToDuplicate` branch is in `fall_step`. - `Phantom.updatePhantomSizeInfo` -> `mobs/phantom.rs::set_size`: clamps the size to 0..64 and sets the attack damage base to 6 + size. - `Phantom.readAdditionalSaveData` -> `entity_nbt.rs::mob_from_nbt`, and `Phantom.addAdditionalSaveData` -> `entity_nbt.rs::mob_to_nbt`: `size` is read and written as `setPhantomSize`/`getPhantomSize` do, at load and at save. - `Phantom.getDefaultDimensions` -> `mobs/living.rs::Mob::dims`: the box, height and eye height scale by 1 + 0.15 per size. - `Silverfish.getWalkTargetValue` -> `mobs/ai.rs::walk_target_value`: a block standing on an infested host is worth 10, and the row's own test covers it. Gaps that had closed, notes fixed: - `PrimedTnt.explode`: the power is the tnt's own field, saved as `explosion_power` and 4 by default (`tnt.rs`), so only the used-portal damage calculator is still missing. - `Endermite.registerGoals`: `Float` and `ClimbOnTopOfPowderSnow` at priority 1 are registered for the Endermite in `mobs/hostile.rs`. Citations that named nothing, which `map-check` reported: - `Creeper.spawnLingeringCloud` -> `mobs/hostile.rs::creeper_tick`, which pushes the lingering cloud event. - `Enderman.addAdditionalSaveData` / `readAdditionalSaveData` -> `entity_nbt.rs::mob_to_nbt` / `mob_from_nbt`; the rows cited a line range and a bare file. - `Monster.updateNoActionTime` -> `mobs/ai.rs::server_ai_step`, where the counter is counted up, instead of prose in the citation column. `python3 tools/port_ledger.py map-check tools/port_map/game2-002.tsv`: `139 rows, no problems.` Left alone, still absent: `ItemFrame.getFrameItemStackWithData` (a broken frame still drops an unnamed stack), `ItemEntity.getName` and `ItemEntity.getSlot`, `PrimedTnt.restoreFrom` (the owner is not carried across a portal move) and `PrimedTnt.teleport` (no used-portal damage calculator), `Monster.getProjectile` (no held-ammo choice for mobs), `Ravager.updateControlFlags` and `Ravager.hasLineOfSight`, and the six Shulker rows (`startRiding`, `stopRiding`, `move`, `getRenderPosition`, `applyImplicitComponent`, `ShulkerDefenseAttackGoal.getTargetSearchArea`). **Proven:** data file only; each claim is from reading the function named in the row. **Not proven:** no in-game check; ledger verdicts, not behaviour changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:36:29 +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#7253
No description provided.