Here is a small data pack that will allow you to easily create cool door mechanisms of sizes 1×2 and 3×3. To get the blocks to create such doors type in chat /function door:give. Dig a hole, fill it with blocks of which will consist of your door, then put (in the center, on top of the door) at ground level block placer, and on top of it the right size rack for armor.
Example of creation
How to install SmartDoor Data Pack
- Open the game
- Select the world in which you want to install the data pack, and click on “Configure”
- Click on “Open world folder”
- Open the “data packs” folder and extract the downloaded archive to it