DavidQF555 Posted August 27, 2020 Posted August 27, 2020 I am making a custom entity that extends a SquidEntity, but I cannot get it to move to where I want. Squids normally only move randomly so their travel method looks like: public void travel(Vector3d p_213352_1_) { this.move(MoverType.SELF, this.getMotion()); } and the random movement looks like: this.squid.setMovementVector(f1, f2, f3); I'm trying to use the tryMoveToXYZ method from the navigator. Changing the travel method to: @Override public void travel(Vector3d vec) { setMovementVector(vec.subtract(getPositionVec()).normalize()); super.travel(vec); } makes the squid go in weird directions and it just doesn't stop until it hits a wall. I replaced the PathNavigator with a SwimmerPathNavigator. How could I make the travel method actually work for navigating to where I want it to? Quote
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.