Jump to content

Installed mods?


Chibill

Recommended Posts

Is there a function to list the installed mods so that if I have a mod that depends on another being there for parts if its function it can tell the user with out crashing.

And also I was going to make a mod black list mod because people want that in forge so I will make a mod for it.

Link to comment
Share on other sites

This is what I used to check if Thaumcraft 3 is installed

import cpw.mods.fml.common.Loader;

public class ThaumCraftSupport 
{
public static void isThaumInstalled()
{
	if(Loader.isModLoaded("Thaumcraft"))
	{
		try
		{
			//Thaumcraft found, do stuff
		 }
		catch(Exception e)
		{
                               //Don't crash
                        }
	}
	else
	{}
}
}

Loader.isModLoaded(modID)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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