scoreboard players set @s builder.diorite.all 0
scoreboard players operation @s builder.diorite.all += @s builder.diorite
scoreboard players operation @s builder.diorite.all += @s builder.diorite_slab
scoreboard players operation @s builder.diorite.all += @s builder.diorite_stairs
execute if score @s builder.diorite.all matches 5.. run function ws:work/misc/builder/pay/diorite

scoreboard players set @s builder.bamboo.all 0
scoreboard players operation @s builder.bamboo.all += @s builder.bamboo_planks
scoreboard players operation @s builder.bamboo.all += @s builder.bamboo_slab
scoreboard players operation @s builder.bamboo.all += @s builder.bamboo_stairs
execute if score @s builder.bamboo.all matches 5.. run function ws:work/misc/builder/pay/bamboo

scoreboard players set @s builder.glass.all 0
scoreboard players operation @s builder.glass.all += @s builder.red_stained_glass
scoreboard players operation @s builder.glass.all += @s builder.red_stained_glass_pane
execute if score @s builder.glass.all matches 5.. run function ws:work/misc/builder/pay/glass

execute if score @s builder.pearlescent_froglight matches 5.. run function ws:work/misc/builder/pay/pearlescent_froglight