How can i add a smelting recipe what depends on tool damage? Example: Not damaged iron pickaxe gives 3 iron ingots when smelted, a bit less than half damaged iron pickaxe gives 2 iron ingots when smelted, a bit more than half damaged iron pickaxe gives 1 iron ingot when smelted and almost fully damaged iron pickaxe can't be smelted.