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.

babukabarabuka

Members
  • Joined

  • Last visited

  1. I was wondering if there is an event that triggers when something gets printed to the console/logger. I couldn't find it but if there is a way, that would be convenient.
  2. I still get the headless environment error message on forge 1.16.5 any ideas?
  3. I want to be able to press buttons inside the server disconnected GUI and the Server select GUI from a client-side mod. I am playing on an SMP with a few other people, and we build lots of farms in which a lot of people afk. AFK-ing is fully allowed on the server, but my internet cuts out quite frequently, so I wanted to make a forge mod that would automatically reconnect (I know there is an autoreconnect mod for fabric, but we use forge mods on the client-side for a lot of things). I have tried mc.currentScreen.mouseClicked(x, y, 0); MinecraftForge.EVENT_BUS.post(new GuiScreenEvent.MouseClickedEvent.Pre(mc.currentScreen, x, y, 0)); , but I need a way to find the "back to server menu" button's location, as it changes depending on GUI scale. I also tried doing mouseClicked(x,y,0) for every 10th pixel, but that still didn't work, so maybe this just doesn't work. please help.
  4. I want to reset the player's block breaking progress at an arbitrary point in time, but I cannot cancel the block breaking event itself, as that is against the rules of the server I will use my mod on. mc.playerController.resetBlockRemoving(); only works 1/3rd of the time and i have no idea why. KeyBinding.setKeyBindState(mc.gameSettings.keyBindAttack.getKey() , false); and then waiting 0.5 seconds (ideally i want to wait much less) and then KeyBinding.setKeyBindState(mc.gameSettings.keyBindAttack.getKey() , true); also works 1/3rd of the time. please help. I have been stuck for a couple of hours.
  5. I want to make a client-side that allows you to type a command which it will detect, and then show you some information. I have figured out how to detect when the player has entered that command, and how to stop it from being sent to the server, but i can't figure out how to show the information the player requested in the chat (I don't wan't a custom gui) without sending that message to the server. mc.player.sendMessage() send the message to the server, and I wan't a way to stop it from doing so.

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.