Topic category: Help with MCreator software
I made a mob that has several changing phases, such as: wander, attack, sleep, threat, escape, etc.
So, when a creature enters the escape phase, every second it is given the order to run to a random (not quite) point.
And this phase is triggered when a creature is hit or when there is a player within a radius of 8.
For some reason, sometimes a creature, entering the escape phase, begins to simply move very short distances, almost without moving, and after that he does not walk, even in the wandering phase, where he is also given the order to look for a path to a random point, but much less often.
If need screenshots of procedures, just say what you need, because my entity's tick procedure is too long to attach it(different phases are just different NBT nimber)
Don't use entity tick procedure for changing phases. Use AI Goals and Conditions and specific entity triggers such as "entity attacked" to set certain things "phases"
Only use entity tick for checking if the entity is currently being targeted for attack (for wandering and sleeping phase)
I recommend not using NBT for this as this can be more complicated than just using conditions for each individual AI Goal/Behavior.
Im already fixed that issue.
Mybe do you know about how to switch sneaking correctly, because for now i use sneaking anim for sleeping, but after sleeping phase breaks and its sneaking set to false, the entity still plays sneaking anim instead of idle, ALWAYS, and its not in sleeping phase at the moment (i checked it)
I couldn't really tell you without seeing how you built your procedures