execute if entity @s[tag=castle] run function rooms_py:wall/castle
execute if entity @s[tag=cave] run function rooms_py:wall/cave
execute if entity @s[tag=forest] run function rooms_py:wall/forest
execute if entity @s[tag=jungle] run function rooms_py:wall/jungle
execute if entity @s[tag=sandstone] run function rooms_py:wall/sandstone
execute if entity @s[tag=sky] run function rooms_py:wall/sky
execute if entity @s[tag=prismarine] run function rooms_py:wall/prismarine
execute if entity @s[tag=oak_plank] run function rooms_py:wall/oak_plank
execute if entity @s[tag=water] run function rooms_py:wall/water

# Activate structure blocks
setblock ~ ~1 ~ redstone_block replace

# Remove marker
kill @s