promotional bannermobile promotional banner

Lockable Doors

A simple mod that enables locking any vanilla wooden door, trapdoor or fence gate.

This mod adds blocks and items to enable locking any vanilla door, trapdoor and fence gate.

 

Installation Requirements

Requires Fabric API

This is a Fabric mod. Don’t ask for a Forge version, this is a basic mod I do on my spare time and I don’t have that much time.

 

How to Use

To craft a lockable block, simply put the corresponding vanilla block and a lock housing in a crafting table.

Lockable Block Craft

 

To install a lock on a block, simply right-click on the block with a keyed lock in your hand. The lock remover must be used to remove a lock from a lockable block.

When a block is equipped with a lock, you can lock/unlock it with the corresponding key by right-clicking. A locked block cannot be opened by hand nor redstone signals. When you craft a key or lock, it is blank and cannot be used yet. In order to make them usable, they need to be machined using the locksmithing station. Simply input the key’s/lock’s name in the top field then pick the item from the output slot. The key’s name appears in its tooltip but locks simply show the word “Keyed” in green. You can check if a key fits in a lock without mounting it on a block, put them in both hands and right-click.

 

Locksmithing Station

For renaming already named keys, see Configuration and FAQ sections below.

Keys can be melted back to a single iron nugget in a furnace/blast furnace.

 

Blocks

 

Doors

All vanilla doors (including iron) are supported.

 

Doors

 

Trapdoors

All vanilla trapdoors (including iron) are supported.

 

Trapdoors

 

Fence Gates

All vanilla fence gates are supported.

 

Fence Gates

 

Items

Items

 

Crafting

 

Lock Housing

Lock Housing

 

Lock

Lock

 

Key

Key

 

Lock Remover

Lock Remover

 

Localization

  • en_us: US English
  • fr_fr: French
  • eo_uy: Esperanto

 

Configuration (mod versions ≥ 1.1)

You can configure the mod by creating a file names "lockable_doors.json" in the "config" directory of your minecraft installation (directory that contains the "mods" directory).

This file may contain the following options:

  • can_destroy_locked_blocks: boolean (defaults to true); if false, all locked blocks will not be breakable by non-creative players.
  • can_rename_keys: [mod versions ≥ 1.1.1] boolean (defaults to false); if true, keys will be renamable, otherwise you will only be able to name them once and no more after that.

 

FAQ

 

Can I rename keys?

Only if you enable the feature from the config file.

 

Is the mod compatible with resource packs?

No, textures of lockable blocks are not using the same files as their vanilla counterpart, they are copies. You will have to create specific textures in your resource pack if you want to make it compatible.

 

License and Usage

This mod is available under the GPLv3 license.

You are free to use it in any modpack as long as you credit me as the original mod’s author.

The Lockable Doors Team

profile avatar
Owner
  • 1
    Projects
  • 4.9K
    Downloads