Mobs seem to stop utilizing their AI while their data is being modified?
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.
2020-05-11, 03:46 AM
2021-01-19, 08:48 AM
2020-05-11, 05:47 PM
0
1
-