execute store result score @s KyuDummy run fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft:structure_void replace red_sand
fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft:red_sand replace structure_void
execute as @s[scores={KyuDummy=..9}] run execute store result score @s KyuDummy run fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft:structure_void replace red_sandstone
fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft:red_sandstone replace structure_void
execute if predicate suhc:biomes/stalagmite/redsandstone run scoreboard players set @s KyuDummy 10
execute as @s[scores={KyuDummy=10..}] run fill ~-4 ~-4 ~-4 ~5 ~7 ~4 red_sandstone_slab[type=bottom] replace stone_slab[type=bottom]
execute as @s[scores={KyuDummy=10..}] run fill ~-4 ~-4 ~-4 ~5 ~7 ~4 red_sandstone_slab[type=top] replace stone_slab[type=top]
execute as @s[scores={KyuDummy=10..}] run fill ~-4 ~-4 ~-4 ~5 ~7 ~4 red_sandstone_slab[type=double] replace stone_slab[type=double]
#if the red sand check failed, reset scoreboard
scoreboard players set @s[scores={KyuDummy=..9}] KyuDummy 0