scoreboard players reset #ingot manic.dummy

execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:iron_ingot"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:iron_ingot",value:1}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:gold_ingot"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:gold_ingot",value:2}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:copper_ingot"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:copper_ingot",value:3}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:lapis_lazuli"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:lapis_lazuli",value:4}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:diamond"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:diamond",value:5}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:emerald"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:emerald",value:6}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:redstone"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:redstone",value:7}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:quartz"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:quartz",value:8}
execute if data storage manic:storage root.temp.ritual.ingredients[{id:"minecraft:netherite_scrap"}] run return run function manic:rituals/recipes/craft/mining/success {ingot:"minecraft:netherite_scrap",value:9}
