yaboytommy123 Posted March 3, 2022 Share Posted March 3, 2022 (edited) 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 March 3, 2022 by yaboytommy123 Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted March 4, 2022 Share Posted March 4, 2022 (edited) 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 March 4, 2022 by Luis_ST 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.