I have crafting recipe that use Gregtech Tools. Most tools in the mod used for crafting and not being consumed fully. I found there .damageIngredient() to essentially consume a tool durability, but when I craft ALL tools disappear even when I specify: .damageIngredient('gtceu:bronze_' + tool, 9999).
tools.forEach(tool =>
{
event.shaped(
Item.of('mekanismtools:bronze_' + tool, 1), // arg 1: output
[
'C D',
'BAB', // arg 2: the shape (array of strings)
' '
],
{
A: 'gtceu:bronze_' + tool,
B: '#forge:plates/bronze', //arg 3: the mapping object
C: '#gtceu:tools/crafting_hammers',
D: '#gtceu:tools/crafting_files'
}
).damageIngredient('gtceu:bronze_' + tool, 9999)
})
Is there easy way to do it? Or why ALL tools get consumed in the crafting process? What I doing wrong?