Locking doors in Minecraft is a simple but effective way to protect your base from unwanted visitors. There are a few different ways to lock a door in Minecraft, depending on the version of the game you are playing.
In Java Edition, you can lock a door by placing a lever on the side of the door. When the lever is in the “down” position, the door will be locked. You can then use a key to unlock the door. Keys can be found in chests or crafted from iron ingots.