Locky adds locks for securing any lockable containers in the game. In vanilla, this includes:
- barrels
- blast furnaces
- chests (and trapped chests)
- dispensers
- droppers
- furnaces
- hoppers
- shulker boxes
- smokers
Locky uses the vanilla locking system, so any modded block entity that extends the LockableContainerBlockEntity interface will have support.
To lock a block, name your lock the password you want to use and shift-right-click the block. To access the block, simply right-click with any item that's named the password you set earlier. Shift-right-clicking with a lockpick that's named with the password will remove the lock and return the lock to you. A player in creative mode can access any locked container (configurable with the "locky:creativeLockBypass" gamerule), and unlock any container with any lockpick.
Locked containers will not spill their inventories when broken, instead keeping them inside the dropped item like a shulker box, for added security (configurable with the "locky:protectLockedBlocks" gamerule)
Name tags can be used to rename any lockable container.
If/When you update this to 1.15/1.16 could you by any chance add a feature to lock doors?
Edit: And possibly trapdoors?
In reply to Doctor_Rogue:
Door and trapdoor locking would, sadly, be near-impossible unless I rewrote their code from scratch. I have been immensely busy and haven't had time for mods for a while, so hopefully a 1.15/1.16 will come soon.
Will there be a 1.15 version?
In reply to pastmomentum:
Hopefully soon, yes!
In reply to B0undarybreaker:
Wonderful.
how do I rename the lock when I rename it in an anvil then try to lock a chest it says no name is set for the lock
In reply to wolfesquadace:
That's weird. It should work in an anvil just fine. I'll take a look at this when I have the time.
Does this work server-side only?
In reply to xAlicatt:
I'm afraid not, as it adds new items for interacting with the vanilla lock system.
Would this work for structure blocks? Im trying to find a way to give players the ability to activate a structure block on a one-time-use basis after completing an objective.
In reply to Boolyman:
No, structure blocks are not compatible with vanilla locking.
looks awesome, can't wait to have the file to play with it
In reply to Forge_User_54815298:
I've finally rennovated the mod and it's available for use again!
In reply to B0undarybreaker:
thanks, everyday i'm sorting mods by last updated for 1.14 and I've seen this one today so that's cool, also tested it and i love it, simple and good!
1.12.2 Pls this would be awesome on my modded server!
In reply to Forge_User_42252337:
In reply to B0undarybreaker: