? 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
.jar in your server's /plugins folder.
- 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
评论 0
登录后参与评分
还没有评论,来抢沙发吧