[GH-ISSUE #3513] CRUCIAL: Player-visible port gaps: Monsters and bosses (53) #994

Closed
opened 2026-11-02 15:43:25 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @kacpherek on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3513

Originally assigned to: @xFedeT on GitHub.

Rows from the port ledger's verdict map (tools/port_map/*.tsv, #3139) that a player would notice: a vanilla 26.3 method Horizon doesn't port (missing) or ports only in part (gap). Each row came from reading the vanilla method and Horizon's code. None was checked in game, and about 1 in 12 map rows is wrong, so read both sides before fixing: python3 tools/port_ledger.py where Class.method prints the vanilla source and the Rust side (it needs #3139).

Tick a row when it is fixed, or when it turns out wrong (say so in a comment). Rows that match an open issue come first, then missing behaviour, then partial ports.

  • PiglinAi.isPlayerHoldingLovedItem (missing): piglins do not turn to look at a player holding gold, so that look never happens. horizon-client/src/game/piglins.rs (fixed in #3942)
  • HoglinAi.piglinsOutnumberHoglins (missing): the count of piglins against hoglins that starts a retreat is not kept. horizon-client/src/mobs/piglin.rs (fixed in #3942)
  • HoglinAi.retreatFromNearestTarget (missing): no retreat from the nearest piglin or hoglin target (part of the missing retreat activity). horizon-client/src/mobs/piglin.rs (fixed in #3942)
  • HoglinAi.setAvoidTarget (missing): no avoid target is set, so a hoglin never backs off after a piglin hit (retreat activity missing). horizon-client/src/mobs/piglin.rs (fixed in #3942)
  • PiglinAi.hoglinsOutnumberPiglins (missing): no retreat decision, so hoglins outnumbering piglins changes nothing. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.setAvoidTargetAndDontHuntForAWhile (missing): piglins hit by a hoglin group do not stop attacking and back off. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinBruteAi.playActivitySound (missing): no angry sound when a piglin brute starts a fight (entity.piglin_brute.angry is not played). horizon-client/src/mobs/piglin.rs (done on main)
  • Breeze.emitGroundParticles (missing): no block-dust puffs at its feet while it stands, shoots, inhales or lands; Horizon only draws the random number. horizon-client/src/mobs/breeze.rs (fixed in #4539)
  • Breeze.emitJumpTrailParticles (missing): no block-dust trail behind a long jump (about 5 ticks of particles). horizon-client/src/mobs/breeze.rs (fixed in #4539)
  • Creeper.spawnLingeringCloud (missing): a creeper that explodes with potion effects leaves no lingering area cloud. horizon-client/src/mobs/hostile.rs
  • Enderman.hurtWithCleanWater (missing): a thrown splash water potion does nothing to an Enderman; vanilla hurts it. horizon-client/src/mobs/enderman.rs (fixed in #3949)
  • HoglinAi.initRetreatActivity (missing): hoglins never run from piglins; the retreat activity (avoid target, 1.3 speed) does not exist here. horizon-client/src/mobs/piglin.rs (fixed in #3942)
  • HoglinAi.updateActivity (missing): no grunt when a hoglin switches activity (angry or retreat); only the ambient roll plays. horizon-client/src/mobs/piglin.rs (fixed in #3942)
  • PiglinAi.babySometimesRideBabyHoglin (missing): baby piglins never ride baby hoglins. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.broadcastRetreat (missing): piglins do not warn others to retreat from a hoglin group. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.getAvoidTarget (missing): no avoid target exists, so piglins do not back away from hoglins they are outnumbered by. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.getSoundForActivity (missing): piglins never play their jealous, retreat, celebrate or admiring-item ambient sounds. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.initRetreatActivity (missing): piglins never retreat from hoglins or other avoid targets; they keep fighting or idling instead. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.initRideHoglinActivity (missing): baby piglins never ride baby hoglins. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.isBabyRidingBaby (missing): baby piglins never ride baby hoglins, so no piglin dismounts for that reason. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.retreatFromNearestTarget (missing): piglins do not retreat from a hoglin group. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.wantsToStopFleeing (missing): no retreat state, so nothing ends one. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinAi.wantsToStopRiding (missing): baby piglins never ride baby hoglins, so no dismount rule runs. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinBruteAi.maybePlayActivitySound (missing): a piglin brute never growls while it fights; the angry sound is not in Horizon. horizon-client/src/mobs/piglin.rs (done on main)
  • Pillager.wantsItem (missing): the raid banner pickup check is missing (see pickUpItem). horizon-client/src/mobs/illager.rs
  • SulfurCube.applyHorizontalHitAngleScale (missing): a hit with a block does not turn the launch by the attacker's aim; knockback takes no aim. horizon-client/src/mobs/sulfur_cube.rs
  • SulfurCube.applyVerticalHitAnglePowerTransfer (missing): the vertical share of a hit is not moved by the attacker's aim, so launches from above or below differ. horizon-client/src/mobs/sulfur_cube.rs
  • SulfurCube.primeWhenOnPoweredPosition (missing): an explosive cube sitting on a powered block does not prime itself; no signal check here. horizon-client/src/mobs/sulfur_cube.rs
  • Zoglin.updateActivity (missing): a zoglin that starts a fight does not play its angry grunt (zoglin.angry). horizon-client/src/mobs/piglin.rs (fixed in #4539)
  • AbstractCubeMob.push (missing): a slime or magma cube that bumps into an iron golem does not hurt it. horizon-client/src/mobs/cube.rs
  • Creaking.knockback (missing): a creaking that a player looks at still gets shoved by hits; vanilla ignores knockback while it cannot move (Mob::knockback has no check). horizon-client/src/mobs/creaking.rs (fixed in #3949)
  • DragonLandingPhase.doClientTick (missing): while the dragon comes down to land its head breathes a fan of dragon-breath particles; none are spawned. horizon-client/src/game/dragon.rs (fixed in #4539)
  • DragonSittingFlamingPhase.doClientTick (missing): during the first 10 ticks of a flame attack the head breathes dragon-breath particles in a fan; none are spawned. horizon-client/src/game/dragon.rs (fixed in #4539)
  • EndCrystal.defineSynchedData (missing): multiplayer guests never get a crystal's beam target, and the base is always shown (remote spawn ignores show_bottom). horizon-client/src/game/dragon.rs
  • Enderman.dropCustomDeathLoot (missing): an Enderman killed while holding a block drops no block. horizon-client/src/mobs/enderman.rs
  • Piglin.getAmbientSound (missing): piglins always play their plain ambient grunt; the jealous, retreat, celebrate and admiring sounds of their activity never play. horizon-client/src/game/piglins.rs (fixed in #3942)
  • PiglinBrute.wantsToPickUp (missing): a piglin brute does not pick up a golden axe lying on the ground; piglin_pickups only serves piglins. horizon-client/src/mobs/piglin.rs
  • Pillager.pickUpItem (missing): during a raid a pillager does not pick up a white banner lying on the ground. horizon-client/src/mobs/illager.rs (fixed in #3943)
  • Witch.getDamageAfterMagicAbsorb (missing): witches take full magic, indirect magic, sonic boom and thorns damage; vanilla cuts it to 15% and ignores its own hits. horizon-client/src/mobs/witch.rs
  • Witch.handleEntityEvent (missing): a witch shows purple magic puffs about once a minute while idle; not drawn here (the RNG draw is kept in ai_step). horizon-client/src/mobs/witch.rs (fixed in #4539)
  • Zoglin.getAmbientSound (missing): a zoglin with a target grunts its ambient sound, not the angry one (zoglin.angry). horizon-client/src/mobs/piglin.rs (fixed in #3949)
  • AbstractCubeMob.dealDamage (gap): only the player touch hits; a mob target such as an iron golem takes no damage. horizon-client/src/mobs/cube.rs::ai_step
  • HoglinAi.getSoundForActivity (gap): the retreat grunt near repellents or while retreating is missing; the angry grunt while a target is set is ported. horizon-client/src/mobs/ai.rs::play_ambient (fixed in #3949)
  • HoglinAi.initFightActivity (gap): melee cooldown is 20 ticks; vanilla is 40 for adults and 15 for babies. horizon-client/src/mobs/piglin.rs::register_hoglin
  • HoglinAi.initIdleActivity (gap): hoglins do not walk away from adult piglins within 8 blocks; the rest of the idle is there. horizon-client/src/mobs/piglin.rs::register_hoglin (fixed in #3942)
  • HoglinAi.onHitTarget (gap): no retreat when piglins outnumber hoglins; the hit only attacks. horizon-client/src/mobs/piglin.rs::hoglin_hurt_target (fixed in #3942)
  • StartAdmiringItemIfSeen.create (gap): a piglin takes a wanted item and admires it in hand; it does not stop to admire one it only sees on the ground. horizon-client/src/game/piglins.rs::Game::piglin_pickups
  • Zoglin.initFightActivity (gap): melee cooldown is 20 ticks; vanilla is 40 for adults and 15 for babies, so zoglins hit faster. horizon-client/src/mobs/piglin.rs::register_zoglin
  • DragonDeathPhase.doClientTick (gap): the phase's explosion puff every 10 ticks through the whole dying flight is missing; only the tickDeath bursts at 180 to 200 are drawn. horizon-client/src/game/dragon.rs::Game::tick_dragon_death (fixed in #4539)
  • DragonSittingAttackingPhase.doClientTick (gap): the growl is played once at the start of the 40 ticks; vanilla replays it on every client tick. horizon-client/src/game/dragon.rs::Game::tick_phase (fixed in #4539)
  • Hoglin.hurtServer (gap): a hit ends the pacified state and the attacker is targeted, but a hit hoglin never retreats from piglins (no AVOID activity). horizon-client/src/mobs/piglin.rs::hoglin_repellent (fixed in #3942)
  • Piglin.hurtServer (gap): a hit by a player does not stop an admiring piglin or start its admiring-disabled wait; babies do not flee the attacker. horizon-client/src/mobs/piglin.rs::celebrate (fixed in #3942)
  • Strider.getDismountLocationForPassenger (gap): no lava check and no dismount floor or pose test; a rider can land in lava or in a blocked spot. horizon-client/src/game/mounts.rs::Game::dismount_mount
Originally created by @kacpherek on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3513 Originally assigned to: @xFedeT on GitHub. Rows from the port ledger's verdict map (`tools/port_map/*.tsv`, #3139) that a player would notice: a vanilla 26.3 method Horizon doesn't port (**missing**) or ports only in part (**gap**). Each row came from reading the vanilla method and Horizon's code. None was checked in game, and about 1 in 12 map rows is wrong, so read both sides before fixing: `python3 tools/port_ledger.py where Class.method` prints the vanilla source and the Rust side (it needs #3139). Tick a row when it is fixed, or when it turns out wrong (say so in a comment). Rows that match an open issue come first, then missing behaviour, then partial ports. - [x] `PiglinAi.isPlayerHoldingLovedItem` (missing): piglins do not turn to look at a player holding gold, so that look never happens. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `HoglinAi.piglinsOutnumberHoglins` (missing): the count of piglins against hoglins that starts a retreat is not kept. `horizon-client/src/mobs/piglin.rs` (fixed in #3942) - [x] `HoglinAi.retreatFromNearestTarget` (missing): no retreat from the nearest piglin or hoglin target (part of the missing retreat activity). `horizon-client/src/mobs/piglin.rs` (fixed in #3942) - [x] `HoglinAi.setAvoidTarget` (missing): no avoid target is set, so a hoglin never backs off after a piglin hit (retreat activity missing). `horizon-client/src/mobs/piglin.rs` (fixed in #3942) - [x] `PiglinAi.hoglinsOutnumberPiglins` (missing): no retreat decision, so hoglins outnumbering piglins changes nothing. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.setAvoidTargetAndDontHuntForAWhile` (missing): piglins hit by a hoglin group do not stop attacking and back off. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinBruteAi.playActivitySound` (missing): no angry sound when a piglin brute starts a fight (entity.piglin_brute.angry is not played). `horizon-client/src/mobs/piglin.rs` (done on main) - [x] `Breeze.emitGroundParticles` (missing): no block-dust puffs at its feet while it stands, shoots, inhales or lands; Horizon only draws the random number. `horizon-client/src/mobs/breeze.rs` (fixed in #4539) - [x] `Breeze.emitJumpTrailParticles` (missing): no block-dust trail behind a long jump (about 5 ticks of particles). `horizon-client/src/mobs/breeze.rs` (fixed in #4539) - [ ] `Creeper.spawnLingeringCloud` (missing): a creeper that explodes with potion effects leaves no lingering area cloud. `horizon-client/src/mobs/hostile.rs` - [x] `Enderman.hurtWithCleanWater` (missing): a thrown splash water potion does nothing to an Enderman; vanilla hurts it. `horizon-client/src/mobs/enderman.rs` (fixed in #3949) - [x] `HoglinAi.initRetreatActivity` (missing): hoglins never run from piglins; the retreat activity (avoid target, 1.3 speed) does not exist here. `horizon-client/src/mobs/piglin.rs` (fixed in #3942) - [x] `HoglinAi.updateActivity` (missing): no grunt when a hoglin switches activity (angry or retreat); only the ambient roll plays. `horizon-client/src/mobs/piglin.rs` (fixed in #3942) - [x] `PiglinAi.babySometimesRideBabyHoglin` (missing): baby piglins never ride baby hoglins. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.broadcastRetreat` (missing): piglins do not warn others to retreat from a hoglin group. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.getAvoidTarget` (missing): no avoid target exists, so piglins do not back away from hoglins they are outnumbered by. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.getSoundForActivity` (missing): piglins never play their jealous, retreat, celebrate or admiring-item ambient sounds. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.initRetreatActivity` (missing): piglins never retreat from hoglins or other avoid targets; they keep fighting or idling instead. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.initRideHoglinActivity` (missing): baby piglins never ride baby hoglins. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.isBabyRidingBaby` (missing): baby piglins never ride baby hoglins, so no piglin dismounts for that reason. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.retreatFromNearestTarget` (missing): piglins do not retreat from a hoglin group. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.wantsToStopFleeing` (missing): no retreat state, so nothing ends one. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinAi.wantsToStopRiding` (missing): baby piglins never ride baby hoglins, so no dismount rule runs. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [x] `PiglinBruteAi.maybePlayActivitySound` (missing): a piglin brute never growls while it fights; the angry sound is not in Horizon. `horizon-client/src/mobs/piglin.rs` (done on main) - [ ] `Pillager.wantsItem` (missing): the raid banner pickup check is missing (see pickUpItem). `horizon-client/src/mobs/illager.rs` - [ ] `SulfurCube.applyHorizontalHitAngleScale` (missing): a hit with a block does not turn the launch by the attacker's aim; knockback takes no aim. `horizon-client/src/mobs/sulfur_cube.rs` - [ ] `SulfurCube.applyVerticalHitAnglePowerTransfer` (missing): the vertical share of a hit is not moved by the attacker's aim, so launches from above or below differ. `horizon-client/src/mobs/sulfur_cube.rs` - [ ] `SulfurCube.primeWhenOnPoweredPosition` (missing): an explosive cube sitting on a powered block does not prime itself; no signal check here. `horizon-client/src/mobs/sulfur_cube.rs` - [x] `Zoglin.updateActivity` (missing): a zoglin that starts a fight does not play its angry grunt (zoglin.angry). `horizon-client/src/mobs/piglin.rs` (fixed in #4539) - [ ] `AbstractCubeMob.push` (missing): a slime or magma cube that bumps into an iron golem does not hurt it. `horizon-client/src/mobs/cube.rs` - [x] `Creaking.knockback` (missing): a creaking that a player looks at still gets shoved by hits; vanilla ignores knockback while it cannot move (Mob::knockback has no check). `horizon-client/src/mobs/creaking.rs` (fixed in #3949) - [x] `DragonLandingPhase.doClientTick` (missing): while the dragon comes down to land its head breathes a fan of dragon-breath particles; none are spawned. `horizon-client/src/game/dragon.rs` (fixed in #4539) - [x] `DragonSittingFlamingPhase.doClientTick` (missing): during the first 10 ticks of a flame attack the head breathes dragon-breath particles in a fan; none are spawned. `horizon-client/src/game/dragon.rs` (fixed in #4539) - [ ] `EndCrystal.defineSynchedData` (missing): multiplayer guests never get a crystal's beam target, and the base is always shown (remote spawn ignores show_bottom). `horizon-client/src/game/dragon.rs` - [ ] `Enderman.dropCustomDeathLoot` (missing): an Enderman killed while holding a block drops no block. `horizon-client/src/mobs/enderman.rs` - [x] `Piglin.getAmbientSound` (missing): piglins always play their plain ambient grunt; the jealous, retreat, celebrate and admiring sounds of their activity never play. `horizon-client/src/game/piglins.rs` (fixed in #3942) - [ ] `PiglinBrute.wantsToPickUp` (missing): a piglin brute does not pick up a golden axe lying on the ground; piglin_pickups only serves piglins. `horizon-client/src/mobs/piglin.rs` - [x] `Pillager.pickUpItem` (missing): during a raid a pillager does not pick up a white banner lying on the ground. `horizon-client/src/mobs/illager.rs` (fixed in #3943) - [ ] `Witch.getDamageAfterMagicAbsorb` (missing): witches take full magic, indirect magic, sonic boom and thorns damage; vanilla cuts it to 15% and ignores its own hits. `horizon-client/src/mobs/witch.rs` - [x] `Witch.handleEntityEvent` (missing): a witch shows purple magic puffs about once a minute while idle; not drawn here (the RNG draw is kept in ai_step). `horizon-client/src/mobs/witch.rs` (fixed in #4539) - [x] `Zoglin.getAmbientSound` (missing): a zoglin with a target grunts its ambient sound, not the angry one (zoglin.angry). `horizon-client/src/mobs/piglin.rs` (fixed in #3949) - [ ] `AbstractCubeMob.dealDamage` (gap): only the player touch hits; a mob target such as an iron golem takes no damage. `horizon-client/src/mobs/cube.rs::ai_step` - [x] `HoglinAi.getSoundForActivity` (gap): the retreat grunt near repellents or while retreating is missing; the angry grunt while a target is set is ported. `horizon-client/src/mobs/ai.rs::play_ambient` (fixed in #3949) - [ ] `HoglinAi.initFightActivity` (gap): melee cooldown is 20 ticks; vanilla is 40 for adults and 15 for babies. `horizon-client/src/mobs/piglin.rs::register_hoglin` - [x] `HoglinAi.initIdleActivity` (gap): hoglins do not walk away from adult piglins within 8 blocks; the rest of the idle is there. `horizon-client/src/mobs/piglin.rs::register_hoglin` (fixed in #3942) - [x] `HoglinAi.onHitTarget` (gap): no retreat when piglins outnumber hoglins; the hit only attacks. `horizon-client/src/mobs/piglin.rs::hoglin_hurt_target` (fixed in #3942) - [ ] `StartAdmiringItemIfSeen.create` (gap): a piglin takes a wanted item and admires it in hand; it does not stop to admire one it only sees on the ground. `horizon-client/src/game/piglins.rs::Game::piglin_pickups` - [ ] `Zoglin.initFightActivity` (gap): melee cooldown is 20 ticks; vanilla is 40 for adults and 15 for babies, so zoglins hit faster. `horizon-client/src/mobs/piglin.rs::register_zoglin` - [x] `DragonDeathPhase.doClientTick` (gap): the phase's explosion puff every 10 ticks through the whole dying flight is missing; only the tickDeath bursts at 180 to 200 are drawn. `horizon-client/src/game/dragon.rs::Game::tick_dragon_death` (fixed in #4539) - [x] `DragonSittingAttackingPhase.doClientTick` (gap): the growl is played once at the start of the 40 ticks; vanilla replays it on every client tick. `horizon-client/src/game/dragon.rs::Game::tick_phase` (fixed in #4539) - [x] `Hoglin.hurtServer` (gap): a hit ends the pacified state and the attacker is targeted, but a hit hoglin never retreats from piglins (no AVOID activity). `horizon-client/src/mobs/piglin.rs::hoglin_repellent` (fixed in #3942) - [x] `Piglin.hurtServer` (gap): a hit by a player does not stop an admiring piglin or start its admiring-disabled wait; babies do not flee the attacker. `horizon-client/src/mobs/piglin.rs::celebrate` (fixed in #3942) - [ ] `Strider.getDismountLocationForPassenger` (gap): no lava check and no dismount floor or pose test; a rider can land in lava or in a blocked spot. `horizon-client/src/game/mounts.rs::Game::dismount_mount`
bsakaguchi 2026-11-02 15:43:25 +07:00
Author
Owner

@xFedeT commented on GitHub (Oct 31, 2026):

/claim

<!-- gh-comment-id:6543930852 --> @xFedeT commented on GitHub (Oct 31, 2026): /claim
Author
Owner

@xFedeT commented on GitHub (Oct 31, 2026):

🤖 Agent: xFedeT's AI agent (Claude Code). Each row of this issue was read against the vanilla method and the Rust it points to on main. Where the work stands:

Fixed by PRs, each checked against the Java

  • SulfurCube.applyHorizontalHitAngleScale, SulfurCube.applyVerticalHitAnglePowerTransfer: #5155. The three vanilla helpers were run on the real Vec2/Vec3/Mth classes for six blows (two from an arrow with its motion) and the Rust matches to 1e-9; it also makes a projectile knock a mob the way it travelled (dealDefaultKnockback), and mob_ai, arrow, damage_source, living_hurt, server_knockback and mob_attributes parity pass.
  • Creeper.spawnLingeringCloud: #5176, with a real-game GIF of a poisoned creeper leaving its cloud, and the ambient flag of a mob's effects kept as vanilla does.
  • SulfurCube.primeWhenOnPoweredPosition: #4368 (merged).

Already on main, the port map was behind (#5177 fixes it): HoglinAi.initFightActivity, Zoglin.initFightActivity (MeleeAttack 40 and 15), AbstractCubeMob.push, AbstractCubeMob.dealDamage, EndCrystal.defineSynchedData, Enderman.dropCustomDeathLoot, Strider.getDismountLocationForPassenger; Witch.getDamageAfterMagicAbsorb was ported and matches.

Wrong row: Pillager.wantsItem. Pillager.pickUpItem sends every BannerItem to super.pickUpItem first, and the only item wantsItem accepts (the white banner) is one, so it never runs.

Still open, on purpose: PiglinBrute.wantsToPickUp and StartAdmiringItemIfSeen.create. A mob's equipment is stored as an item id and a table of enchantments and trims (mobs/gear.rs), without the damage value and custom name that Mob.canReplaceCurrentItem compares (compareWeapons, then canReplaceEqualItem), and piglins have no brain here: picking up, admiring and bartering are Game code (piglin_pickups, piglin_wants), where StartAdmiringItemIfSeen needs the ADMIRING_ITEM, TIME_TRYING_TO_REACH_ADMIRE_ITEM and DISABLE_WALK_TO_ADMIRE_ITEM memories with the two stop behaviours. Doing them exactly means equipment that holds full item stacks (damage, name, components, NBT, drops) and the piglin item logic on a brain, which is a change of its own. Until then these two rows stay open rather than getting an approximation.

<!-- gh-comment-id:6545079211 --> @xFedeT commented on GitHub (Oct 31, 2026): 🤖 Agent: xFedeT's AI agent (Claude Code). Each row of this issue was read against the vanilla method and the Rust it points to on `main`. Where the work stands: **Fixed by PRs, each checked against the Java** - `SulfurCube.applyHorizontalHitAngleScale`, `SulfurCube.applyVerticalHitAnglePowerTransfer`: #5155. The three vanilla helpers were run on the real `Vec2`/`Vec3`/`Mth` classes for six blows (two from an arrow with its motion) and the Rust matches to 1e-9; it also makes a projectile knock a mob the way it travelled (`dealDefaultKnockback`), and `mob_ai`, `arrow`, `damage_source`, `living_hurt`, `server_knockback` and `mob_attributes` parity pass. - `Creeper.spawnLingeringCloud`: #5176, with a real-game GIF of a poisoned creeper leaving its cloud, and the ambient flag of a mob's effects kept as vanilla does. - `SulfurCube.primeWhenOnPoweredPosition`: #4368 (merged). **Already on `main`, the port map was behind** (#5177 fixes it): `HoglinAi.initFightActivity`, `Zoglin.initFightActivity` (`MeleeAttack` 40 and 15), `AbstractCubeMob.push`, `AbstractCubeMob.dealDamage`, `EndCrystal.defineSynchedData`, `Enderman.dropCustomDeathLoot`, `Strider.getDismountLocationForPassenger`; `Witch.getDamageAfterMagicAbsorb` was ported and matches. **Wrong row:** `Pillager.wantsItem`. `Pillager.pickUpItem` sends every `BannerItem` to `super.pickUpItem` first, and the only item `wantsItem` accepts (the white banner) is one, so it never runs. **Still open, on purpose:** `PiglinBrute.wantsToPickUp` and `StartAdmiringItemIfSeen.create`. A mob's equipment is stored as an item id and a table of enchantments and trims (`mobs/gear.rs`), without the damage value and custom name that `Mob.canReplaceCurrentItem` compares (`compareWeapons`, then `canReplaceEqualItem`), and piglins have no brain here: picking up, admiring and bartering are `Game` code (`piglin_pickups`, `piglin_wants`), where `StartAdmiringItemIfSeen` needs the `ADMIRING_ITEM`, `TIME_TRYING_TO_REACH_ADMIRE_ITEM` and `DISABLE_WALK_TO_ADMIRE_ITEM` memories with the two stop behaviours. Doing them exactly means equipment that holds full item stacks (damage, name, components, NBT, drops) and the piglin item logic on a brain, which is a change of its own. Until then these two rows stay open rather than getting an approximation.
Author
Owner

@xFedeT commented on GitHub (Oct 31, 2026):

🤖 Agent: the two rows I had left open are in #5295: PiglinBrute.wantsToPickUp (a golden axe only, through the shared looting loop) and StartAdmiringItemIfSeen.create with its two stop behaviours and ADMIRING_DISABLED. With #5155, #5176, #5177 and #5295 merged every row of this list is covered.

<!-- gh-comment-id:6546703560 --> @xFedeT commented on GitHub (Oct 31, 2026): 🤖 Agent: the two rows I had left open are in #5295: `PiglinBrute.wantsToPickUp` (a golden axe only, through the shared looting loop) and `StartAdmiringItemIfSeen.create` with its two stop behaviours and `ADMIRING_DISABLED`. With #5155, #5176, #5177 and #5295 merged every row of this list is covered.
Author
Owner

@ludovic111 commented on GitHub (Oct 31, 2026):

🤖 Agent: Closing as done: xFedeT's agent covered every remaining row with #5155, #5176, #5177 and #5295, all merged. Thanks!

<!-- gh-comment-id:6548619062 --> @ludovic111 commented on GitHub (Oct 31, 2026): 🤖 Agent: Closing as done: xFedeT's agent covered every remaining row with #5155, #5176, #5177 and #5295, all merged. Thanks!
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#994
No description provided.