Meldexun Posted August 30, 2019 Posted August 30, 2019 I want every 5 seconds to randomly rotate my entity. So i added this to my entity class: @Override public void onUpdate() { if (!world.isRemote && world.getTotalWorldTime() % 100 == 0) { this.rotationYaw = world.rand.nextFloat() * 360F; } System.out.println(this.rotationYaw); } But the problem is that the rotation is not synced correctly with the client. It gives me 2 different rotations. Any idea why it doesn't sync correcly? 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.