Chest Shield
一个只有其所有者才能打开的箱子——通过箱内界面进行配置,无需命令或保护插件。
放置即归你所有。打开它并点击锁定按钮,以决定谁能访问、漏斗是否可以接触以及是否启用保护。
功能
自动所有权。 谁放置了箱子,谁就是所有者。无需设置。
权限管理。 为玩家授予访问权限后,他们即可像所有者一样打开箱子,无需记忆或分享密码。可从在线玩家列表中选择,或直接输入名称。你也可以添加离线玩家——他们在首次加入服务器时即可获得访问权限。
保护开关。 关闭后,箱子行为如同原版箱子,适用于你想共享箱子但不想丢失方块的情况。即便如此,也只有所有者可以破坏箱子或更改其设置。
可选访客密码。 适用于不在你列表中的人:从未加入过的玩家,或在公共服务器上设置的交易箱。密码使用 PBKDF2 进行哈希处理,且永远不会离开服务器,因此即使是管理员也无法从世界文件中读取它们。
漏斗支持(需手动开启)。 两个独立的开关,分别用于放入物品和取出物品,默认均处于关闭状态。
防爆。 TNT、苦力怕、床和活塞对其无效,无论是否启用保护。
双层箱子。 仅当所有者相同时,双层箱子才会合并为 54 个槽位,从而防止他人扩展你的箱子以获取你的物品。
与其他模组兼容良好。 它使用原版箱子界面,因此物品栏排序模组仍可正常工作。Carry On 无法拾取它。
主钥匙。 一种管理员物品,只能通过命令获得,可打开任意箱子。需要操作者等级 2 且 手持该钥匙。
合成

由 8 个铁锭围绕的一个原版箱子。
命令
/chestshield — 面向箱子时,显示其所有者和设置。供所有者或管理员使用,以便在不破坏方块的情况下进行管理。
/give @s chest_shield:master_key — 主钥匙。
依赖
Fabric API。无其他要求。
客户端和服务器端均需安装。
Chest Shield
A chest only its owner can open — configured from inside the chest itself, with
no commands and no protection plugin.
Place it and it is yours. Open it and click the lock button to decide who else
gets in, whether hoppers can touch it, and whether it is protected at all.
Features
Automatic ownership. Whoever places the chest owns it. No setup.
Permissions. Give a player access and they open the chest like you do, with
no password to remember or share. Pick them from the list of players online, or
type a name. You can add someone who is offline — they get access the first time
they join.
Protection switch. Turn it off and the chest behaves like a vanilla one, for
when you want a shared chest without losing the block. Even then, only the owner
can break it or change its settings.
Optional guest password. For people who are not on your list: someone who has
never joined, or a trading chest on a public server. Passwords are hashed with
PBKDF2 and never leave the server, so not even an administrator can read them
from the world files.
Hoppers, but only if you say so. Two independent switches, for putting items
in and for taking them out, both off by default.
Explosion proof. TNT, creepers, beds and pistons do nothing to it, protected
or not.
Double chests join into 54 slots only between chests of the same owner, so
nobody can extend yours to reach your items.
Plays well with other mods. It uses the vanilla chest screen, so inventory
sorting mods keep working normally. Carry On cannot pick it up.
Master Key. An admin item, obtainable only through commands, that opens any
chest. Requires operator level 2 and the key held in hand.
Crafting

A vanilla chest surrounded by 8 iron ingots.
Commands
/chestshield — while looking at a chest, shows its owner and settings. For the
owner or an admin, so you can moderate without breaking blocks.
/give @s chest_shield:master_key — the Master Key.
Requirements
Fabric API. Nothing else.
Required on both the client and the server.
评论 0
登录后参与评分
还没有评论,来抢沙发吧