Posted March 26, 20178 yr So I'm working on a horse cart that follows the horse as it moves (obviously) Although Im having alot of trouble on getting the movement smooth and correct. Here is where I handle the entity movement: https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L58 Representation of weirdness: https://gfycat.com/HighDeadGoral
March 27, 20178 yr Author So I made it both sides but it still seems to be choppy. Its funny because I tried making the cart ride the horse and used the same calculated for its position and it was smooth. Any idea how 'riding' an entity would make it differ? https://gfycat.com/EachSingleIberianemeraldlizard
March 27, 20178 yr Author Oh its the same link as above, https://github.com/BeardlessBrady/Carts-Mod/blob/master/src/main/java/gunn/modcarts/mod/entity/EntityHorseCart.java#L61
March 27, 20178 yr Author Slightly confused here. This is changed when the player right clicks the cart well on a horse, does that not effect both client and server? EDIT: So I tested to see if when there is an attached entity the isAttached method returns true. It returns true for both client and server so not sure whats causing the choppy movement Edited March 27, 20178 yr by BeardlessBrady
March 27, 20178 yr Where you register your entity, you should probably register it so that it sends velocity updates.
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.