? LockIT:物理锁、钥匙与开锁
用真实的物品保护你的箱子和门,而不是聊天指令。
LockIT 是一款面向 Paper 1.21+ 的保护插件。通过将 锁(lock) 物品安装到方块上并用你锻造的 钥匙(key) 来开启它,从而实现对方块的锁定。锁可以被撬开,因此一把强力的锁需要消耗真实资源,而窃贼则需要技巧、工具以及些许运气。
✨ 特性
- ? 物理防护。锁和钥匙是你能够制作、交易、丢失或偷窃的真实物品。
- ?️ 锻造钥匙。每把钥匙都在锻造台上获得唯一的编码。
- ? 开锁小游戏。在生命值耗尽前找出隐藏的销钉顺序。
- ? 陷阱 (1.7 新增)。墨水、声音和尖刺陷阱会在任何人撬错销钉时触发。
- ? 万能钥匙。在铁砧中合并钥匙,使一把钥匙能打开多把锁。
- ? 双扇门和双层箱子。一把锁即可覆盖两半部分。
- ? 防破坏。被锁定的方块无法被破坏、炸毁或通过漏斗清空。
- ? 内置资源包。为锁、钥匙、陷阱和菜单提供自定义纹理,玩家加入服务器时自动发送。
- ⚙️ 完全可配置。物品、配方、难度、陷阱和消息均可编辑。
可锁定的方块: 箱子、带陷阱的箱子、 barrels、潜影盒、门、陷阱门和栅栏门。
?️ 钥匙
| 操作 | 方法 |
|---|---|
| 制作 | 在工作台中制作空白钥匙。 |
| 锻造 | 手持空白右键点击锻造台。它会获得唯一编码。 |
| 复制 | 在你的背包中,将已锻造的钥匙点击到空白钥匙上。(仅限生存模式) |
| 重置 | 右键点击砂轮以擦除编码。 |
| 万能钥匙 | 在铁砧中组合两把已编码的钥匙。第一把钥匙保留两个编码。重复此操作以添加更多。 |
? 锁
- 编程锁。在你的背包中,将已锻造的钥匙点击到锁上。锁会获取该钥匙的编码。
- 安装它。潜行并右键点击可锁定的方块以打开 锁菜单,然后将锁放入其中。
- 使用它。
- 右键点击 持有钥匙以锁定或解锁方块。
- 潜行并右键点击 持有钥匙以再次打开锁菜单,并更换或移除锁和陷阱。
只要你的背包中有钥匙即可打开被锁定的方块。不需要手持它。
? 开锁
使用 开锁工具(Lockpick) 右键点击被锁定的方块以开始小游戏。按正确顺序点击销钉。
- ❌ 选错销钉: 你失去一条生命,且开锁工具耐久度降低。
- ✅ 整个序列正确: 方块解锁。
- ? 生命值耗尽: 尝试失败。
| 等级 | 销钉数 | 生命值 |
|---|---|---|
| 1 | 6 | 5 |
| 2 | 7 | 5 |
| 3 | 8 | 5 |
| 4 | 8 | 4 |
| 5 | 9 | 4 |
| 6 | 无法被撬开 | – |
所有数值均可在 lockpick.yml 中更改。
? 陷阱
将陷阱放入锁菜单的 第 4 个槽位。每当窃贼点击 错误的销钉 时,陷阱就会触发。
| 陷阱 | 效果 |
|---|---|
| ? 墨水陷阱 | 使窃贼致盲,使其穿透墙壁发光,并将其踢出小游戏。 |
| ? 声音陷阱 | 触发警报并告知附近玩家发生的位置。 |
| ?️ 尖刺陷阱 | 伤害窃贼。如果他们足够勇敢,可以继续开锁。 |
陷阱只能触发有限次数(提示栏中显示为 剩余使用次数)。当你移除锁时,你会收回陷阱。耐久度、伤害、致盲时间、警报范围和踢出行为均在 traps.yml 中设置。
⚙️ 配置
| 文件 | 控制内容 |
|---|---|
config.yml |
动作条消息、双门行为、万能钥匙、资源包 |
items.yml |
所有物品的名称、材质和自定义模型数据 |
craftings.yml |
所有物品的配方(或关闭它们) |
lockpick.yml |
销钉数、生命值和开锁工具耐久度 |
traps.yml |
陷阱耐久度和效果 |
messages.yml |
所有消息,准备好进行翻译 |
使用 /lockit reload 应用更改而无需重启服务器。
? 命令
游玩不需要任何命令。这些仅供管理员使用。
权限: lockit.admin (默认:OP)
| 命令 | 描述 |
|---|---|
/lockit key |
获取一把空白钥匙 |
/lockit customkey <id> |
获取具有特定编码的钥匙 |
/lockit universalkey |
获取能打开所有锁的钥匙 |
/lockit lock <1-6> |
获取选定等级的锁 |
/lockit lockpick |
获取开锁工具 |
/lockit trap <ink|sound|spike> |
获取陷阱 |
/lockit reload |
重新加载所有配置文件 |
? 安装
- 将
.jar文件放入服务器的/plugins文件夹中。 - 重启服务器。
- 如果需要,编辑生成的配置文件,然后运行
/lockit reload。
需要: Paper 1.21+ 和 Java 21。
深受旧的 Locks and Lockpicking 插件启发,该插件已于 2019 年停止维护。
? 如需功能请求或错误报告,请在 Discord 上联系我:o_stein
? LockIT: Physical Locks, Keys & Lockpicking
Protect your chests and doors with real items, not chat commands.
LockIT is a protection plugin for Paper 1.21+. You lock a block by fitting a lock item to it and opening it with a key you forged. Locks can be picked, so a strong lock costs real resources, and thieves need skill, tools and some luck.
✨ Features
- ? Physical protection. Locks and keys are real items you craft, trade, lose and steal.
- ?️ Forged keys. Every key gets its own code at a Smithing Table.
- ? Lockpicking minigame. Find the hidden pin order before you run out of lives.
- ? Traps (new in 1.7). Ink, sound and spike traps go off on anyone who picks the wrong pin.
- ? Master keys. Merge keys in an anvil so one key opens several locks.
- ? Double doors and double chests. One lock covers both halves.
- ? Grief-proof. Locked blocks can't be broken, blown up or emptied by hoppers.
- ? Built-in resource pack. Custom textures for locks, keys, traps and menus, sent automatically when players join.
- ⚙️ Fully configurable. Items, recipes, difficulty, traps and messages are all editable.
Lockable blocks: chests, trapped chests, barrels, shulker boxes, doors, trapdoors and fence gates.
?️ Keys
| Action | How |
|---|---|
| Craft | Craft a blank key at a crafting table. |
| Forge | Right-click a Smithing Table while holding the blank key. It gets a unique code. |
| Copy | In your inventory, click a forged key onto a blank key. (Survival only) |
| Reset | Right-click a Grindstone to erase the code. |
| Master key | In an anvil, combine two coded keys. The first key keeps both codes. Repeat to add more. |
? Locks
- Program the lock. In your inventory, click your forged key onto a lock. The lock takes the key's code.
- Install it. Sneak and right-click a lockable block to open the lock menu, then put the lock in it.
- Use it.
- Right-click with the key to lock or unlock the block.
- Sneak and right-click with the key to open the lock menu again and swap or remove the lock and trap.
You only need the key somewhere in your inventory to open a locked block. You don't have to hold it.
? Lockpicking
Right-click a locked block with a Lockpick to open the minigame. Click the pins in the right order.
- ❌ Wrong pin: you lose a life and your lockpick loses durability.
- ✅ Whole sequence right: the block unlocks.
- ? No lives left: the attempt fails.
| Level | Pins | Lives |
|---|---|---|
| 1 | 6 | 5 |
| 2 | 7 | 5 |
| 3 | 8 | 5 |
| 4 | 8 | 4 |
| 5 | 9 | 4 |
| 6 | Can't be picked | – |
Every value can be changed in lockpick.yml.
? Traps
Put a trap in the 4th slot of the lock menu. It goes off every time a thief clicks a wrong pin.
| Trap | Effect |
|---|---|
| ? Ink Trap | Blinds the thief, makes them glow through walls and kicks them out of the minigame. |
| ? Sound Trap | Sets off an alarm and tells nearby players where it happened. |
| ?️ Spike Trap | Damages the thief. They can keep picking if they're brave enough. |
Traps can only go off a limited number of times (shown as Uses left in the tooltip). You get the trap back when you remove the lock. Durability, damage, blindness time, alert radius and kick behavior are all set in traps.yml.
⚙️ Configuration
| File | What it controls |
|---|---|
config.yml |
Action bar messages, double-door behavior, master keys, resource pack |
items.yml |
Names, materials and Custom Model Data for every item |
craftings.yml |
Recipes for every item (or turn them off) |
lockpick.yml |
Pins, lives and lockpick durability |
traps.yml |
Trap durability and effects |
messages.yml |
Every message, ready to translate |
Use /lockit reload to apply changes without restarting.
? Commands
You don't need any commands to play. These are for admins.
Permission: lockit.admin (default: OP)
| Command | Description |
|---|---|
/lockit key |
Get a blank key |
/lockit customkey <id> |
Get a key with a specific code |
/lockit universalkey |
Get a key that opens every lock |
/lockit lock <1-6> |
Get a lock of the chosen level |
/lockit lockpick |
Get a lockpick |
/lockit trap <ink|sound|spike> |
Get a trap |
/lockit reload |
Reload all config files |
? Installation
- Put the
.jarin your server's/pluginsfolder. - Restart the server.
- Edit the generated config files if you want, then run
/lockit reload.
Requires: Paper 1.21+ and Java 21.
Heavily inspired by the old Locks and Lockpicking plugin, which was discontinued in 2019.
? For feature requests or bug reports, find me on Discord: o_stein
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 LockIT
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
? 兼容其他资源包
?️ 修复与调整
- 资源包冲突 — LockIT 在玩家加入时会移除所有其他资源包,包括
server.properties中指定的以及由其他插件发送的资源包。现在它会将自己的资源包与其他资源包共存,使玩家无需重新加载即可保留所有纹理。 - 无需更改任何配置。只需更新插件即可。
感谢 Nagito (lemonstar132) 报告此问题!
感谢使用 LockIT!— Stein
✨ 变更与改进
- 陷阱 — 用陷阱保护锁。打开锁菜单并将陷阱放入第四个槽位。当小偷在开锁时点击错误的密码,陷阱就会触发。
- 三种陷阱:
- 墨水陷阱 — 使小偷失明、发光,并将其踢出开锁菜单。
- 声音陷阱 — 发出巨大的警报声,并告知附近玩家触发位置。将小偷踢出开锁菜单。
- 尖刺陷阱 — 对小偷造成伤害。小偷可以继续尝试开锁。
- 陷阱需要锁 — 只有拥有带密码的锁的方块中才会保留陷阱。否则,当你关闭菜单时,陷阱会退还给你。
- 移除锁会退还陷阱 — 取出锁并关闭菜单:陷阱也会一并退还给你。
- 陷阱耐久度 — 每个陷阱只能触发有限次数,其工具提示中显示为剩余使用次数。用完即毁。
- 新的锁菜单布局 — 锁现在位于第二个槽位,陷阱位于第四个。菜单具有全新纹理。
- 新的
traps.yml— 针对每种陷阱配置如下:durability(耐久度)— 可触发次数(0= 永不损坏)。默认值:墨水3,声音5,尖刺10。kick(踢出)— 触发时将小偷踢出开锁菜单。墨水和声音陷阱默认为true,尖刺陷阱默认为false。- 墨水陷阱
blindness-seconds(致盲秒数)和glowing-seconds(发光秒数),声音陷阱alert-radius(警报半径),尖刺陷阱damage(伤害)。
- 合成配方 — 所有三种陷阱的合成配方位于
craftings.yml,其名称和custom_model_data(分别为110、111、112)位于items.yml。 - 新命令 —
/lockit trap <ink|sound|spike>。 - 资源包 — 包含三种陷阱的新纹理、新的锁菜单纹理,以及手持钥匙时的 3D 钥匙模型。如果你的
config.yml仍在使用旧版 LockIT 的资源包,它会自动切换到新版。
?️ 修复与调整
- 在锁菜单中更换锁为不同的锁时,现在会正确安装新锁。此前,新锁会丢失且旧锁会被复制。
- 更新新增的选项现可立即生效。此前,部分选项需重启第二次后才应用(新物品会显示为名为“Item Error”的石块)。
- 来自旧版本的锁、钥匙和开锁器仍可正常工作,无需进行数据迁移。
感谢使用 LockIT!—— Stein
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧