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.

WildHeart

Members
  • Joined

  • Last visited

  1. Yes, I know. There is a WorldEdit mod, I need to get data from its channel for my mod on the client. I can leave the mod only on the server and register the WorldEdit channel. But I am testing the mod in the ide and at startup the WorldEdit channel is registered on both sides, which prevents the mod from launching
  2. There is a channel from which I need to receive incoming data, but as I noticed, Forge does not provide such an opportunity or am I missing something? It would be possible to register the desired channel and add a listener to it, but then the game will crash and give an error about an already existing channel.
  3. And I need to load each jar(as Forge does with mods) in runtime
  4. Yes, but what's the point of carrying 20+ dependencies with you when you can load only what you need(yes, my mod can do this), but I need to load these dependencies during startup. I found this Launch.classLoader.addURL but apparently this does not work with the new version of Forge.
  5. No, these are separate libraries that are loaded as needed
  6. And the last question, I have libraries that are loaded into mods/myfolder and I need to load them. Fabric has a FabricLauncherBase.getLauncher() But I don't see anything in forge that can allow this to be done
  7. Yes, but the problem is that need to make sure that the registered commands are vanilla
  8. It needs to be added for all vanilla commands, perhaps it should be done via CommandNode, but I'm not sure that binding to literal argument will work
  9. To avoid creating a new topic I'll ask here, how to add requires for vanilla commands?
  10. Is it possible to switch the mod to the server-only state? So that even if the mod was installed on the client, it could not start(it was skipped by the mod loader)
  11. Previously, the registration was in FMLServerStartingEvent, now there is an additional event for this, but this is inconvenient. That's why I'm asking how this can be done. Or is it possible to call FMLServerStartingEvent at the beginning, and then RegisterCommandsEvent?
  12. Oh, okey. @SubscribeEvent public void serverStarting(FMLServerStartingEvent e) { // Creating managerProvider managerProvider.register(); } // In ManagerProvider public void register() { MinecraftForge.EVENT_BUS.addListener(this::onCommandRegister); } But it doesn't work for me
  13. Hi, i have a FMLServerStartingEvent and i need register RegisterCommandsEvent, but i can't make this. Event registration only goes through the constructor, are there any workarounds to solve this?
  14. Solved, need add this to build.gradle classpath "org.jetbrains.kotlin:kotlin-serialization:1.5.21"

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.