May affect older versions, have not tested
Mobs appear to stop all pathfinding and behavior in general while their data is being modified with commands.
One way to reproduce:
Create a function file called test:modify
containing the following text:
{{}}
data merge entity @s {IsImmuneToZombification:0b
}
scoreboard players add @s corrupt_time 1
execute as @s store result entity @s TimeInOverworld int 1.0 run scoreboard players get @s corrupt_time
Then, using either a repeating command block or the #minecraft:tick
function tag, loop the function every tick.
You should see that all piglins in the world stop moving completely due to their TimeInOverworld
tag being changed to a different value every tick.
Linked issues
is duplicated by 2
Comments 2
In that case I'd recommend closing MC-183316 as well.
Issues regarding changing internal NBT tags aren't accepted so I've closed this report as invalid. See https://bugs.mojang.com/browse/MC-66943?focusedCommentId=188032&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-188032