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