##Check for sand nearby
execute store result score @s KyuDummy run fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft:structure_void replace sand
fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft: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 sandstone
fill ~-3 ~1 ~-3 ~3 ~-1 ~3 minecraft:sandstone replace structure_void
execute as @s[scores={KyuDummy=10..}] run fill ~-4 ~-4 ~-4 ~5 ~7 ~4 sandstone_slab[type=bottom] replace stone_slab[type=bottom]
execute as @s[scores={KyuDummy=10..}] run fill ~-4 ~-4 ~-4 ~5 ~7 ~4 sandstone_slab[type=top] replace stone_slab[type=top]
execute as @s[scores={KyuDummy=10..}] run fill ~-4 ~-4 ~-4 ~5 ~7 ~4 sandstone_slab[type=double] replace stone_slab[type=double]
#if the sand check failed, reset scoreboard
scoreboard players set @s[scores={KyuDummy=..9}] KyuDummy 0