Posted January 10, 20214 yr I simply try to simulate the holding of the left mouse button to continuously break blocks, but with the ability to unfocuse the window. I found: KeyBinding.setKeyBindState(ClientProxy.mousePress.getKey(), keyDown); wich allows the wanted Key to be pressed, but requires the window to be focused. The other thing I found was: mc.player.swing(Hand.MAIN_HAND, true); resp. mc.player.swingArm(Hand.MAIN_HAND); But this only makes the wanted hand moving but without any influence on the surrounding. Looks funny, but is useless 😄 I call both commands in the ClientTickEvent and they were executed as expected. Any idea what I can do?
January 11, 20214 yr Author Doesnt this create a click on the current screen, so when I put MC in background, this simply clicks on the pause screen?
January 11, 20214 yr Author Yeah, but when I play on a Server, the game keeps running So looking in the Methode I need the playercontroler with clickBlock right? Edited January 11, 20214 yr by Anubis
January 11, 20214 yr Author Normally you can use F3 + T to reload resourses and keep the mouse clicked for using a cobble generator for example. But this requires mc to be focused and doesnt allow my computer to be used in an other context. I just want to allow my computer doing other stuff while simply breaking blocks in background. If the F3 + T combination is considert as cheating, then I am sorry for asking such questions her
January 11, 20214 yr Author Thanks for all. Sorry, I am no fan of cheating but I hate, when my PC is blocked for mc and I cant do other stuff like modding How can I close topic? Edited January 11, 20214 yr by Anubis
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.