[PR #7289] [MERGED] port map: game2-004's piglin boarding, and where the warden anger and Johnny gaps sit #7466

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • 3af0b25 port map: Piglin.startRiding is riders::start_riding
  • 3e2aed2 port map: piglins, wardens and the Johnny flag say what is missing where

📊 Changes

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

View changed files

📝 tools/port_map/game2-004.tsv (+15 -15)

📄 Description

Rows of tools/port_map/game2-004.tsv (150 rows, map-check clean against 26.3), piglins, wardens and the drowned.

Verdict

row was now where
Piglin.startRiding missing port crates/horizon-client/src/mobs/riders.rs::start_riding

start_riding is the two-mob boarding every rider in Horizon goes through, and it carries the piglin case: a baby piglin that boards a hoglin is put on top of the piglins already stacked there (top_passenger, three at most), after the same tests vanilla makes (not the vehicle it is already on, not one it carries, boarding cooldown, a vehicle with no passenger).

Notes repaired — fourteen gaps now name the code that decides them:

  • PiglinAi.broadcastUniversalAnger, setAngerTargetToNearestTargetablePlayerIfFound, getNearestVisibleTargetablePlayer: the universal_anger rule does reach the mob world (creatures.rs:788) and the wolf's target goal reads it (tame.rs:81, NeutralMob.isAngryAt), but nothing in mobs/piglin.rs does — the piglin anger broadcast there is broadcast_anger (broadcastAngerTarget) only. The old note said the rule was merely stored, which is no longer true.
  • AngerManagement.codec, createUuidAngerPairs, convertFromUuids, Warden.addAdditionalSaveData, readAdditionalSaveData: entity_nbt.rs::persistent_anger lists wolf, iron golem, polar bear, enderman and zombified piglin, so a warden's anger_end_time and angry_at are never written and never read.
  • Warden.getAddEntityPacket, recreateFromPacket: the emerging bit rides as extra entity data on the spawn, and nothing in the add-entity path or game/remote.rs applies it; mobs/living.rs shortens a warden only when its own is_emerging memory says so.
  • Vindicator.addAdditionalSaveData: no Johnny flag is written; mobs/illager.rs:78 tests the custom name itself.
  • Piglin.getSlot: item commands stop at the open container.
  • WitherSkeleton.getArrow: arrows it shoots are not set alight.
  • Drowned.canReplaceCurrentItem: no mob item pickup, so the nautilus shell guard never applies.

Map-check:

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

Proven: the verdict change and every rewritten note; start_riding resolves under map-check and its piglin stacking branch is read in the tree, and each remaining note cites the function or constant that decides the gap (persistent_anger, creatures.rs:788, tame.rs:81, illager.rs:78).

Not proven: the gaps stay gaps. I did not show any of them cannot be ported, only that nothing in crates/ does it at this commit.


🔄 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/7289 **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-004` --- ### 📝 Commits (2) - [`3af0b25`](https://github.com/horizon-rust/horizon/commit/3af0b2589f26a91626b52214ec90adb7194a034f) port map: Piglin.startRiding is riders::start_riding - [`3e2aed2`](https://github.com/horizon-rust/horizon/commit/3e2aed287aeee16bfb0f07987f86acd016b102a3) port map: piglins, wardens and the Johnny flag say what is missing where ### 📊 Changes **1 file changed** (+15 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-004.tsv` (+15 -15) </details> ### 📄 Description Rows of `tools/port_map/game2-004.tsv` (150 rows, map-check clean against 26.3), piglins, wardens and the drowned. **Verdict** | row | was | now | where | | --- | --- | --- | --- | | `Piglin.startRiding` | missing | port | `crates/horizon-client/src/mobs/riders.rs::start_riding` | `start_riding` is the two-mob boarding every rider in Horizon goes through, and it carries the piglin case: a baby piglin that boards a hoglin is put on top of the piglins already stacked there (`top_passenger`, three at most), after the same tests vanilla makes (not the vehicle it is already on, not one it carries, boarding cooldown, a vehicle with no passenger). **Notes repaired** — fourteen gaps now name the code that decides them: - `PiglinAi.broadcastUniversalAnger`, `setAngerTargetToNearestTargetablePlayerIfFound`, `getNearestVisibleTargetablePlayer`: the `universal_anger` rule does reach the mob world (`creatures.rs:788`) and the wolf's target goal reads it (`tame.rs:81`, `NeutralMob.isAngryAt`), but nothing in `mobs/piglin.rs` does — the piglin anger broadcast there is `broadcast_anger` (`broadcastAngerTarget`) only. The old note said the rule was merely stored, which is no longer true. - `AngerManagement.codec`, `createUuidAngerPairs`, `convertFromUuids`, `Warden.addAdditionalSaveData`, `readAdditionalSaveData`: `entity_nbt.rs::persistent_anger` lists wolf, iron golem, polar bear, enderman and zombified piglin, so a warden's `anger_end_time` and `angry_at` are never written and never read. - `Warden.getAddEntityPacket`, `recreateFromPacket`: the emerging bit rides as extra entity data on the spawn, and nothing in the add-entity path or `game/remote.rs` applies it; `mobs/living.rs` shortens a warden only when its own `is_emerging` memory says so. - `Vindicator.addAdditionalSaveData`: no `Johnny` flag is written; `mobs/illager.rs:78` tests the custom name itself. - `Piglin.getSlot`: item commands stop at the open container. - `WitherSkeleton.getArrow`: arrows it shoots are not set alight. - `Drowned.canReplaceCurrentItem`: no mob item pickup, so the nautilus shell guard never applies. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-004.tsv 150 rows, no problems. ``` **Proven:** the verdict change and every rewritten note; `start_riding` resolves under map-check and its piglin stacking branch is read in the tree, and each remaining note cites the function or constant that decides the gap (`persistent_anger`, `creatures.rs:788`, `tame.rs:81`, `illager.rs:78`). **Not proven:** the gaps stay gaps. I did not show any of them cannot be ported, only that nothing in `crates/` does it at this commit. --- <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:52 +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#7466
No description provided.