execute store result score @s[tag=bw_spiq] bw_calc run clear @s minecraft:cake 0
scoreboard players operation @s[tag=bw_spiq] bw_calc < #bw_cudu bw_calc
execute if score @s bw_calc matches 1.. run function bw:blocks/randoms/cake/set
execute if score @s bw_calc matches 1.. run playsound minecraft:block.wool.place block @s ~ ~ ~ 1 0.8
execute if score @s bw_mcxyz matches 5 run function bw:blocks/randoms/cake/block_x
execute if score @s bw_mcxyz matches 6 run function bw:blocks/randoms/cake/block_z
execute if score @s bw_mcxyz matches 7 run function bw:blocks/randoms/cake/block_y
execute if score @s bw_mcxyz matches 8 run function bw:blocks/randoms/cake/block_xz
execute if score @s bw_mcxyz matches 9 run function bw:blocks/randoms/cake/block_xy
execute if score @s bw_mcxyz matches 10 run function bw:blocks/randoms/cake/block_zy