“This block is locked with a magical spell!”
Players can additionally protect certain blocks, and manage those protections with the LWC plugin.
When you place any chest, barrel, door, trapdoor, fence gate, furnace, blast furnace, smoker, or shulker down, a lock is created on the block, in your name. Only you will be able to access the locked block you placed. You will also get a message in chat if the lock has been successfully created. You can configure who accesses the locks, as well as other options.
You can only lock blocks inside your own town. Blocks placed down in Wilderness or other towns are not locked by LWC, and may be accessed by any player that has the Switch permission on the plot. A locked single chest inside claims will also not form a double chest with an unlocked one next to it in Wilderness.
If the plot that the lock is in is unclaimed from the town (whether manually, or by the server e.g. the town fell due to lack of funds for upkeep) then the lock is automatically removed.
Please note that this page includes elements of the Towny plugin, due to the Towny plugin's interactions with LWC.
Normally, any LWC command can be used on a locked block once—the command ends after you punch a block, and you have to type it and punch another block again.
If you want to use a command on multiple locks in a row, type
/cpersist first, and then the command you want to keep enabled.
To turn this setting off, type
/cremove and punch your locked block.
The lock will be removed, and all players with the Switch permission in the plot the locked block is in will be able to access the block again.
To allow other players access to a locked block, first, you need to give them the Switch permission in the plot the locked block is in.
/cmodify (player name) (player name) (player name) … and punch your locked block. You can add as many player names as you like, separated with spaces.
To remove certain players you gave access to, use
/cmodify -(player name) -(player name) … and punch your locked block. You can remove as many player names as you like, separated with spaces.
/cmodify commands can be used many times on the same lock, depending on your preference and needs.
If you want to give someone access to all of your locked blocks, you can grant them a protection trust.
/trust add (player name) to entrust someone. To remove a protection trust, type
/trust remove (player name) .
To view the list of players you have entrusted, type
/trust list .
Always be careful when giving a player access to all your locks.
/cprivate and punch a chest, barrel, door, trapdoor, fence gate, furnace, blast furnace, smoker, or shulker, inside your town's claims.
Possible uses of lock creation:
/cinfo and punch the locked block. A table will show in chat about the lock's creator, and the players allowed to use it.
Flags allow you to configure the behavior and interactions of your locked block, in a number of different ways.
The general format of flag commands is
/lwc flag (flag name) (on/off) or
/c(flag name) (on/off) for short.
In order for hoppers to interact with your owned locked block, you must enable the hopper flag. Type
/chopper on and punch the locked block.
To disable hoppers for your locked block, type
Note: In Nations, the hopper flag is automatically enabled on your lock. In Towny, the hopper flag is not automatically enabled on your lock.
In order for redstone to power your owned locked block—if the locked block interacts with redstone—you must enable the redstone flag. Type
/credstone on and punch the locked block.
To disable redstone for your locked block, type
There exist two types of locks in LWC.
A private lock means that the locked block's owner and other players that the owner has granted access to, can access the locked block (provided that they have the Switch permission on the plot). It is the default type of lock, on creation.
A public lock means that any player who has the Switch permission on the plot that the locked block is in, can access the locked block. However, nobody can choose to lock that block.