You d need to use command blocks that either force the door s state if a condition isn t met or resets the block state if a player tries to open it without the condition having been met.
Mineraft how to lock doors.
1 point 5 years ago.
Locks is a small but unique minecraft mod that introduces flexible and universal locks which can be dynamically attached to multiple blocks of any kind including other mods a fun lock picking mechanic as well as lots of other little but useful tools and utilities.
A door is a redstone mechanism component and can be activated by.
Locks are for chests not doors.
Anyway they don t work on survival mode because people can just break the block instead of finding the key.
Each lever doubles the number of combinations the lock has.
One to lock the door and another to unlock.
You ll need to make one of the following to operate it.
Using it once will open the door and using it a second time will close it.
Doors are not block entities so they can t be locked directly.
Both wood and iron doors can be controlled with redstone power.
The possibilities can be found using 2 n where n is the number of levers used.
Doors aren t block entities and don t support the lock tag that chests hoppers and other containers have.
This mod adds in too items you can get them by too many items mod.
For example a redstone torch a block of redstone a daylight sensor etc.
Soon you will be able to lock chest.
You can however lock a door using a locked trapped chest a pulse limiter a t flip flop and an iron door.
Decide on a door control.
Iron doors cannot be opened by hand.
An adjacent active power component including above or below.
An adjacent powered block for example a block with an active redstone torch under it including above or below.