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.

Akke

Members
  • Joined

  • Last visited

Everything posted by Akke

  1. So i made this code (in 1.15.2): @Mod.EventBusSubscriber public class Events { @SubscribeEvent public static void CommandEvent(CommandEvent event) { String cmd = event.getParseResults().getReader().getString(); cmd.replace("%value%", "example"); } } But i cant find how i can edit the command itself before it gets executed. I can't use ChatEvent because i also want to edit the commands from a command block, thanks for the help.
  2. Ok that worked, i was able to cancel the command, but how can i modify the command it self when i have the event?
  3. Thanks, i'll try that.
  4. Hello, i was wondering how i can intercept a command, so i can replace certain things in the command and then execute the command when it's edited. I want to be able to use variables inside my commands, like %variableName%, those get then changed to the value of the variable, thanks for the help.

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.