execute store result score @s miner.oreid run random value 1..1024
execute if score @s miner.oreid matches 1..256 at @s positioned ~-2 ~-1 ~-3 run return run function ws:work/misc/tier2/miner/fillore {block:'coal_ore',sizex:3,sizey:2,sizez:5}
execute if score @s miner.oreid matches 257..512 at @s positioned ~-2 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'copper_ore',sizex:3,sizey:2,sizez:2}
execute if score @s miner.oreid matches 513..768 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'iron_ore',sizex:2,sizey:2,sizez:2}
execute if score @s miner.oreid matches 769..832 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'gold_ore',sizex:2,sizey:2,sizez:2}
execute if score @s miner.oreid matches 833..898 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'redstone_ore',sizex:2,sizey:2,sizez:2}
execute if score @s miner.oreid matches 899..962 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'lapis_ore',sizex:2,sizey:2,sizez:2}
execute if score @s miner.oreid matches 963..988 at @s positioned ~ ~-1 ~ run return run function ws:work/misc/tier2/miner/fillore {block:'emerald_ore',sizex:2,sizey:1,sizez:1}
execute if score @s miner.oreid matches 989..1004 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'nether_quartz_ore',sizex:2,sizey:2,sizez:2}
execute if score @s miner.oreid matches 1005..1020 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'diamond_ore',sizex:2,sizey:2,sizez:2}
execute if score @s miner.oreid matches 1021..1022 at @s positioned ~-1 ~-1 ~-1 run return run function ws:work/misc/tier2/miner/fillore {block:'amethyst_block',sizex:4,sizey:4,sizez:4}
execute if score @s miner.oreid matches 1023 at @s positioned ~-2 ~-2 ~-2 run return run function ws:work/misc/tier2/miner/fillore {block:'prismarine',sizex:5,sizey:5,sizez:5}
execute if score @s miner.oreid matches 1024 at @s positioned ~ ~-1 ~ run return run function ws:work/misc/tier2/miner/fillore {block:'ancient_debris',sizex:1,sizey:1,sizez:1}