Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to sub forum page

General forum

Non-course related subjects

3. Programming help

using other mods in your code

  • 2013-07-14 09:56:51
    Hello

    How is it possable to use thing out of other mods ( and let it work if they dont have to be installed)
    Like extrabees itmcreates items out of mods that dont have to be installed (for example)
  • 2013-07-14 10:07:08
    To do that you will need to get the API provided by the mod author. Then when you are initializing your mod, make sure you put everything in preInit(); otherwise it might load your Mod before the extrabess mod, causing errors.
  • 2013-07-14 13:41:52
    But if the mod is not installed there is no api?
  • 2013-07-14 16:07:26
    Before using the API you can check if the mod is installed using: cpw.mods.fml.common.Loader.isModLoaded("modname");
  • 2013-07-15 15:30:40
    aha, thank you
  • 2013-08-26 03:39:53
    If it's a mod that only has the API and not the entire source: you can just add the API to your project and add the deobfuscated version of the mod (which should be provided by the mod author) and add that to the mods folder. If it's the whole source I usually add it as a separate project, but I think you can add it in the same project and run it from there.
  • Log in or sign up to reply to this thread