Sueta

Locks and Lockpicking

1.9.3

adds locks, keys and lockpicks to your server!

·Plugin

Locks-and-Lockpicking.png

Add locks, keys and lockpicks to your server!

This plugin is currently abbandoned and won't recive any updates. until i feel like returning

Overview:
Locks and Lockpicking is a lock-picking plugin, with features including locks, keys, lockpicks and much more! Locks and Lockpicking is one of the only lockpicking plugins there is up-to-date and will be a perfect addition to any server.

Locks and Lockpicking integrates with Minecraft crafting mechanics, meaning players will never have to bother with commands or sign's.

If you come up with a new feature idea, don't hesitate to PM me so I can implement it. and if you need help or somthing is broken use the discussion tab. not the review section.

also english is my second language so i apolgize for any misspellings here and in the plugin.

i would like to add that this plugin is heavily inspired by https://dev.bukkit.org/projects/lorelocks
Features:

  • 6 tiers of locks
  • traps
  • keys which can open multiple locks
  • choose whice worlds locks, lokcpicks and keys are craftable in
  • restrict who can craft locks, lokcpicks and keys with perms
  • lockpicks with a interactiv lockpicking minigame instead of boring old chance
  • can lock doors, chests and shulker boxes
  • locked doors, chests and shulker boxes can only be broken with the right key
  • a crafting.yml where you can change all the recipes
  • you can change the type of item locks, keys, traps and lockpicks are, and even set their durrabilty(it will be unbreakable) to use the the custom item model trick
  • in-game viewer of all recipes
  • multiple language.ym included and you can easily make your own, ln which you can change most text from this plugin
  • a config.yml where you can change different options such as the chance of a lockpick breaking.
  • customizaable sounds for most actions.(be sure to check that the sounds actually exist for your version of spigot)
  • override claiming plugins such as towny and factions (untested)
  • loot boxes can either be spawned randomly or by command.
  • option to make natural generated chest be locked in a simliar fashion to lootbox but stille containg the same loot as they normally would
  • unstealable tag admins can put on locks(or any item) whice makes it impossiable for anyone without the proper perm to move the item from the slot its in
  • autoclosing doors with configable time
  • non steal option for doors, makes it so doors locks can´t be stolen
  • you can leave doors with locks unlocked

Known Issues:

  • Creative gamemode can mess with some of the features of the plugin. known features to not work in Creative: Lockpicking.

How To use

How to craft locks, keys and lockpicks

2018-06-20_14.04.28.png
this is the default recipes, you can chnage these in the crafting.yml
the key id says blank until you actually craft it where after it gets a unique id, the id looks like player uuids but they not in anyway coupled with the player who made the key. you can also make two keys have the same id simply take the one with the id you want, and drop ontop of another key now they will have the same id, this is usefull for shareing with friends

How to use locks

Locks come in 6 difficulties, 1-5 change the cylinder count of the lock and the 6th difficulty makes the lock unpickable, or in other words only the person which has the key can open the lock.

Depending on the difficulty locks have a different amount of cylinders


    • Difficulty 1 has 3 cylinders
    • Difficulty 2 has 4 cylinders
    • Difficulty 3 has 5 cylinders
    • Difficulty 4 has 6 cylinders
    • Difficulty 5 has 7 cylinders

in case of shulker boxes and chests:
Then place it in the first slot of the chest/shulker box(upper left slot) to lock the chest. Make sure to link a key to it by dropping a key onto the lock before locking the chest if you want to avoid picking your own chest/shulker box/door every time.
in case of doors:
sneak click a unlocked door will open up a menu where you can drop in the lock in the first slot, if the door is locked you can sneak click with the key to open the menu and take out/change the lock, this menu is also opend when you succesfully lockpick a door,
the rest is like chests and shulker boxes

If you forget to create a key from an unpickable lock ask an admin for help, they can bypass the lock and open the chest/shulker box/door for you.

to break a locked chest/shulker box/door you must use the key linked to they lock.

How to use keys

ezgif.com-gif-maker(1).gif
the locks id dosen´t need to be blank you can overide other peoples locks, if you want. multiple locks can have the same id, this allows for multiple keys to open multiple locks. you can also make keys have the same id by draging them on to other keys

misc things

if you open a door with its key it will become unlocked and anyone can open and close it, if you close it with its key it will become locked and nobody without the key can open it,(right after you put a key in it will be unlocked you have to lock it once manneuly)

Lockpicking minigame

ezgif.com-optimize(5).gif
when picking the wrong cylinder there is a chance for you getting kicked out and the code reseting and one for a lockpick breaking. the default chance for geting kicked out is 10% for tier I, and a increase of 5% per tier above 1 and for lockpick breaking 30 for tier 1 and a 8% increase per tier above.

Traps

traps are placed in the slot next to the lock.

Potion trap

the potion trap can be filled with any type of vanilla potion or splash potion, and will apply/throw a copy of that potion at any player who fails to lockpick youre lock.
filling is simple, you simply drag a potion over and drop it on the potion trap, if the potion trap already have some potion in it, then it most be of same type and strength,
you can also empty a potion trap by holding it and rightclicking with it.

Redstone trap

this simple yet really usefull trap, simply turns the block just beneath the locked item into a redstone block for 2 ticks. this can be used to make all kinds of traps from the floor disappering to shooting him out with slime blocks.


Loot boxes
normal

Loot boxes are locked chests you can either spawn with a command or by enabling the random spawner in the config. loot boxes have 5 tiers corresponding to they difficlty of the lock. and a loot table(see config)

permanent

permanent loot boxes is like normal lootboxes except a couple key diffrence. 1. they do not despawn when tried lockpicked 2. they have a cooldown between you can try to lockpick them(set in config) 3. they can only be set by command


permissions:

  • lockpick.admin : let you use admin commands
  • lockpick.override : let you open/break locked chest/shulker box/door without the key
  • lockpick.move : lets you move a unstealable item
  • lockpick.recipe.view : let players use /lockpick recipe. players have this perm by default
  • lockpick.pick : let player pick locks. players have this perm by default
  • lockpick.craft.lockpick : let players craft lockpicks. players have this perm by default
  • lockpick.craft.key : let players craft keys. players have this perm by default
  • lockpick.craft.locks : let players craft all locks. players have this perm by default
  • lockpick.craft.traps : let players craft all traps. players have this perm by default

Commands:

  • /lockpick : show all commands. perm: lockpick.admin
  • /lockpick lock 1-6 : gives you a lock of Difficulty 1 to 6. perm: lockpick.admin
  • /lockpick unstealable : makes the item you holding unable to be moved unless you have the right perm.
  • /lockpick lootbox : opens the gui where you can change loot tables
  • /lockpick lootbox 1-5 true/false : spawns a lootbox of tier 1-5 either permnanet or not
  • /lockpick reload : a experimental reload command

currently only way to get a difficlty 6 or unpickable lock is with /lockpick lock 6.
Setup

Similar projects

Plugin →