execute if block ~22 ~-3 ~ air run say This room would be regenerated if generated from the west, moving east
execute if block ~-22 ~-3 ~ air run say This room would be regenerated if generated from the east, moving west
execute if block ~ ~-3 ~22 air run say This room would be regenerated if generated from the north, moving south
execute if block ~ ~-3 ~-22 air run say This room would be regenerated if generated from the south, moving north

execute unless block ~22 ~-3 ~ air unless block ~-22 ~-3 ~ air unless block ~ ~-3 ~22 air unless block ~ ~-3 ~-22 air run say this room should not be regenerated