Jump to content

Recommended Posts

Posted

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.

 

Posted

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.

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.