[PR #7290] [MERGED] port map: game2-003's hoglin, zoglin and witch rows were already ported #7468

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • 5229d61 port map: six hoglin, zoglin and witch rows were already ported
  • acf6b8b port map: the creaking, breeze and strider gaps name the code that decides them

📊 Changes

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

View changed files

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

📄 Description

Rows of tools/port_map/game2-003.tsv (149 rows, map-check clean against 26.3), hoglins, zoglins, the witch, the creaking and the breeze.

Verdicts

row was now where
Witch.handleEntityEvent missing port crates/horizon-client/src/game/remote_mob_particles.rs::Game::witch_magic_particles
Zoglin.updateActivity missing port crates/horizon-client/src/mobs/piglin.rs::zoglin_step
HoglinAi.updateActivity missing port crates/horizon-client/src/mobs/piglin.rs::update_activity
HoglinAi.retreatFromNearestTarget missing port crates/horizon-client/src/mobs/piglin.rs::retreat_from_nearest
HoglinAi.setAvoidTarget missing port crates/horizon-client/src/mobs/piglin.rs::set_avoid_target
HoglinAi.piglinsOutnumberHoglins missing port crates/horizon-client/src/mobs/piglin.rs::piglins_outnumber_hoglins

The notes said these behaviours were absent ("no grunt", "no retreat activity", "not drawn here"), and the tree says otherwise:

  • witch_magic_particles is Witch.handleEntityEvent(15) — nextInt(35) + 10 purple puffs over the head, the count drawn again every pass as the Java loop condition does — and game/remote.rs:3949 hands it every witch entity event.
  • update_activity takes the first valid activity and voices the one it moved to; hoglin_sound is the angry grunt in a fight and the retreat grunt when avoiding or converting, else ambient. It serves HoglinAi, PiglinAi and PiglinBruteAi, and mobs/ai.rs runs it after the brain.
  • retreat_from_nearest picks the nearest of the new target, the avoid target and the attack target (strictly closer wins) and retreats it; set_avoid_target forgets the attack target and the walk and avoids that entity for a 5 to 20 second retreat drawn from the level random.
  • piglins_outnumber_hoglins is the adult count rule (piglins > hoglins + 1).

Notes repaired — the eight rows still missing name the code that decides them:

  • Creaking.canUsePortal: game/nether_portal.rs::mob_can_use_portal tests alive, no mount, not ridden, the guest-ride rule and the wither — nothing about the heart.
  • Creaking.CreakingPathNavigation.createPathFinder, Creaking.HomeNodeEvaluator.getPathType: m.extra.home is read for damage, tearing down and the save, never by the pathfinder; nothing blocks a node more than 32 blocks from the heart.
  • Breeze.emitJumpTrailParticles, emitGroundParticles: mobs/breeze.rs has no particle call at all, only dangerous_block.
  • Strider.canAddPassenger: boarding goes through mobs/riders.rs::start_riding, which tests the mount and the cooldown only, so the eye-in-lava refusal has no counterpart.
  • Vex.restoreFrom: no mob restoreFrom exists.
  • AbstractCubeMob.onSyncedDataUpdated: mobs/living.rs takes dimensions from the mob's own size and game/remote.rs applies no cube size, so a spawn or data update never resizes one.

Map-check:

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

Proven: all six verdicts and the eight notes; every cited fn resolves under map-check, and each behaviour claim is read at the cite — hoglin_sound's branches, retreat_from_nearest's three candidates, witch_magic_particles's loop, mob_can_use_portal's tests.

Not proven: the six ports are not wired end to end here — e.g. update_activity's voice reaches the audio only through MobEvents, which I did not trace to playback. The eight gaps stay gaps; I did not show any of them cannot be ported.


🔄 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/7290 **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-003` --- ### 📝 Commits (2) - [`5229d61`](https://github.com/horizon-rust/horizon/commit/5229d6118dfe95795825754cc7bfce5e2939576e) port map: six hoglin, zoglin and witch rows were already ported - [`acf6b8b`](https://github.com/horizon-rust/horizon/commit/acf6b8b8e98470e65e2a6f0185c6bfec747581b6) port map: the creaking, breeze and strider gaps name the code that decides them ### 📊 Changes **1 file changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-003.tsv` (+14 -14) </details> ### 📄 Description Rows of `tools/port_map/game2-003.tsv` (149 rows, map-check clean against 26.3), hoglins, zoglins, the witch, the creaking and the breeze. **Verdicts** | row | was | now | where | | --- | --- | --- | --- | | `Witch.handleEntityEvent` | missing | port | `crates/horizon-client/src/game/remote_mob_particles.rs::Game::witch_magic_particles` | | `Zoglin.updateActivity` | missing | port | `crates/horizon-client/src/mobs/piglin.rs::zoglin_step` | | `HoglinAi.updateActivity` | missing | port | `crates/horizon-client/src/mobs/piglin.rs::update_activity` | | `HoglinAi.retreatFromNearestTarget` | missing | port | `crates/horizon-client/src/mobs/piglin.rs::retreat_from_nearest` | | `HoglinAi.setAvoidTarget` | missing | port | `crates/horizon-client/src/mobs/piglin.rs::set_avoid_target` | | `HoglinAi.piglinsOutnumberHoglins` | missing | port | `crates/horizon-client/src/mobs/piglin.rs::piglins_outnumber_hoglins` | The notes said these behaviours were absent ("no grunt", "no retreat activity", "not drawn here"), and the tree says otherwise: - `witch_magic_particles` is `Witch.handleEntityEvent(15)` — `nextInt(35) + 10` purple puffs over the head, the count drawn again every pass as the Java loop condition does — and `game/remote.rs:3949` hands it every witch entity event. - `update_activity` takes the first valid activity and voices the one it moved to; `hoglin_sound` is the angry grunt in a fight and the retreat grunt when avoiding or converting, else ambient. It serves `HoglinAi`, `PiglinAi` and `PiglinBruteAi`, and `mobs/ai.rs` runs it after the brain. - `retreat_from_nearest` picks the nearest of the new target, the avoid target and the attack target (strictly closer wins) and retreats it; `set_avoid_target` forgets the attack target and the walk and avoids that entity for a 5 to 20 second retreat drawn from the level random. - `piglins_outnumber_hoglins` is the adult count rule (`piglins > hoglins + 1`). **Notes repaired** — the eight rows still missing name the code that decides them: - `Creaking.canUsePortal`: `game/nether_portal.rs::mob_can_use_portal` tests alive, no mount, not ridden, the guest-ride rule and the wither — nothing about the heart. - `Creaking.CreakingPathNavigation.createPathFinder`, `Creaking.HomeNodeEvaluator.getPathType`: `m.extra.home` is read for damage, tearing down and the save, never by the pathfinder; nothing blocks a node more than 32 blocks from the heart. - `Breeze.emitJumpTrailParticles`, `emitGroundParticles`: `mobs/breeze.rs` has no particle call at all, only `dangerous_block`. - `Strider.canAddPassenger`: boarding goes through `mobs/riders.rs::start_riding`, which tests the mount and the cooldown only, so the eye-in-lava refusal has no counterpart. - `Vex.restoreFrom`: no mob `restoreFrom` exists. - `AbstractCubeMob.onSyncedDataUpdated`: `mobs/living.rs` takes dimensions from the mob's own size and `game/remote.rs` applies no cube size, so a spawn or data update never resizes one. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-003.tsv 149 rows, no problems. ``` **Proven:** all six verdicts and the eight notes; every cited fn resolves under map-check, and each behaviour claim is read at the cite — `hoglin_sound`'s branches, `retreat_from_nearest`'s three candidates, `witch_magic_particles`'s loop, `mob_can_use_portal`'s tests. **Not proven:** the six ports are not wired end to end here — e.g. `update_activity`'s voice reaches the audio only through `MobEvent`s, which I did not trace to playback. The eight gaps stay gaps; I did not show any of them cannot be ported. --- <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: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#7468
No description provided.