mojira.dev
MC-296130

Zombified piglins do not always forgive the player after they die, even if forgiveDeadPlayers is true

When I die to a Zombified piglin, they continue to attack me when i go into the nether. I tried making sure the rule was set to forgive dead players and it was true. I tried relogging multiple times but it would not work.

To reproduce

  1. /gamerule forgiveDeadPlayers true

  2. /gamerule commandBlockOutput false

  3. /forceload add ~ ~

  4. /setblock ~ ~ ~ minecraft:repeating_command_block{auto: 1b, Command: "execute as @e[type=minecraft:zombified_piglin] if data entity @s AngryAt run effect give @s minecraft:glowing 1"}

  5. /execute in minecraft:the_nether run teleport @s ~ 129 ~

  6. Find a good area with several groups of zombified piglins at varying distances from the player (fly around in spectator, switch to creative to get mobs to spawn)

  7. Once you’ve found a good area, press F3+C to copy your location to the clipboard

  8. Go into survival mode

  9. Punch a zombified piglin and let them kill you

  10. Paste the command into the chat to get back to the area

You will likely notice that some of the zombified piglins further from your death location are still glowing, indicating they still have aggro on you. Depending on the geography, they may pass this aggro onto the ones close to you, causing them to kill you again. If not, try again or try finding better geography.

Linked issues

Attachments

Comments 5

Please do not mark issues as private, unless your bug report is an exploit or contains information about your username or server.

Can confirm, I suspect some zombified piglins are not being ticked on the tick the player dies and thus retain their AngryAt tag. I will add reproduction steps to the description (edit: done).

It can also try to attack creative players. See MC-300900

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

The description of the game rule is this: “Angered neutral mobs stop being angry when the targeted player dies nearby.“

The mobs you are describing were not nearby.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

The game rule is not very useful if “pack” neutral mobs effectively ignore it some of the time. Perhaps someone will devise a datapack workaround for this issue- most likely it would involve storing the time an angry zombified piglin was last loaded and checking it against the time its target last died.

Kay

(Unassigned)

Confirmed

Platform

Important

Mob behaviour

1.21.5

Retrieved