mojira.dev
MC-305695

Piglin spawn eggs spawn Piglins without "hunted_recently" Cooldown

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:

  1. Use a Piglin Spawn Egg to spawn a Piglin.

  2. Immediately after spawning, have an adult Hoglin within its detection range (~16 blocks).

  3. 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.

AnonAya09081227

(Unassigned)

Unconfirmed

(Unassigned)

26.1 Snapshot 3

Retrieved