Is there a way to track which buttons were pressed when using command blocks?
-
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.
-
I want to use whatever I can to reduce the amount of command blocks I place.
Do you already know how to use or have you considered using a https://minecraft.fandom.com/wiki/Function ? That way you won't have to build 600 command blocks, but just write 1 file (function) which has 600 lines.
FYI, command blocks don't work unless they're rendered or they're in a spawn chunk.