- Contributors
- JustIlas
- Supported Minecraft Versions
- 1.7
- 1.8
- 1.9
- 1.10
- 1.11
- 1.12
- 1.13
- 1.14
- 1.15
- 1.16
This script allows you to lock doors, gates and trap doors, and open them with a specific key. It's easy to use and fully customizable. It doesn't require any add-on. It's version of the script is a beta, I need to fix some spaghetti code, but it works. Hope you like it.
Code:
# TIP: You can also use "rk.*" to give all permissions.
command: /rk - /rk help
desctiption: Shows the help message.
command: /rk lock
permission: rk.lock
desctiption: Lock a door/gate/trap door.
command: /rk unlock
permission: rk.unlock
desctiption: Unlock a door/gate/trap door.
command: /rk get
permission: rk.get
desctiption: Get a key.
command: /rk add
permission: rk.add
desctiption: Add a door to a key.
command: /rk name
permission: rk.name
desctiption: Rename a key.
command: /rk info
permission: rk.info
desctiption: Shows which doors a key can open.
command: /rk unlockall
permission: rk.unlockall
desctiption: Unlock all the doors.
command: /rk reload
permission: rk.reload
desctiption: Reload the script.
Code:
#-=-##################################-=-#
#-=-# █▀▄▀█ █▀▀ █▀ █▀ ▄▀█ █▀▀ █▀▀ █▀ #-=-#
#-=-# █░▀░█ ██▄ ▄█ ▄█ █▀█ █▄█ ██▄ ▄█ #-=-#
#-=-##################################-=-#
# Message that appears when you lock a door ↓
door-locked: &2&l»&a&l»&f&l» &7Door/gate/trap door locked successfully.
# Message that appears when you unlock a door ↓
door-unlocked: &2&l»&a&l»&f&l» &7Door/gate/trap door unlocked successfully.
# Message that appears when you generate a key ↓
give-key: &2&l»&a&l»&f&l» &7You have successfully received the key.
# Message that appears when you add a door to a key ↓
door-set: &2&l»&a&l»&f&l» &7This key can now open this door.
# Message that appears when you destroy a locked door ↓
door-broken: &2&l»&a&l»&f&l» &7You destroyed a locked door.
# Message that appears when you try to lock an already locked door ↓
door-already-locked: &c&l»&6&l»&e&l» &7This door is already locked.
# Message that appears when you try to unlock a locked unlocked door ↓
door-not-locked: &c&l»&6&l»&e&l» &7This door is not locked.
# Message that appears when you try to block an iron door or something other than a door ↓
not-a-door: &c&l»&6&l»&e&l» &7You have to look at a &nlocked&7 door, gate or trap door to execute this command.
# Message that appears when you try to add the same door to a key twice ↓
already-set: &c&l»&6&l»&e&l» &7This key already includes this door.
# Message that appears when you run a command where a key is needed, but you don't have it in your hand ↓
key-needed: &c&l»&6&l»&e&l» &7You need a key to execute this command.
# Message that appears when you try to open or close a door without a key ↓
key-needed-door: &c&l» &7You need a key to open this door.
# Message that appears when you try to open or close a trap door without a key ↓
key-needed-trapdoor: &c&l» &7You need a key to open this trap door.
# Message that appears when you try to open or close a gate without a key ↓
key-needed-gate: &c&l» &7You need a key to open this gate.
# Message that appears when you try to open or close a door with a wrong key ↓
wrong-key: &c&l» &7This is not the right key.
# Message that appears when you try to break a locked door without "rk.break" permission ↓
no-perm-break: &c&l» &7You don't have permission to destroy this door.
# Message that appears when you run a command without the right permissions ↓
no-perm-cmd: &c&l» &7Insufficient permissions.
# Message that appears when you unlock all the doors ↓
no-perm-cmd: &c&l» &7All the doors are now unlocked.
Code:
#-=-##########################-=-#
#-=-# █▀▀ █▀█ █▄░█ █▀▀ █ █▀▀ #-=-#
#-=-# █▄▄ █▄█ █░▀█ █▀░ █ █▄█ #-=-#
#-=-##########################-=-#
# Item of the key (default: "tripwire hook") ↓
key-item: tripwire hook
# Prefix of the key's name ↓
key-prefix: &b&l» &7
# The default name of the keys ↓
key-name: Key
# Yeah, that's all
Code:
If the script gives problems contact me here or on Telegram (@Cattivah)