April 28, 20169 yr I have a bit of code which I use to make my entity hover in air. The entity position is calculated by rayTrace of caster cursor pointer and set by setPositionAndRotation. Everything is good, but server thinks it's hacking and kick entity if it's player. I researched that code responsible for this mechanism is located in NetHandlerPlayServer.processPlayer. If the hasMoved boolean would be public, that would be easy to workaround. I also notice that this "bit of code" is called on both sides.
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.