//
minecraft command generator
to set up door rotation watching (one time)
/scoreboard objectives add Doors dummy "Doors"
command block to move door until wanter direction spawn egg generator:
to update door rotation (repeating command block)
/execute store result score door2 Doors run data get entity @e[type=minecraft:armor_stand,tag=door2,limit=1] Rotation[0] 1