跳到正文

Simple Locks

作者:Qubit

Simple Locks is a simple mod that adds locks, keys, and lockpick.

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Simple Locks

Simple Locks is a simple mod that adds locks, keys, and lockpick.

1

Lockpicking Mechanics

The lockpicking mechanic requires players to use a lockpick to push the pins up and set them into place. The sequence of these pins is completely random. Some pins will not settle at the top on the first try and will begin to fall back down at varying speeds—sometimes slowly, sometimes quickly. For these descending pins, you must press Space or Click before the pin drops below the “2nd zone,” as shown in the image below. If you make a mistake and all the pins drop, the pin sequence itself does not change, but which pins fail to settle on the first try will be randomized again. However, if your lockpick breaks, the entire sequence of the pins will be reset and completely randomized.

2
3
3

Commands

  • /simple_locks lockpick [enable/disable]

Enables or disables lockpicks. Enabled by default.

  • /simple_locks lockpickBreakChance

Sets the lockpick breakage chance for a specific lock. Accepts values from 0 to 100, or ‘default’. The ‘default’ option applies the base value of that lock. Valid locks: ironLock, goldLock, diamondLock, netheriteLock Example : /simple_locks lockpickBreakChance ironLock 50

  • /simple_locks multiLock [enable/disable]

Enables or disables the ability to lock and unlock multiple locks with a single key (a key can only unlock the locks it has locked). When disabled, one key is bound to a single lock. Enabled by default.

  • /simple_locks keyReset [eneble/disable]

Enables or disables the ability to clear a used key. When enabled, placing a key with a lock ID into any crafting grid will return a blank key of the same material with no ID. Enabled by default.

  • /simple_locks unlock

Unlocks the locked block the player is currently looking at without requiring a key.

Configurations

This mod generates a simple_locks.json file inside the Minecraft config folder. You can make any vanilla Minecraft block—or blocks from other mods—lockable by adding their specific identifiers to this file.

Example:

{
  "lockable_blocks": [ 
    "minecraft:tnt",
    "minecraft:furnace"
  ]
}

With the configuration above, you can now place locks on TNT and furnaces. You are not limited to vanilla Minecraft blocks; you can add block identifiers from other mods into this JSON file to make them lockable as well.

When a lock is placed on a block and is in the locked state, the block gains the following properties until it is unlocked with the correct key:

  • It cannot be broken.
  • Items cannot be inserted into or extracted from it (e.g., via hoppers).
  • It becomes completely immune to redstone signals.
  • It cannot be moved by pistons.

Note: Adding certain complex or incompatible blocks to this list may cause the game to crash. Proceed with caution when adding modded blocks.

4
5

常见问题

Simple Locks 支持哪些 Minecraft 版本?

Simple Locks 支持 Minecraft Java 版 1.18.2–26.2,共 12 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Simple Locks 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Qubit 的其他作品

查看全部 →