描述
Minecraft 的 keepInventory 游戏规则为玩家提供了重要功能,但它不幸未能兼顾服务器中混合的个人偏好。Keep It Personal 是一个 Fabric 模组,旨在通过提供命令来单独自定义玩家死亡时掉落的内容,从而弥补这一缺陷。使用这些命令,玩家可以:
- 选择自己死亡时掉落的内容,而不影响其他人
- 自定义其背包中哪些部分会被掉落
Keep It Personal 设计为轻量级且兼容性强;它完全在服务端运行,并且与原版客户端完全兼容。
安装
要安装此模组,只需将 JAR 文件添加到服务器根目录下的 mods 目录中即可。
用法
此模组使用单个命令 /kip,以及如下所述的各种子命令。
死亡偏好
下表列出了玩家可以选择在死亡时保留的选项。
| 名称 | 描述 |
|---|---|
armor |
玩家装备的头盔、胸甲、护腿和靴子 |
offhand |
玩家副手持有的物品 |
hotbar |
玩家快捷栏中的物品 |
inventory |
玩家主背包中的物品,不包括上述选项 |
cursed |
玩家背包中具有“消失”附魔的物品 |
experience |
玩家的经验值 |
子命令
查看所有偏好
要查看当前偏好的列表,请运行 /kip。
查看特定偏好
要查看是否选择了特定的偏好,请运行 /kip <preference>。
死亡时保留所有内容
要在死亡时保留背包中的所有物品,请运行 /kip everything。
清除所有偏好
要清除偏好并在死亡时掉落所有物品,请运行 /kip nothing。
设置特定偏好
要设置特定的偏好,请运行 /kip <preference> <true | false>,其中 true 表示你希望在死亡时保留该偏好物品,而 false 表示你希望将其掉落。
配置
可以在 config/keep_it_personal.toml 文件中配置 Keep It Personal。如果你不熟悉 TOML,强烈建议你学习其规范以便于配置。
禁用特定偏好
如果你想禁止任何人使用特定的偏好集,可以使用 preferences.disabled 属性。例如,以下内容禁用了除 experience 之外的所有偏好。
[preferences]
disabled = ['armor', 'offhand', 'hotbar', 'inventory', 'cursed']
默认值
默认情况下,没有偏好被禁用。
启用特定偏好
如果你想让特定的偏好集 始终 处于启用状态,你可以类似地使用 preferences.enabled 属性。例如,以下内容强制启用 armor 和 offhand。
[preferences]
enabled = ['armor', 'offhand']
默认值
默认情况下,没有偏好被启用。
权限
此模组可选地支持 fabric-permissions-api 以用于命令权限控制。每个命令都可以通过特定的权限进行控制。下表包含了完整的权限列表。
| 权限 | 描述 |
|---|---|
keep_it_personal.kip |
查看他们选择的所有偏好 |
keep_it_personal.kip.<preference> |
查看并更新特定的偏好 |
keep_it_personal.kip.everything |
将所有可用的偏好添加到选定的偏好中 |
keep_it_personal.kip.nothing |
从选定的偏好中移除所有可用的偏好 |
权限配置属性
对于不使用 fabric-permissions-api 或使用 OP 权限等级的服务器,你可以指定这些命令的默认权限等级。这在配置文件中设置为 permissions.permissionLevel。
权限等级可以是数值或文本值,推荐使用文本值。
| 名称 | 文本值 | 数值 |
|---|---|---|
| 所有人 | all |
0 |
| 管理员 | moderators |
1 |
| 游戏制作人 | gamemasters |
2 |
| 管理员 | admins |
3 |
| 所有者 | owners |
4 |
例如,要让拥有 moderators 权限等级及以上的玩家能够使用此命令,你需要在 keep_it_personal.toml 中指定以下内容。
[permissions]
permissionLevel = 'moderators'
默认情况下,权限等级为 all。请注意,权限等级会覆盖 fabric-permissions-api 中设置的权限。
默认值
默认权限等级为 0,授予每位玩家。如果你希望通过权限管理器来控制权限,请相应地更新权限等级。
外部兼容性
目前,对其他扩展玩家背包的模组的支持情况未知,但很可能不受支持。不过,对 Trinkets 的支持正在进行中,未来可能会支持其他模组。
Description
Minecraft's keepInventory game rule provides an important feature for players, but it unfortunately fails to account for mixed preferences in servers. Keep It Personal is a Fabric mod which seeks to remedy this by providing commands to individually customize what players drop on death. With these commands, players can:
- Choose what they drop on death without affecting others
- Customize what parts of their inventory are dropped
Keep It Personal is designed to be lightweight and compatible; it's entirely server-side and is fully compatible with vanilla clients.
Installation
To install this mod, simply add the JAR to the mods directory in the root directory of the server.
Usage
This mod uses a single command, /kip, along with multiple subcommands as outlined below.
Death Preferences
The following table contains the options a player can choose to keep on death.
| Name | Description |
|---|---|
armor |
The player's equipped helmet, breastplate, leggings, and boots |
offhand |
The item held in the player's off-hand |
hotbar |
Items in the player's hotbar |
inventory |
Items in the player's main inventory, excluding the options above |
cursed |
Items in the player's inventory that are enchanted with Curse of Vanishing |
experience |
The player's experience |
Subcommands
View All Preferences
To view a list of your current preferences, run /kip.
View Individual Preference
To view whether you have selected a specific preference, run /kip <preference>.
Keep Everything on Death
To keep everything in your inventory on death, run /kip everything.
Clear All Preferences
To clear your preferences and drop everything on death, run /kip nothing.
Set a Specific Preference
To set a specific preference, run /kip <preference> <true | false>, where true indicates that you wish to keep the preferred items on death, and false indicates you wish to drop them.
Configuration
Keep It Personal can be configured in the config/keep_it_personal.toml file. If you are unfamiliar with TOML, it is highly recommended that you learn the specification for ease of configuration.
Disable Specific Preferences
If you want to disable a specific set of preferences from being used by anyone, you can use the preferences.disabled property. For example, the following
disables every preference but experience.
[preferences]
disabled = ['armor', 'offhand', 'hotbar', 'inventory', 'cursed']
Defaults
By default, no preferences are disabled.
Enable Specific Preferences
If you want a specific set of preferences to always be enabled, you can similarly use the preferences.enabled property. For example, the following forces armor and offhand to be enabled.
[preferences]
enabled = ['armor', 'offhand']
Defaults
By default, no preferences are enabled.
Permissions
This mod optionally supports fabric-permissions-api for command permissions. Each command can be controlled with a specific permission. The following table contains the full list of permissions.
| Permission | Description |
|---|---|
keep_it_personal.kip |
View all the preferences they have selected |
keep_it_personal.kip.<preference> |
View and update a specific preference |
keep_it_personal.kip.everything |
Add every available preference to selected preferences |
keep_it_personal.kip.nothing |
Remove every available preference from selected preferences |
Permission Configuration Properties
For servers which do not use fabric-permissions-api or also use OP permission levels, you may specify a default permission level for these commands. This is set as permissions.permissionLevel in the configuration file.
The permission level can be either a numeric or text value, with text being the preferred option.
| Name | Text Value | Numeric Value |
|---|---|---|
| All | all |
0 |
| Moderators | moderators |
1 |
| Gamemasters | gamemasters |
2 |
| Admins | admins |
3 |
| Owners | owners |
4 |
For example, to let players with the moderators permission level or above be able to use this command, you would specify the following in keep_it_personal.toml.
[permissions]
permissionLevel = 'moderators'
By default, the permission level is all. Note that the permission level overrides permissions set in the fabric-permissions-api.
Defaults
The default permission level is 0 which is given to every player. If you wish to control permissions with a permission manager, you should update the permission level accordingly.
External Compatibility
Currently, support for other mods which extend the player inventory is unknown but likely unsupported. Support for Trinkets is currently in progress, however, and other mods may be supported in the future.
下载 Keep It Personal
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
下载 Keep It Personal
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧