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.