[PR #7298] [MERGED] port map: game2-005's pose fit test, and where the villager claims and spin attack stop #7474

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-b-game2-005


📝 Commits (2)

  • dfb319a port map: Player.canPlayerFitWithinBlocksAndEntitiesWhen is pose::can_fit_pose
  • 8da05d3 port map: villager claims, the spin attack and the food gate say what is absent

📊 Changes

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

View changed files

📝 tools/port_map/game2-005.tsv (+11 -11)

📄 Description

Rows of tools/port_map/game2-005.tsv (142 rows, map-check clean against 26.3), villagers, the player and the last projectiles that are still unsaved.

Verdict

row was now where
Player.canPlayerFitWithinBlocksAndEntitiesWhen missing port crates/horizon-client/src/pose.rs::MotionWorld::can_fit_pose

can_fit_pose builds the pose's dimensions at the player's position, deflates the box by 1e-7 and asks no_player_collision, which is the whole of vanilla's test, and update_player_pose uses it the way updatePlayerPose does: swimming first, then the desired pose, then crouching.

Notes repaired

  • ZombieVillager.applyImplicitComponent, Villager.applyImplicitComponent: these two pointed at a load_bucket_data that is not in the tree. The only implicit components Horizon applies are the ones a mob coming out of a bucket carries — entity_nbt::bucket_components — so a villager spawned from an item keeps the type its biome gives it.
  • Villager.releaseAllPois, releasePoi: claims are per-mob fields (extra.bed, extra.home for the job site, extra.meeting) and there is no world-side point-of-interest store, so releasing a claim for another villager while this one lives has no counterpart; a claim is dropped with the mob.
  • Player.getWeaponItem: the riptide spin keeps auto_spin_attack_ticks and auto_spin_attack_dmg but not the stack it started with, so there is no item to answer with mid-spin.
  • Player.hasContainerOpen: screens are self.screen; nothing distinguishes a container menu from the inventory menu.
  • Player.hasEnoughFoodToDoExhaustiveManoeuvres: no food-or-flying gate in motion.rs; the exhaustion of a jump or a move is added without asking the food level.
  • EvokerFangs.addAdditionalSaveData, readAdditionalSaveData, EyeOfEnder.readAdditionalSaveData: entity_nbt.rs has no writer for fangs (warmup, owner) or for a flying eye of ender, so a save mid-bite or mid-flight drops them.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-005.tsv
142 rows, no problems.

Proven: the verdict change and the ten rewritten notes; can_fit_pose resolves under map-check and its body and its three callers in update_player_pose are read in the tree, and every other note now cites a function or field that exists (bucket_components, auto_spin_attack_ticks, extra.bed/extra.home/extra.meeting).

Not proven: the pose test is not exercised end to end — I did not show a player actually standing, crouching and crawling through it. The remaining gaps stay gaps and none is shown to be unportable.


🔄 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/7298 **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/vol-b-game2-005` --- ### 📝 Commits (2) - [`dfb319a`](https://github.com/horizon-rust/horizon/commit/dfb319aeb8ec99f2c4f898038c3f54493bb347e7) port map: Player.canPlayerFitWithinBlocksAndEntitiesWhen is pose::can_fit_pose - [`8da05d3`](https://github.com/horizon-rust/horizon/commit/8da05d30cc0270eae0aa0b5f3a355dbf0a5a0f34) port map: villager claims, the spin attack and the food gate say what is absent ### 📊 Changes **1 file changed** (+11 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-005.tsv` (+11 -11) </details> ### 📄 Description Rows of `tools/port_map/game2-005.tsv` (142 rows, map-check clean against 26.3), villagers, the player and the last projectiles that are still unsaved. **Verdict** | row | was | now | where | | --- | --- | --- | --- | | `Player.canPlayerFitWithinBlocksAndEntitiesWhen` | missing | port | `crates/horizon-client/src/pose.rs::MotionWorld::can_fit_pose` | `can_fit_pose` builds the pose's dimensions at the player's position, deflates the box by `1e-7` and asks `no_player_collision`, which is the whole of vanilla's test, and `update_player_pose` uses it the way `updatePlayerPose` does: swimming first, then the desired pose, then crouching. **Notes repaired** - `ZombieVillager.applyImplicitComponent`, `Villager.applyImplicitComponent`: these two pointed at a `load_bucket_data` that is not in the tree. The only implicit components Horizon applies are the ones a mob coming out of a bucket carries — `entity_nbt::bucket_components` — so a villager spawned from an item keeps the type its biome gives it. - `Villager.releaseAllPois`, `releasePoi`: claims are per-mob fields (`extra.bed`, `extra.home` for the job site, `extra.meeting`) and there is no world-side point-of-interest store, so releasing a claim for another villager while this one lives has no counterpart; a claim is dropped with the mob. - `Player.getWeaponItem`: the riptide spin keeps `auto_spin_attack_ticks` and `auto_spin_attack_dmg` but not the stack it started with, so there is no item to answer with mid-spin. - `Player.hasContainerOpen`: screens are `self.screen`; nothing distinguishes a container menu from the inventory menu. - `Player.hasEnoughFoodToDoExhaustiveManoeuvres`: no food-or-flying gate in `motion.rs`; the exhaustion of a jump or a move is added without asking the food level. - `EvokerFangs.addAdditionalSaveData`, `readAdditionalSaveData`, `EyeOfEnder.readAdditionalSaveData`: `entity_nbt.rs` has no writer for fangs (warmup, owner) or for a flying eye of ender, so a save mid-bite or mid-flight drops them. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-005.tsv 142 rows, no problems. ``` **Proven:** the verdict change and the ten rewritten notes; `can_fit_pose` resolves under map-check and its body and its three callers in `update_player_pose` are read in the tree, and every other note now cites a function or field that exists (`bucket_components`, `auto_spin_attack_ticks`, `extra.bed`/`extra.home`/`extra.meeting`). **Not proven:** the pose test is not exercised end to end — I did not show a player actually standing, crouching and crawling through it. The remaining gaps stay gaps and none is shown to be unportable. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:39:56 +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#7474
No description provided.