"Attempt to find path" starts to lag VERY badly if it cannot find a valid path but try's follow anyway

Started by Leobaker on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 21:05, 20. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Attempt to find path" starts to lag VERY badly if it cannot find a valid path but try's follow anyway

so uh.... any ideas? cause i don't really know what to do and i kinda need this for the mob am working on as its basicly the Original Verison of Herobrine called "White Eyes" before anyone actually came up with Herobrine since White Eyes was the original thing that inspired the Idea for Herobrine

Last seen on 21:05, 20. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
but yea, so, if am in this…
Wed, 03/27/2024 - 22:33

but yea, so, if am in this tunnel i dug and i go in and it doesn't decide to make a path into the tunnel but just follows from above, Thats where the issue starts and begins to lag very badly

Last seen on 21:05, 20. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Considering i do not want to…
Wed, 03/27/2024 - 22:40

Considering i do not want to upload an image to a random website just to put the picture of the procedure here i'll at least explain what it does

First Checks for Entity in a 100 square radius - Then it does an IF do else where it first checks - if the player does not exist in a 35 cube radius and if the player doesn't exist, it checks for entity of type player then makes the Mob try to find a path to the player and follow

the ELSE part of it simply makes the mob stop moving if a player is detected in a 35 Cube radius

Last seen on 21:05, 20. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Since the Mob is ment to…
Wed, 03/27/2024 - 22:42

Since the Mob is ment to basicly stalk the player from a distance as one of its main things it does

Last seen on 21:05, 20. Apr 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also the Mob is a Flying…
Wed, 03/27/2024 - 23:05

Also the Mob is a Flying Entity which could be part of the issue for the path finding maybe possibly?

Last seen on 05:45, 27. Apr 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Checking 100 blocks every…
Thu, 03/28/2024 - 04:32

Checking 100 blocks every tick for entities is bound to cause lag.