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

Started by TheOriginalGoatMan2 on

Topic category: Advanced modding

Last seen on 19:22, 18. Apr 2024
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.

Last seen on 23:21, 17. Jun 2022
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”);.