// minecraft command generator

summon door

hello!

use the doorSize to choose how many blocks tall the door is.

change the woodtype to change the kind of trapdoor.

change woodname to change the tags the door has (used to kill/move it)

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 ingame directions to number values