[PR #7301] [MERGED] port map: game2-002's shulker dismount folds into the tick #7477

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • decca3d port map: Shulker.stopRiding folds into the shulker tick
  • 92ec3e7 port map: the shulker, ravager and item entity gaps lose their unsure

📊 Changes

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

View changed files

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

📄 Description

Rows of tools/port_map/game2-002.tsv (139 rows, map-check clean against 26.3), shulkers, ravagers and the last item entity rows.

Verdict

row was now where
Shulker.stopRiding missing inline crates/horizon-client/src/mobs/shulker.rs::tick

Vanilla resets a shulker's body yaw when it dismounts. Horizon never lets one drift: shulker::tick sets body_yaw = 0.0 every tick (and client_tick does the same on a remote shulker), so the reset has no work of its own.

Notes repaired — thirteen rows drop "unsure" or a vaguer claim for the code that decides them:

  • Shulker.startRiding: mobs/shulker.rs writes extra.variant3 from Attachable and the save only, so a shulker keeps the attach face it had when it boards.
  • Shulker.move: the SHULKER_BOX mover type has no counterpart — shulker::teleport runs from the tick and the bullet hit, so a shulker box pushed by a piston never takes its shulker along.
  • Shulker.getRenderPosition: client_tick eases the lid and squares the body; nothing interpolates the position across a teleport.
  • Shulker.ShulkerDefenseAttackGoal.getTargetSearchArea: register gives the shulker HurtByTarget with alert (a hurt shulker wakes the targetless ones around it) and a player search box 4 deep along the attach axis — not a goal that defends another shulker.
  • Shulker.applyImplicitComponent: a shulker out of a shulker box item ignores its colour, since implicit components are applied to a mob coming out of a bucket only (entity_nbt::bucket_components).
  • Ravager.updateControlFlags: the goal set has no control flags, so a mob driving a boat does not switch off the ravager's move, jump and look goals.
  • Ravager.hasLineOfSight: ravager::immobile knows the biting, stunned and roaring states, but no target goal is gated on it.
  • Monster.getProjectile: a monster's shot takes its projectile kind from the species, not from the stack it holds.
  • ItemEntity.getSlot, getName: a dropped item is not an addressable entity slot (game/commands.rs has no item entity case) and its name is not read anywhere.
  • PrimedTnt.teleport, PrimedTnt.restoreFrom: no used-portal flag, no portal damage calculator and no owner field on primed TNT.
  • ItemFrame.getFrameItemStackWithData: game/frames.rs::drop_frame_items builds a plain item_frame stack.

Map-check:

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

Proven: the verdict change and the thirteen notes; shulker::tick/client_tick both zero the body yaw, register's goals are read in the tree, and every fn or field a note names exists at this commit.

Not proven: I did not run a shulker through a dismount, and Shulker.getRenderPosition is the one row whose vanilla side I could not pin down — the note records that nothing slides the render position, not what vanilla draws. None of the gaps 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/7301 **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-002` --- ### 📝 Commits (2) - [`decca3d`](https://github.com/horizon-rust/horizon/commit/decca3dc4e889c29ae301eb6a43d75d391d8414b) port map: Shulker.stopRiding folds into the shulker tick - [`92ec3e7`](https://github.com/horizon-rust/horizon/commit/92ec3e7e62c61eed8276a9d68ceadc19f29d2d22) port map: the shulker, ravager and item entity gaps lose their unsure ### 📊 Changes **1 file changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-002.tsv` (+14 -14) </details> ### 📄 Description Rows of `tools/port_map/game2-002.tsv` (139 rows, map-check clean against 26.3), shulkers, ravagers and the last item entity rows. **Verdict** | row | was | now | where | | --- | --- | --- | --- | | `Shulker.stopRiding` | missing | inline | `crates/horizon-client/src/mobs/shulker.rs::tick` | Vanilla resets a shulker's body yaw when it dismounts. Horizon never lets one drift: `shulker::tick` sets `body_yaw = 0.0` every tick (and `client_tick` does the same on a remote shulker), so the reset has no work of its own. **Notes repaired** — thirteen rows drop "unsure" or a vaguer claim for the code that decides them: - `Shulker.startRiding`: `mobs/shulker.rs` writes `extra.variant3` from `Attachable` and the save only, so a shulker keeps the attach face it had when it boards. - `Shulker.move`: the `SHULKER_BOX` mover type has no counterpart — `shulker::teleport` runs from the tick and the bullet hit, so a shulker box pushed by a piston never takes its shulker along. - `Shulker.getRenderPosition`: `client_tick` eases the lid and squares the body; nothing interpolates the position across a teleport. - `Shulker.ShulkerDefenseAttackGoal.getTargetSearchArea`: `register` gives the shulker `HurtByTarget` with `alert` (a hurt shulker wakes the targetless ones around it) and a player search box 4 deep along the attach axis — not a goal that defends another shulker. - `Shulker.applyImplicitComponent`: a shulker out of a shulker box item ignores its colour, since implicit components are applied to a mob coming out of a bucket only (`entity_nbt::bucket_components`). - `Ravager.updateControlFlags`: the goal set has no control flags, so a mob driving a boat does not switch off the ravager's move, jump and look goals. - `Ravager.hasLineOfSight`: `ravager::immobile` knows the biting, stunned and roaring states, but no target goal is gated on it. - `Monster.getProjectile`: a monster's shot takes its projectile kind from the species, not from the stack it holds. - `ItemEntity.getSlot`, `getName`: a dropped item is not an addressable entity slot (`game/commands.rs` has no item entity case) and its name is not read anywhere. - `PrimedTnt.teleport`, `PrimedTnt.restoreFrom`: no used-portal flag, no portal damage calculator and no owner field on primed TNT. - `ItemFrame.getFrameItemStackWithData`: `game/frames.rs::drop_frame_items` builds a plain `item_frame` stack. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-002.tsv 139 rows, no problems. ``` **Proven:** the verdict change and the thirteen notes; `shulker::tick`/`client_tick` both zero the body yaw, `register`'s goals are read in the tree, and every fn or field a note names exists at this commit. **Not proven:** I did not run a shulker through a dismount, and `Shulker.getRenderPosition` is the one row whose vanilla side I could not pin down — the note records that nothing slides the render position, not what vanilla draws. None of the gaps 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:40:00 +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#7477
No description provided.