Based off Rust
Use /code to set your code
Use /guestcode to set a guest code
Lock all content using a codelock system all content works almost identically to that in the game Rust. Great for playing with friends or randoms. A guest code allows players to use items but not change the code to lock out other players, where as the admin code gives full access to the block.
Tool cupboards block players from building or mining within 48 blocks, to be allowed to build or break blocks either leave radius or right click on the tool cupboard with the correct code. No other TC's (Tool cupboards) can be placed for an additional 70 blocks unless the player is authorized. To change the code shift + right click whilst having the correct admin code.
Redstone emitters require a redstone conduit to be placed below to power it. On their own both the Emitter & Conduit is functionless. Redstone Emitters will output a redstone signal for a second when right clicked with either a matching guest code or admin code. Combined with an Iron door this effectively makes a code locked door. To change the code shift + right click whilst having the correct admin code.
Vending machines allow players to display offers, you must then add stock for the transaction now other players can purchase from your vending machine. Enchanted items cannot be displayed for sale as the vending machine cannot test for enchantments, but enchanted items can be put in the stock and sold. The vending machine only has an admin code as there would be no point in a guest code. To view the vending machine as someone without the code shift + right click.
Lockers are basically lockable chests. If a locker is broken the content is deleted and not dropped as to not reward raiders.
This mod has been updated to 1.18.2