How to make an item appear only if a mod is loaded??

Started by villagernumber9 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item appear only if a mod is loaded??

I'm making a mod that has some items that would be useless without a specific mod, but my mod shouldn't be dependent on it. How do I make those items enabled only if that mod is loaded?