Posted March 14, 201510 yr I have some armor, that when you put on the full set it activates some animations. I have an animation that only activates when off the ground. player.onGround works perfectly when in single player but when one player views another player with the armor on, it activates the falling animation, because player.onGround is not synced between clients. That is not what I want to happen. I can't think of another way to check if the player is on the ground. I tried checking if the block beneath the player is air, but it doesn't work that well because you could be standing on the very edge of a block. I also use player.motionY and player.capabilties.isFlying in the animation. But then again, that is not synced between clients. I want to avoid using packets for this because I don't want to send too many of them just for the animation. You can find the source here: https://github.com/FiskFille/TransformersMod/blob/master/src/main/java/fiskfille/tf/client/model/transformer/ModelPurge.java/#L550 - gegy1000
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.