Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

 

 

  • Author

Doesnt this create a click on the current screen, so when I put MC in background, this simply clicks on the pause screen?

 

  • 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 by Anubis

  • 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

  • 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 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.