Item_KeyNameThis add-on changes the way keys work. They no longer look for the color of the brick but rather keywords in the brick's name. This means you can have one or more keys match a single door, regardless of it's color.
How to use normal keys:To make a door identifiable by a key you will have to add the keyword
_key onto the end of the brick's name, followed by any amount of letters corresponding to the keys the door can be opened with.
For example:
bunkerDoor_keyR - Door requires a red key and only a red key.
keyRYBO_keyg - Door can be opened with either a red, yellow, blue, orange or green key.
The
key token must be at the start of the field, and the field should only contain
key followed by letters corresponding to keys.
bunkerDoor_keyR will work.
KeyRBunkerDoor will also work, but will produce undesired effects such as the Blue and Orange keys accidentally being attributed to the door.
bunker_doorrkeyRed will
not work at all.
How to use the personal key:A new key has been introduced in V2 called the personal key. This key matches to any door that has the token
pkey in it's name. If a brick has
pkey in it's name, anyone who has at-least the build trust of the owner of the brick will be able to open the door.
For example:
bunkerDoor_pkey_keyRGB - Door can be opened with the red, green and blue keys, or the personal key if you have the owner's trust.
homeDoor_pkey - You can only open this door with the personal key and the owner's trust.
Keycards:Type
$Pref::KeyNames_UseCards = true; in the console (open with ~) and restart your server to enable the use of keycards. They will replace the default keys. To disable them type
$Pref::KeyNames_UseCards = false; in the console and restart your server. These settings will persist even after you close Blockland.
Keys and their corresponding identifier:Red - r
Yellow - y
Green - g
Blue - b
Purple - p
Orange - o
Lime - l
Cyan - c
Key 1 - 1
Key 2 - 2
Key 3 - 3
Key 4 - 4
Personal Key - pkeyThere is also a Skeleton Key which calls onKeyMatch on any brick you use it on. (When Keycards are active, it will be called the Master Key)
Download (V2)NOTE: Upgrading to V2 will not break your saves in the event that you already built doors using the V1 system. By default the legacy support is enabled in parallel with the new system, but it can be turned off by typing
$Pref::KeyNames_Legacy = false; in the console.
Previous Versions
V1NOTE: Make sure you have Item_Key enabled. This uses it's functionality.
Credits to Gravity Cat for the card models and Swollow for the skeleton key model