setblock ~ ~-1 ~ sand
execute if predicate kiwi2:chance_random_80 run setblock ~1 ~-1 ~0 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-1 ~-1 ~0 sand
execute if predicate kiwi2:chance_random_80 run setblock ~0 ~-1 ~1 sand
execute if predicate kiwi2:chance_random_80 run setblock ~0 ~-1 ~-1 sand

execute if predicate kiwi2:chance_random_80 run setblock ~2 ~-1 ~1 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-2 ~-1 ~-1 sand
execute if predicate kiwi2:chance_random_80 run setblock ~1 ~-1 ~2 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-1 ~-1 ~-2 sand
execute if predicate kiwi2:chance_random_80 run setblock ~2 ~-1 ~-2 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-2 ~-1 ~2 sand

execute if predicate kiwi2:chance_random_80 run setblock ~3 ~-1 ~0 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-3 ~-1 ~1 sand
execute if predicate kiwi2:chance_random_80 run setblock ~0 ~-1 ~3 sand
execute if predicate kiwi2:chance_random_80 run setblock ~1 ~-1 ~-3 sand
execute if predicate kiwi2:chance_random_80 run setblock ~2 ~-1 ~3 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-2 ~-1 ~-3 sand

execute if predicate kiwi2:chance_random_80 run setblock ~2 ~-1 ~2 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-2 ~-1 ~-2 sand
execute if predicate kiwi2:chance_random_80 run setblock ~3 ~-1 ~3 sand
execute if predicate kiwi2:chance_random_80 run setblock ~-3 ~-1 ~-3 sand

execute if predicate kiwi2:chance_random_50 run setblock ~1 ~-1 ~1 sand
execute if predicate kiwi2:chance_random_50 run setblock ~-1 ~-1 ~-1 sand
execute if predicate kiwi2:chance_random_50 run setblock ~2 ~-1 ~0 sand
execute if predicate kiwi2:chance_random_50 run setblock ~0 ~-1 ~-2 sand
execute if predicate kiwi2:chance_random_50 run setblock ~-1 ~-1 ~1 sand
execute if predicate kiwi2:chance_random_50 run setblock ~1 ~-1 ~-1 sand
execute if predicate kiwi2:chance_random_50 run setblock ~2 ~-1 ~1 sand
execute if predicate kiwi2:chance_random_50 run setblock ~1 ~-1 ~-2 sand

execute if predicate kiwi2:chance_random_30 run setblock ~1 ~ ~1 red_sand
execute if predicate kiwi2:chance_random_30 run setblock ~-1 ~ ~-1 red_sand

execute if predicate kiwi2:chance_random_50 run setblock ~0 ~-1 ~0 red_sand
execute if predicate kiwi2:chance_random_50 run setblock ~1 ~-1 ~-1 red_sand
execute if predicate kiwi2:chance_random_30 run setblock ~-1 ~-1 ~2 red_sand

execute if predicate kiwi2:chance_random_30 run setblock ~2 ~-1 ~2 red_sand
execute if predicate kiwi2:chance_random_30 run setblock ~-2 ~-1 ~-2 red_sand

## --- THE SPINE (10 Blocks Tall) ---
## We use a 90% or 70% chance to ensure this pillar almost always hits the sky.
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~4 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~5 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~6 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~7 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~8 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~9 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~10 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~11 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~12 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~13 ~ {BlockState:{Name:"sand"},Time:1}

## --- THE INNER SHOULDER (Radius 1: 6 Blocks Tall) ---
## North
execute if predicate kiwi2:chance_random_70 run summon falling_block ~1 ~4 ~ {BlockState:{Name:"sandstone"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~1 ~5 ~ {BlockState:{Name:"red_sandstone"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~1 ~6 ~ {BlockState:{Name:"sandstone"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~1 ~7 ~ {BlockState:{Name:"chiseled_sandstone"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~1 ~8 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~1 ~9 ~ {BlockState:{Name:"sand"},Time:1}

## South (Mirroring North)
execute if predicate kiwi2:chance_random_70 run summon falling_block ~-1 ~4 ~ {BlockState:{Name:"red_sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~-1 ~5 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~-1 ~6 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~-1 ~7 ~ {BlockState:{Name:"red_sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~-1 ~8 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~-1 ~9 ~ {BlockState:{Name:"sand"},Time:1}

## East
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~4 ~1 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~5 ~1 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~6 ~1 {BlockState:{Name:"red_sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~7 ~1 {BlockState:{Name:"sand"},Time:1}

## West
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~4 ~-1 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~5 ~-1 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~6 ~-1 {BlockState:{Name:"chiseled_red_sandstone"},Time:1}
execute if predicate kiwi2:chance_random_70 run summon falling_block ~ ~7 ~-1 {BlockState:{Name:"sand"},Time:1}

## --- THE BASE (Radius 2-3: 1-2 Blocks Tall) ---
## Diagonals to smooth the shape
execute if predicate kiwi2:chance_random_30 run summon falling_block ~2 ~4 ~2 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~-2 ~4 ~2 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~2 ~4 ~-2 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~-2 ~4 ~-2 {BlockState:{Name:"sand"},Time:1}

## Edge Taper
execute if predicate kiwi2:chance_random_30 run summon falling_block ~3 ~4 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~-3 ~4 ~ {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~ ~4 ~3 {BlockState:{Name:"sand"},Time:1}
execute if predicate kiwi2:chance_random_30 run summon falling_block ~ ~4 ~-3 {BlockState:{Name:"sand"},Time:1}

tag @s add desert_platform_marker_placed