Posted August 24, 201411 yr Hi, I would like to register different recipes for my items/blocks depending on what mods the user has installed. Simple example, I would have recipes with only vanilla items if the user has nothing but my mod. And I would have recipes that uses items from Thermal Expansion, if they are available. The problem I'm facing is how do I know if Thermal Expansion is installed? Recipes should be registered during the init event. And I'm correct, it is only in the post-init that you can ask if a Mod has been loaded (by its ID) Thanks in advance for your help N.
August 24, 201411 yr Author Oh ok, it is that simple I thought the result of this method was only accurate in post-init! Thanks a lot for your help.
August 25, 201411 yr You can ask if a mod is loaded all the time, starting at preInit. Use Loader.isModLoaded(String modId) . Let me fix that for you. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
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.