I want to set the direction this minecart is facing: Code: minecart.setYaw(28f); minecart = worldName.spawn(rideLocation, Minecart.class); I looked on the minecart spigot docs, but could not find anything about direction. This does not work. (setting the yaw of the location)
So do I change the yaw of the location? Because that does not work either The minecart always faces negative/positive x EDIT by Moderator: merged posts, please use the edit button instead of double posting.
@olsyboy If you want to change the direction of the minecart, you cant use pitch and yaw. Try getting the minecarts location, get its direction, and set it's direction(vector) to that of where you want it to be facing.