execute if score @s miner.coal_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/coal_ore
execute if score @s miner.copper_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/copper_ore
execute if score @s miner.iron_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/iron_ore
execute if score @s miner.gold_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/gold_ore
execute if score @s miner.lapis_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/lapis_ore
execute if score @s miner.redstone_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/redstone_ore
execute if score @s miner.amethyst_block.count matches 1.. run function ws:work/misc/tier2/miner/sold/amethyst_block
execute if score @s miner.prismarine.count matches 1.. run function ws:work/misc/tier2/miner/sold/prismarine
execute if score @s miner.emerald_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/emerald_ore
execute if score @s miner.nether_quartz_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/nether_quartz_ore
execute if score @s miner.diamond_ore.count matches 1.. run function ws:work/misc/tier2/miner/sold/diamond_ore
execute if score @s miner.ancient_debris.count matches 1.. run function ws:work/misc/tier2/miner/sold/ancient_debris
tellraw @s [{"text":"\n - ","bold":true},{"translate":"miner.totalpay"},{"color":"dark_green","bold":true,"score":{"name":"*","objective":"miner.pay"}},{"text":"$\n","color":"dark_green","bold":true}]