execute if block ~1 ~ ~ kubejs:wallpaper1 positioned ~1 ~ ~ run function backrooms:carpet_replace
execute if block ~-1 ~ ~ kubejs:wallpaper1 positioned ~-1 ~ ~ run function backrooms:carpet_replace
execute if block ~ ~ ~1 kubejs:wallpaper1 positioned ~ ~ ~1 run function backrooms:carpet_replace
execute if block ~ ~ ~-1 kubejs:wallpaper1 positioned ~ ~ ~-1 run function backrooms:carpet_replace