How do you make your mod do something if it detects another active mod?

Started by DaRealHerobrine on

Topic category: Advanced modding

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you make your mod do something if it detects another active mod?

So, my mod adds Nether Iron Ore, but I want it to be disabled if the Charm mod is active, as that adds Pig Iron Ore. How would I go about doing this? I know this is possible, as Charm does it for Quark.

Joined Apr 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You will need to do custom…
Sun, 02/21/2021 - 23:01

You will need to do custom coding. Basically you will need to create additional generation condition and if statement inside that checks ModList.get().isLoaded(“modid”);.