#generate random number(based on the marker's UUID) between 0-3 to determine which direction the placed terracotta will be facing
execute as @s run execute store result score @s KyuDummy run data get entity @s UUID[0] .1
scoreboard players set @s KyuDummy2 4
scoreboard players operation @s KyuDummy %= @s KyuDummy2

execute at @s run fill ~ ~-15 ~ ~ ~15 ~ minecraft:command_block{auto:1b,Command:"function zzzzdonotuse:biomecorruption/colorfulcorruption/treereplace",TrackOutput:0} replace minecraft:spruce_log


#run the appropriate function based on that
execute as @s[scores={KyuDummy=0}] run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor2north
execute as @s[scores={KyuDummy=1}] run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor2east
execute as @s[scores={KyuDummy=2}] run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor2south
execute as @s[scores={KyuDummy=3}] run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor2west

#die

kill @s