Jump to content

Modular Modding


Flenix

Recommended Posts

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-

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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-

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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