PartialKeepInventory
是否曾为丢失所有重要物品、导致世界/服务器陷入停滞而沮丧?是否讨厌 keepInventory 那种毫无后果的感觉?PartialKeepInventory 旨在在这两者之间找到“最佳平衡点”。
PartialKeepInventory 是 keepInventory 的高度模块化替代方案;你可以保留特定类别的物品、某些槽位甚至单个物品在死亡时不被掉落,而不是保留整个背包和等级。
使用方法
首先,请确保 keepInventory 已禁用,并启用 partialKeepInventory 游戏规则。

启用功能
目前没有任何设置,在禁用 keepInventory 的情况下死亡行为将保持正常。你需要单独启用“功能”。在此示例中,我们希望死亡时保留我的工具和装备的护甲。因此,我们使用 partialKeepInventory features add 命令启用 tools 和 equipment 功能。
你也可以使用 partialKeepInventory features 命令检查哪些功能已启用。

完整的功能列表如下:
equipment - 装备在护甲槽中的任何物品
equippables - 可以装备到护甲槽中的任何物品。
tools - 具有工具组件的任何物品,例如镐和铲子(也应包括武器)
hotbar - 位于快捷栏中的任何物品。
offhand - 副手槽中的任何物品。
epic/rare/common/uncommon - 具有相应稀有度的任何物品,通过名称颜色指示(紫色/蓝色/黄色/白色)。
experience - 经验值和等级
customList - 使用 partialKeepInventory itemList add 命令添加到 itemList 中的任何物品。
PartialKeepInventory
Frustrated when you lose all your important stuff and suddenly your world/server grinds to a halt? Hate how consequence free keepInventory feels? PartialKeepInventory aims to find a "happy middleground" between the two.
PartialKeepInventory is a highly modular alternative to using keepInventory; you can keep specific groups of items, certain slots and even individual items from being dropped upon death, as opposed to your whole inventory and levels.
Usage
To start with, ensure that keepInventory is disabled and instead enabled the partialKeepInventory gamerule.

Enabling Features
Currently, nothing is set up and dying will behave as normal with keepInventory disabled. You need to enable "features" individually. For this example, we want to keep my tools and equipped armour when we die. So we enable the tools and equipment features, using the partialKeepInventory features add command.
You can also check what features are enabled using the partialKeepInventory features command.

The complete list of features is as follows:
equipment - Any items equipped in your armor slots
equippables - Any items that are able to be equipped in your amor slots.
tools - Any items with a tool component, such as pickaxes and shovels (should also include weapons)
hotbar - Any items that are in your hotbar.
offhand - Any items in your offhand.
epic/rare/common/uncommon - Any items with the respective rarity, indicated by name colour (purple/blue/yellow/white).
experience - Experience and levels
customList - Any items added to the itemList using the partialKeepInventory itemList add command.
评论 0
登录后参与评分
还没有评论,来抢沙发吧