#NMS Pathfinding & Entities

1 messages · Page 1 of 1 (latest)

thin ore
#

bukkitPlayer is just your player

#

are u new to spigot or already somehow interdimate

#

since that was pseudocode

#

just get ur Player ( which is from bukkit api )
and use that pseudocode

#

i think that a goal for that

#

yes

#

once the entity is created

#

u can via custom goal

#

go watch that video
heres the link again: https://www.youtube.com/watch?v=Fnonn5chXk4

create custom goal

Custom pathfinder goals is here! I went very in-depth the best way I could to explain how custom pathfinders work. I hope you all enjoy and understand the video :D Thanks for watching!

P.S
Sorry about the damn zombie noise in the background forgot I had my mc sound on :(

Want more videos?
Become a Patreon support to gain access to more videos!...

▶ Play video
#

and i personnaly am doing

  1. if targeting is null - get all entities in x blocks radius
  2. is still null ---^^
  3. when not null, set x,y,z positions
  4. navigate to

all of this will be explained in the video

#

if u return true
it will move onto another void
i think its canUse -> start -> canContinueToUse -> stop

#

all in video again

#

the video also guides u , how to create goal which follows player
which is probably what u want
u will just have to modify it, since its for pets system so it will be always following 1 player, not nearest

#

if u need help with anything
u can feel free to dm meh
@crystal gust