Posted September 25, 20231 yr I'm making a mod that adds items that use another mods items to craft. I want these items that require another mod to craft to only show up when that mod is loaded, but can't figure out how to do so. Im new to modding so sorry if this is a stupid question I've tried using "if (net.minecraftforge.fml.ModList.get().isLoaded("mod_id"))" but using it in the item.java returns "illegal start of expression". Not really sure where to go from here.
September 25, 20231 yr I know this will not answer your question, but still... I think it is not about some particular method, I think it is about architecture. Generally content that uses two mods at the same time are delivered in form of a mod add-on. I think you should consider this.
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.