Simple Locks
Simple Locks 是一款简单的模组,添加了锁、钥匙和开锁工具。

开锁机制
开锁机制要求玩家使用开锁工具将销钉推起并固定到位。这些销钉的顺序是完全随机的。有些销钉在第一次尝试时不会停留在顶部,而是会以不同的速度开始回落——有时缓慢,有时快速。对于这些正在下落的销钉,如图所示,你必须在下落超过“第二区域”之前按下空格键或点击鼠标。如果操作失误导致所有销钉都掉落,销钉序列本身不会改变,但哪些销钉在第一次尝试时未能固定的情况会重新随机化。然而,如果你的开锁工具损坏了,整个销钉序列将被重置并完全重新随机化。

命令
- /simple_locks lockpick [enable/disable]
启用或禁用开锁工具。默认启用。
- /simple_locks lockpickBreakChance <lock> <0 - 100 | default>
设置特定锁的开锁工具损坏几率。接受 0 到 100 之间的值,或者 'default'(默认)。'default' 选项应用该锁的基础值。有效的锁类型:ironLock, goldLock, diamondLock, netheriteLock。示例:/simple_locks lockpickBreakChance ironLock 50
- /simple_locks multiLock [enable/disable]
启用或禁用使用一把钥匙锁定和解锁多个锁的功能(一把钥匙只能解锁它已锁定的锁)。当禁用时,一把钥匙绑定到一个单独的锁。默认启用。
- /simple_locks keyReset [eneble/disable]
启用或禁用清除已使用钥匙的功能。启用后,将带有锁 ID 的钥匙放入任何合成网格中,都会返回一个相同材质但没有 ID 的空钥匙。默认启用。
- /simple_locks unlock
无需钥匙即可解锁玩家当前注视的已锁定方块。
配置
此模组会在 Minecraft 的 config 文件夹内生成一个 simple_locks.json 文件。你可以将任意原版 Minecraft 方块——或其他模组的方块——的具体标识符添加到此文件中,使其可上锁。
示例:
{
"lockable_blocks": [
"minecraft:tnt",
"minecraft:furnace"
]
}
通过上述配置,你现在可以在 TNT 和熔炉上放置锁。你不仅限于原版 Minecraft 的方块;你还可以在此 JSON 文件中添加其他模组的方块标识符,使它们也可上锁。
当锁放置在方块上且处于锁定状态时,该方块将获得以下属性,直到使用正确的钥匙解锁为止:
- 它无法被破坏。
- 物品无法插入或提取(例如,通过漏斗)。
- 它对红石信号完全免疫。
- 它不能被活塞移动。
注意: 将某些复杂或不兼容的方块添加到此列表中可能会导致游戏崩溃。添加模组方块时请谨慎操作。

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

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.

Commands
- /simple_locks lockpick [enable/disable]
Enables or disables lockpicks. Enabled by default.
- /simple_locks lockpickBreakChance <lock> <0 - 100 | default>
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.

下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Simple Locks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧