Block Locking with LWC

“This block is locked with a magical spell!”

Players can additionally protect certain blocks, and manage those protections with the LWC plugin.

By default, a newly placed chest, barrel, or skulker will be protected and locked to only you. 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.

 

 

Creating a Lock

Type /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:

  • You placed a chest, barrel, door, trapdoor, fence gate, furnace, blast furnace, smoker, or shulker down next to your town, so the block wasn't locked. The chunk it was placed in was then claimed, and you now want to lock it.

  • You removed your lock from a chest, barrel, door, trapdoor, fence gate, furnace, blast furnace, smoker, or shulker, but you want to lock it again.

 

 

Unlocking a Block

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.

 

 

Protection Types in LWC

Public:

Anyone can access the protection, but no one can protect it for themselves. Mainly useful for community chests that store items for anyone to use (or a chest in a Factions' Faction for any faction member to use).

 

Private:

By default, only you can access the protection. You can also add other players and groups to the protection so that they, too can access it. So your chest and doors can only let in your close friends and those you choose to add to it.

 

Password:

The protection has a set password and you need to enter it each time you login. This can of course be shared with other players -- they will be able to access the protection until they log out (after that they will need to re enter it).

 

Donation:

Other players can put things into this protection, but won't be able to take anything out. This can be good for many purposes such as collecting items from people, or crowd sourcing materials for a build.

 

Display:

The contents of the protection may be viewed by others, but they will not be able to put anything in or take anything out. Useful for basic shops, showing off items, reading books in lecterns, and so on.

 

 

Lock Trust

If you want to give someone access to all of your locked blocks, you can grant them a protection trust.

Type /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.

 

 

Lock Access and Permission

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.

Type /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.

The /cmodify commands can be used many times on the same lock, depending on your preference and needs.

 

 

How so I see who owns a lock?

Type /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

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.

 

 

Hoppers

Flag name: hopper

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 /chopper off.

 

 

Redstone

Flag name: hopper

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 /chopper off.

Last edit by: Darius @ 2024-08-16 01:36:41 am EST