I'm making a map (in Minecraft 1.19.2) where players open doors on a square map made out of rooms. Most rooms have 4 doors, which the player should be able to open from both sides.
I wanted to make command blocks for every button which would spawn an armor stand in the door, which I could use than as an anchor to activate some other command blocks to remove the door, easily slicing the needed command blocks in half. But that would still be a LOT of command blocks, like 600 command blocks just for the door alone.
Is there a way to check for pressed buttons in an area, spawn the armour stand behind the button, and activate the command block?
If not every step of this is possible, I want to use whatever I can to reduce the amount of command blocks I place.