#NMS; 1.17.1 | Pathfindergoal doesn`t work properly

1 messages · Page 1 of 1 (latest)

jade basin
#

I want all zombies to follow and attack players with the following conditions:

  1. If they are running and the distance is <= 80
  2. If they are walking and the distance is <= 40
  3. If they are sneaking and the distance is <= 10

I use this code: https://pastebin.com/D8bHnMq7
But when I assign my pathfinder to a zombie, it just look at me and do nothing.

unborn coyote
#

You should use Mojang mappings, going to make this a million times easier

#

But, is anything being printed?

jade basin
#

multiple times

unborn coyote
# jade basin wdym

Mojang mappings will help you figure out what things are called, instead of everything being called "a", "b", "c", etc

#

Is c() being called at all?

jade basin
#

but it only prints b

#

from the b() method

unborn coyote
#

Well if c() isn't being called then your target isn't going to be set

#

Assuming that's what getNavigation().a() is supposed to do I guess

jade basin
#

as I know

unborn coyote
#

Yeah so if c() is never being called he's just gonna stand there

#

If you had Mojang mappings most of these would have readable names

jade basin
#

where can I find them

unborn coyote
jade basin
# unborn coyote <https://www.spigotmc.org/threads/spigot-bungeecord-1-17-1-17-1.510208/> In the...

When choosing to use the 'Mojang Mappings', it is absolutely imperative that you are aware of the conditions attached to them as well as the Mojang EULA. These are not restrictions you can simply ignore. In particular you may only 'use the mappings for development purposes'. This means that you must only use the remapped-mojang jar for development and must remap your plugin prior to distribution. For those not using Maven you can download SpecialSource to help you do this here, and we encourage the creation of instructions/tools for other build systems.

How can I remap my plugin?