scoreboard players add @s[tag=!BlackCorruptionSecondary] KyuBioCorrupt 1
#execute at @s[scores={KyuBioCorrupt=1}] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:biomecorruptionmarkers24innershellonly",posX:-23,posZ:-23,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
#execute at @s[scores={KyuBioCorrupt=1}] run setblock ~ ~-1 ~ redstone_block
#execute at @s[scores={KyuBioCorrupt=2}] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:blackcorruptionspike",posX:-9,posZ:-9,posY:-10,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
#execute at @s[scores={KyuBioCorrupt=2}] run setblock ~ ~-1 ~ air destroy
#execute at @s[scores={KyuBioCorrupt=2}] run setblock ~ ~1 ~ redstone_block
execute at @s[scores={KyuBioCorrupt=2}] run execute as @e[type=marker,distance=..20,tag=KyuBioCor] run execute if predicate suhc:25percent run tag @s add PlaceGray
execute at @s[scores={KyuBioCorrupt=2}] run execute at @e[type=marker,distance=..20,tag=KyuBioCor] run fill ~-1 ~-8 ~-1 ~ ~22 ~ minecraft:command_block{auto:1b,Command:"function zzzzdonotuse:biomecorruption/blackcorruption/fillinrose",TrackOutput:0} replace #suhc:flowersandshrooms
execute at @s[scores={KyuBioCorrupt=2}] run execute as @e[type=marker,distance=..20,tag=KyuBioCor] run execute at @s run execute if predicate suhc:50percent run fill ~ ~-8 ~ ~ ~22 ~ minecraft:blackstone_slab replace #minecraft:replaceable_plants
execute at @s[scores={KyuBioCorrupt=2}] run execute at @e[type=marker,distance=..20,tag=KyuBioCor,limit=2,sort=random] run function zzzzdonotuse:biomecorruption/blackcorruption/placespawner
execute at @s[scores={KyuBioCorrupt=2}] positioned ~11 ~ ~11 run execute if predicate suhc:25percent run execute at @e[type=marker,distance=..5,tag=KyuBioCor,limit=1,sort=random] run function zzzzdonotuse:biomecorruption/blackcorruption/placespawner
execute at @s[scores={KyuBioCorrupt=2}] positioned ~-11 ~ ~11 run execute if predicate suhc:25percent run execute at @e[type=marker,distance=..5,tag=KyuBioCor,limit=1,sort=random] run function zzzzdonotuse:biomecorruption/blackcorruption/placespawner
execute at @s[scores={KyuBioCorrupt=2}] positioned ~11 ~ ~-11 run execute if predicate suhc:25percent run execute at @e[type=marker,distance=..5,tag=KyuBioCor,limit=1,sort=random] run function zzzzdonotuse:biomecorruption/blackcorruption/placespawner
execute at @s[scores={KyuBioCorrupt=2}] positioned ~-11 ~ ~-11 run execute if predicate suhc:25percent run execute at @e[type=marker,distance=..5,tag=KyuBioCor,limit=1,sort=random] run function zzzzdonotuse:biomecorruption/blackcorruption/placespawner
execute at @s[scores={KyuBioCorrupt=2}] run execute at @e[type=marker,distance=..20,tag=KyuBioCor,tag=!PlaceGray] run fill ~ ~-8 ~ ~ ~22 ~ minecraft:black_concrete replace #suhc:solidblocks
execute at @s[scores={KyuBioCorrupt=2}] run execute at @e[type=marker,distance=..20,tag=KyuBioCor,tag=PlaceGray] run fill ~ ~-8 ~ ~ ~22 ~ minecraft:blackstone replace #suhc:solidblocks
execute at @s[scores={KyuBioCorrupt=2}] run execute as @e[type=marker,distance=..20,tag=KyuBioCor] run kill @s
execute at @s[scores={KyuBioCorrupt=3}] run setblock ~ ~ ~ minecraft:structure_block[mode=load]{name:"suhc:biomecorruptionmarkersmovingedgealt",posX:-23,posZ:-23,posY:-1,rotation:NONE,mirror:NONE,mode:LOAD,ignoreEntities:0b} destroy
execute at @s[scores={KyuBioCorrupt=3}] run setblock ~ ~-1 ~ air
execute at @s[scores={KyuBioCorrupt=3}] run setblock ~ ~-1 ~ redstone_block
execute at @s[scores={KyuBioCorrupt=3}] run execute as @e[type=marker,distance=..40,tag=BioCorMove] run scoreboard players add @s KyuDummy 0

execute at @s[scores={KyuBioCorrupt=..1000}] run execute as @e[type=marker,distance=..60,tag=BioCorMove,limit=1,sort=random,scores={KyuDummy=0..15}] run function zzzzdonotuse:biomecorruption/blackcorruption/movingedge
execute as @s[scores={KyuBioCorrupt=1001..}] run summon marker ~ ~ ~ {Tags:["BlackCorruptionSecondary"]}
execute as @s[scores={KyuBioCorrupt=1001..}] run setblock ~ ~1 ~ repeating_command_block[facing=up]{auto:1b,Command:"execute as @e[type=minecraft:marker,distance=..2,tag=BlackCorruptionSecondary] run function zzzzdonotuse:biomecorruption/blackcorruption/secondtimer",TrackOutput:0} destroy
execute as @s[scores={KyuBioCorrupt=1001..}] run kill @s