Posted May 21, 20205 yr Hey, In my custom entity, I set its rotations to 0: if (entity.getPosX() % 1 != 0.0D || entity.getPosY() % 1 != 0.0D || entity.getPosZ() % 1 != 0.0D || entity.rotationYaw != 0.0F || entity.rotationPitch != 0F || entity.rotationYawHead != 0.0F) { entity.moveToBlockPosAndAngles(entity.getPosition(), 0.0F, 0.0F); entity.setRotationYawHead(0.0F); } But sometimes, the entity is still rotated with a yaw of ~35°. I made an item to check those rotations in game and it says they are all 0.0F. EDIT: I rechecked and there are two chat messages, idk which one is the server ? But the first one gives nonnull yaw while the second one gives 0.0F Edited May 21, 20205 yr by QuantumSoul
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.