scoreboard players add @s KyuDummy 1


#1% chance to spawn a mob spawner every time the marker moves outwards and spreads corruption
execute as @s[scores={KyuDummy=1..11}] run execute at @s run execute if predicate suhc:10percent run execute if predicate suhc:10percent run execute unless entity @e[distance=..7,tag=PlacedSpawner,type=marker] run function zzzzdonotuse:biomecorruption/colorfulcorruption/placespawner

#execute at @s[scores={KyuDummy=1..11}] run fill ~ ~-15 ~ ~ ~15 ~ minecraft:command_block{auto:1b,Command:"function zzzzdonotuse:biomecorruption/colorfulcorruption/treereplace",TrackOutput:0} replace minecraft:spruce_log


#fill in a small 2x2 area with corruption, each one choosing random colors
execute as @s[scores={KyuDummy=1..11}] run execute at @s positioned ~ ~ ~ run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor
execute as @s[scores={KyuDummy=1..11}] run execute at @s positioned ~-1 ~ ~ run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor
execute as @s[scores={KyuDummy=1..11}] run execute at @s positioned ~ ~ ~-1 run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor
execute as @s[scores={KyuDummy=1..11}] run execute at @s positioned ~-1 ~ ~-1 run function zzzzdonotuse:biomecorruption/colorfulcorruption/fillinrandomcolor


#execute as @s[scores={KyuDummy=16..22}] run execute at @s run fill ~-1 ~-15 ~-1 ~1 ~15 ~1 minecraft:black_concrete replace #suhc:solidblocks

execute as @s[scores={KyuDummy=1..11}] run execute at @s run tp @s ^ ^ ^-1

execute as @s[scores={KyuDummy=12..}] run function zzzzdonotuse:biomecorruption/colorfulcorruption/endtendrils
