Making an item only register if another mod is present 1.20.1

Started by ShadowPlayer51 on

Topic category: Help with MCreator software

Last seen on 03:05, 31. Jul 2024
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making an item only register if another mod is present 1.20.1

I've been wanting to make an item that will only be registered if another mod is detected to be present. I was looking at older posts (primarily this one) and realize that this method most likely won't work anymore as it seems the items aren't registered from within the item's java and I worry that the code requirements have also changed.

 

If anyone knows how to work with this for 1.20.1 I would really appreciate some help!^^