Piglins spawned using a Piglin Spawn Egg(including those placed by players or dispensed) are missing the minecraft:hunted_recently memory data upon spawning.
As a result, these piglins immediately and attack nearby adult Hoglins, bypassing the intended cooldown period.
Piglins spawned monster spawner, /summon command (without NBT override), or natural generation do have this cooldown and behave correctly.
Steps to reproduce the issue:
Use a Piglin Spawn Egg to spawn a Piglin.
Immediately after spawning, have an adult Hoglin within its detection range (~16 blocks).
Observe the Piglin's behavior.
Expected result:
The newly spawned Piglin should have a randomized“hunted_recently” cooldown (as seen in its entity data), and should not immediately initiate an attack on the Hoglin.
Actual result:
The Piglin spawned from the egg immediately enters“hunting” mode and attacks the Hoglin, lacking the intended cooldown.
Attachments
Comments 0
No comments.