entity loses his ability to walk after attempt to find path

Started by Darknessay on

Topic category: Help with MCreator software

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity loses his ability to walk after attempt to find path

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)

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Don't use entity tick…
Tue, 01/14/2025 - 23:59

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.

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Im already fixed that issue…
Fri, 01/17/2025 - 02:22

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) 

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I couldn't really tell you…
Sat, 01/18/2025 - 18:15

I couldn't really tell you without seeing how you built your procedures