scoreboard players operation @s miner.displaycount = @s miner.ancient_debris.count
scoreboard players operation @s miner.ancient_debris.count *= .ancientdebrisvalue miner.pay
scoreboard players operation @s miner.pay += @s miner.ancient_debris.count
tellraw @s [{"text":"\n- ","bold":true,"color":"dark_purple"},{"translate":"item.minecraft.netherite_scrap"},{"text":" ("},{"score":{"name":"*","objective":"miner.displaycount"}},{"text":"): "},{"color":"dark_green","bold":true,"score":{"name":"*","objective":"miner.ancient_debris.count"}},{"text":"$\n","color":"dark_green","bold":true}]
scoreboard players reset @s miner.ancient_debris.count