I am making a adventure map where a zombie follows you for a long time. When i spawned him the game lagged.
Linked issues
is duplicated by 1
Comments 5
Maybe dupes or relates to MC-17630?
Actually, Kumasasa, it's range^3^
, since pathfinding works in 3D, which is how come zombies will pathfind up stairs rather than taking an easier route to get to the right spot on the floor below the player. Also I believe that the range is a radius, so it would actually be (2*range + 1)^3^
, but since there are only 256 blocks vertically, it gets limited to (2*range +1)^2^ * (lowest of 256 or range)
(assuming the zombie never goes outside of the vertical boundaries) which in this case makes it just a bit over a million blocks to compute.
Probably because the zombie needs to path find all 999 blocks?