Locki

一个 Quilt 库,用于处理玩家物品栏锁定。也可作为独立模组使用,通过 /locki 命令调用。
该模组必须同时安装在服务器端和客户端才能正常工作。
概述
Locki 使用 物品栏节点(inventory nodes)来表示各个槽位。物品栏节点以树状结构组织,允许命令或模组快速锁定或解锁整个区域,同时保留对更细粒度单元的控制权。
物品栏节点由点分隔的路径表示,从最不具体的祖先节点到最具体的子节点。例如 inventory 描述玩家整个物品栏,而 inventory.armor.chest 则描述物品栏中的护甲胸部槽位。
当某个物品栏节点被锁定时,其子节点仍可以被解锁,从而允许你在广泛的访问限制中排除特定槽位。例如,锁定 inventory 然后解锁 inventory.armor.chest 将阻止玩家触碰物品栏中的任何物品,除了他们的胸甲槽位。
命令
Locki 添加了 /locki 命令,允许服务器操作员和地图制作者通过命令与 API 交互。
/locki lock <node> [<targets>] [<lock>]:锁定一个或多个玩家的物品栏<node>:描述已知 物品栏节点 的完整路径。[<targets>](可选):如果指定,必须是玩家的用户名或目标选择器。如果未指定,默认为使用该命令的玩家。在命令方块中使用时,玩家参数不可省略。[<lock>](可选):如果指定,必须是引用已注册锁的有效标识符。如果未指定,默认为通用的 "command" 锁。
/locki unlock <node> [<targets>] [<lock>]:解锁一个或多个玩家的物品栏[<targets>](可选):如果指定,必须是玩家的用户名或目标选择器。如果未指定,默认为使用该命令的玩家。在命令方块中使用时,玩家参数不可省略。[<lock>](可选):如果指定,必须是之前曾用于影响玩家物品栏的有效标识符。如果未指定,默认为通用的 "command" 锁。
权限
如果你安装了 LuckPerms,拥有 locki.command.lock 权限的玩家可以使用上述命令。
如果你仅授予 locki.command.lock.self 权限,玩家将只能对自己使用这些命令。
开发者信息
有关如何将其添加到开发环境以及如何使用它的更多信息,请参阅 项目的 readme 文件。
Locki

A Quilt library handling player inventory locking. Can also be used as a standalone mod, through the /locki command.
This mod must be installed on both server and client to work properly.
Overview
Locki represents slots using inventory nodes. Inventory nodes are structured as a tree, allowing commands
or mods to quickly lock or unlock entire sections while retaining controls over finer units.
Inventory nodes are represented as a dot-separated path, from least specific ancestor to most specific child node.
For example inventory describes the entirety of the player's inventory, while inventory.armor.chest
describes the chestplate slot of the inventory.
When an inventory node gets locked, descendant nodes can still be unlocked, allowing you to exclude specific slots
from a broad access ban. For example, locking inventory then unlocking inventory.armor.chest will prevent the player
from touching any item in their inventory except their chestplate.
Commands
Locki adds the /locki command, allowing server operators and mapmakers to interact with the API through
commands.
/locki lock <node> [<targets>] [<lock>]: locks the inventories of one or more players<node>: a full path describing a known inventory node.[<targets>](optional) : If specified, must be either a player's username or a target selector. If unspecified, defaults to the player using the command. When used in a command block, player is not optional.[<lock>](optional) : If specified, must be a valid identifier referencing a registered lock. If unspecified, defaults to the generic "command" lock.
/locki unlock <node> [<targets>] [<lock>]: unlocks the inventories of one or more players[<targets>](optional) : If specified, must be either a player's username or a target selector. If unspecified, defaults to the player using the command. When used in a command block, player is not optional.[<lock>](optional) : If specified, must be a valid identifier that was previously used as a lock to affect the players' inventories. If left unspecified, defaults to the generic "command" lock.
Permissions
If you have LuckPerms installed, the above commands can be used by players with the locki.command.lock permission.
If you only grant locki.command.lock.self, players will only be able to use the commands on themselves.
Developer information
For more information on how to add it to your development environment and how to use it, see the project's readme.
下载 Locki
下载 Locki
下载 Locki
下载 Locki
下载 Locki
下载 Locki
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧