Like this?
public void whenCrafted(ItemCraftedEvent event)
{
if (event.crafting.getItem() instanceof ItemTool)
{
event.crafting.getItem().setNoRepair();
}
}
Because that didn't seem to work for me :L
Hellooo! I wanted to remove the possibility to repair tools (2 broken tools -> 1 fixed tool)
But since those "recipes" aren't actually in the recipe list, I have no idea how to remove them :L
Does anyone have an idea?
Edit: That's what I meant Wanna remove that! :C
https://minecraft.gamepedia.com/Item_repair