Posted August 31, 20178 yr How do I set player to be always sneaking? Minecraft.getMinecraft().player.setSneaking(true); Doesn't appear to be working. Edited August 31, 20178 yr by MGlolenstine Wrong code line
August 31, 20178 yr Author Just now, Alpvax said: You need to set it on the server as well as the client. Is there a packet I can send to server?
August 31, 20178 yr Where are you calling this from? I imagine it is bundled in with other stuff (probably in the datawatcher). Look through the existing code, look for where the `isSneaking` is declared and see if there is a `setSneaking` method. I'm sorry but I do not currently have access to the source.
August 31, 20178 yr Author Just now, Alpvax said: Where are you calling this from? I imagine it is bundled in with other stuff (probably in the datawatcher). Look through the existing code, look for where the `isSneaking` is declared and see if there is a `setSneaking` method. I'm sorry but I do not currently have access to the source. Thanks!
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.