Jump to content

Make entity walk to coordinates instead of teleport (1.16.x)


Recommended Posts

I've been searching through the Entity class and the internet, but I can't seem to find an answer. How do I make a mob walk to a location like it would towards a mob? setPosition immediately teleports it and tryMoveToXYZ tells me it can't find the getNavigator method from Entity.java.

Edited by yaboytommy123
Link to comment
Share on other sites

take a look at LivingEntity it's the super class for all Entities like Pig, Cow, ...

I remember there was a method to set the position that the entity walks/move to. Unfortunately I'm not at my PC, so I can't look into the code, but you could check out the WalkGoals

Edited by Luis_ST
  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.