the conditional fleeing behavior of Piglins is broken.When a group of Piglins is outnumbered by nearby adult Hoglins, they no longer attempt to evade or maintain distance as intended. Instead, they incorrectly engage in combat.
This bug is newly introduced in 26.1 Snapshot 1.The behavior worked correctly in version 1.21.11, where Piglins would properly avoid groups of Hoglins larger than their own.
Steps to reproduce the issue:
Spawn 2 Hoglins and 1 Piglin.
Use the following command:
/damage @e[type=minecraft:piglin,limit=1] 0 minecraft:generic by @e[type=minecraft:hoglin,limit=1]Observe the Piglin's behavior without player interference.
Expected result(Per 1.21.1):
The single Piglin should assess the threat, avoid the Hoglins, and attempt to keep a distance. It should not initiate an attack.
Actual result in 26.1 Snapshot 1+:
The single Piglin will move toward the Hoglins and engage them in combat as if it were part of a larger, superior group.
Control Test:
Spawn 2 Piglins and 1 Hoglin. Observe that the Hoglin correctly flees, proving their side of the AI still works.
The bug is one-sided (Piglins broken, Hoglins functional), which is critical for developers to trace. It points to Piglin-specific code.
Attachments
Comments 0
No comments.