mojira.dev
MC-312059

Recently attacked zombified piglins cannot be pacified using `/data modify`, even though their allies can

Zombified Piglins that are angered indirectly (Hitting a different Zombified Piglin) can have their angry_at removed and their anger_end_time set to 0, and they will pacify and no longer attack the player.
However, when we run the commands to remove angry_at and set anger_end_time to 0 on Zombified Piglins that were angered directly (Hit directly) the data does remove and get set. But they remain angry at the player.

My assumption was that it was due to last_hurt_by_mob, last_hurt_by_player, or last_hurt_by_player_memory_time. But even changing these values offers no resolution.

Linked issues

Attachments

Comments 1

Can confirm in 26.4 Snapshot 1. Command used in the video is /execute as @n[type=minecraft:zombified_piglin,limit=2] run data merge entity @s {anger_time:0,angry_at:[],anger_end_time:0}, but as the reporter stated, specifying additional fields does not help. The command works after the world is reloaded, so some non-serialized data is definitely involved.

Modifying an entity’s data during its lifetime is generally considered unsupported behavior, but I’ll let this one through to Mojang due to the impact of the issue. (Although, long-term, dedicated /aggravate and /pacify commands would be the best way to support this functionality.)

CurtisDoesADig

(Unassigned)

Confirmed

Platform

Low

Mob behaviour

26.3, 26.4 Snapshot 1

Retrieved