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

I'd look into Build Craft, that should give you some clues.

I haven't looked into it myself yet but I figure each module is a mod with dependency on the core module :)

If you guys dont get it.. then well ya.. try harder...

pretty much, just put everything in common in a core mod (different meaning of core then like those who change the code at runtime )ย  kinda like how buildcraft used to be, you install the core and you add wtv you want after

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

  • Author

BC Isn't modular any more though is it? I don't remember it ever being modular in fact... :P

Is there any other open-source mods which are modular?

ย 

The main thing I need is "disable X if Y module isn't installed". For example, one of my modules will be an economy system. If that's installed, then everything else should have a pre-defined value - so obviously I don't want it to crash when X module isn't installed :P

ย 

I want those values to be set within the module, so say I have a module called Food, then a burger should tell Economy how much it's worth, not Economy saying the burger is worth X. That way other people could theoretically make modules to work with my mod too.

ย 

That's just a simple example, I could probably just use a variable for that but hopefully you get what I mean.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

Use FML inter mod message system with IMCEvent ?

Make an abstract core and only implement in modules ?

meh, for the burger example, i would simply make a config files "id -> price"

ย 

and if you want to check if something is installed:

ย 

boolean economyPresent = false;
try{
ย  ย  Class.forName("com.flenix.economy.Core")
ย  ย  economyPresent = true;
}catch(Exception e){
ย  ย  println("economy mod not present, skipping")
}

if(economyPresent){
ย  ย  loadEconomyMod()
}

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

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.