How to make a tool repairable with an item from another mod

Started by Makuta Nazo on

Topic category: Help with MCreator software

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a tool repairable with an item from another mod

For background information I'm making a weapons mod that occasionally requires resources from other mods to craft. I have figured out how to make the weapons craftable, however I cannot figure out how to make those weapons also use that same modded resource to be repairable.

 

For example, I have one set of weapons using the Resonarium resource from the Deeper and Darker mod, so I created a tag in the repair section that goes something like this:

@Override
        public Ingredient getRepairIngredient() {
            return Ingredient.of(ItemTags.create(ResourceLocation.parse("deeperdarker:resonarium_plate")));
        }


This of course doesn't work, as I don't know enough (or really any) Java to see what I'm missing.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm pretty sure you'd need…
Fri, 11/08/2024 - 12:21

I'm pretty sure you'd need to include the deep and darker mod in your gradle project to be able to use items from it.

Joined Nov 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm fine if that ends up…
Fri, 11/08/2024 - 17:46

I'm fine if that ends up being the case, however I am able to use items from the mod in my crafting recipes just fine as long as I point to the mod_id:item_id correctly, so I was hoping I could do a similar thing with making tools repairable.

In the event I have to include Deeper and Darker in my gradle project.... uh... how would I start that?