概览
重做的保留物品栏(Reworked Keep Inventory) 彻底改变了 keepInventory 游戏规则的运作方式,允许玩家在复活时保留武器、工具和护甲等装备,但需要承受耐久度损失并消耗一半的经验值(可配置)。你的其余物品会被存储在一个手持箱子的悦灵(Allay)身上,该悦灵会在你死亡的位置生成,这是对传统墓碑模组/数据包的一种变体。
这使得死亡仍然具有惩罚性,同时避免了因失去辛苦获得的装备而产生的挫败感,也无需担心丢失的物品和经验值被存放在难以到达的恶劣地点。
功能
- 当你死亡时,所有装备和一半的经验值(可配置)会在复活后保留。
- 其余物品会被存储在一个手持箱子的悦灵身上,该悦灵会在你死亡的位置生成。
- 复活后,默认情况下你的装备会损失 15% 的耐久度(可配置)。不过装备永远不会完全损坏。
- 当玩家靠近其死亡位置时,悦灵会飞向对应的玩家,如果玩家在恶劣地点死亡,这将有助于更容易地找回丢失的物品和经验值。
- 空手右键点击悦灵以取下箱子将返还所有存储的物品。
- 一旦悦灵被取走,悦灵将会消失,因为它已完成了使命。
配置
你可以通过修改 data/reworked_keep_inventory/tags/item/keep.json 中的标签来更改被视为装备的物品。
- 若要使某些装备掉落,请将其从列表中移除。若要添加应保留的物品,请将其添加到该列表中。
你可以通过修改 data/reworked_keep_inventory/item_modifier/damage_gear.json 中的数值来调整装备伤害惩罚。
- 若要移除装备伤害惩罚,你可以将此数值设置为 0。
你可以通过输入以下命令来修改经验惩罚系数:scoreboard players set #reworked_keep_inventory.xp.penalty.factor reworked_keep_inventory.math [整数系数]。
- 默认为 2,即存储 1/2 的经验值。3 表示存储 1/3 的经验值。4 表示存储 1/4 的经验值,依此类推。
兼容性
- 此数据包极有可能无法与墓碑包或涉及玩家死亡时背包功能的类似包一起使用。
- 此数据包试图通过使用原版物品标签以及模组加载器常用的
c标签约定来实现与模组物品的兼容。但仍极有可能存在不兼容情况。如果你是整合包作者,请确保按照上方“配置”部分所示更新保留物品标签。
常见问题
问:玩家如何从悦灵处取回物品?
答:玩家需要空手右键点击悦灵。
问:装备会完全损坏吗?
答:不会,它们耐久度的最低限度为 0。
问:悦灵会死亡或消失吗?
答:它们不应该死亡,因为它们被设置为无敌状态。当玩家从中取回物品时,悦灵会消失,它们绝不会自行消失。
问:如果玩家在收集悦灵物品前再次死亡怎么办?
答:另一个拥有独立库存的悦灵将在该死亡位置生成。现有的悦灵不会合并也不会消失。
问:其他玩家能否从他们未生成的悦灵处收集物品?
答:可以,我将来可能会重新考虑这一点,但为了简单起见,任何人都可以从任何悦灵处收集物品。
问:如果玩家在岩浆中或虚空里死亡怎么办?
答:悦灵仍会安全生成。当玩家靠近时,它们会从岩浆中飞出。当玩家在虚空中死亡时,它们会在每个维度的底部生成。
问:如果玩家没有任何物品怎么办?
答:不会生成悦灵。
问:有多个来自不同玩家的悦灵生成,我们如何区分它们?
答:悦灵会跟随各自的主人。玩家应该彼此远离,以观察哪个悦灵跟随谁。
问:悦灵能看到多远的玩家?
答:与普通悦灵相同,64 格。我发现即使修改
follow_range属性也无法更改此数值。
问:为什么悦灵移动速度比正常慢?
答:由于其 64 格的跟随范围,在正常速度下我觉得它们到达玩家的速度太快了。在我看来,这样感觉不对。你可以理解为悦灵在艰难地搬运玩家的物品。
问:我可以更改耐久度和经验惩罚吗?
答:可以,请参阅配置部分。
问:我能在自己的整合包、服务器、视频等中使用它吗?
答:可以,只需不要将其据为己有。请注明出处。
管理员工具
要清除渲染距离内的所有悦灵,请输入命令 /function reworked_keep_inventory:admin/clear_all,它们会将所有存储的物品掉落在地面上。
要使渲染距离内的所有悦灵发光,请输入命令 /function reworked_keep_inventory:admin/glow
致谢
- 大量灵感来源于 PuckiSilver 的 Keep Some Inventory 数据包。递归物品掉落函数也是从这个包中学到的。
- 经验值数学计算知识来源于 Conure512 的 Very Simple Gravestones。
OVERVIEW
Reworked Keep Inventory overhauls the way the keepInventory gamerule works by letting you respawn with equipment like weapons, tools, and armor at the cost of durability and half of your experience points (configurable). The rest of your inventory is stored within an Allay holding a chest that is spawned at your death location, a twist on the typical gravestone mod/datapack.
This allows death to still be punishing, without the frustration of losing hard earned equipment nor having your lost items and experience stored in a rough spot.
FEATURES
- When you die, all your equipment and half of your experience points (configurable) is kept upon respawning.
- The rest of your items are stored within an Allay holding a chest that is spawned at your death location.
- Upon respawning, by default 15% of durability (configurable) on your equipment is lost. Equipment will never fully break however.
- The Allay will fly towards the respective player it spawned from when the player is close to their death location, making it easier to regain one's lost items and experience if the player died within a rough spot.
- Right clicking on the Allay with an empty hand to take the chest will give back all stored items.
- Once the Allay is retrieved, the Allay will disappear having fulfilled it's duty.
CONFIGURATION
You can modify the items that are considered equipment by modifying the tag within data/reworked_keep_inventory/tags/item/keep.json.
- To make gear that should be dropped, remove them from that list. To add items that should be kept, add them to that list.
You can modify the equipment damage penalty by modifying the number within data/reworked_keep_inventory/item_modifier/damage_gear.json.
- To remove the equipment damage penalty, you can set this number to 0.
You can modify the experience penalty factor by typing the following command scoreboard players set #reworked_keep_inventory.xp.penalty.factor reworked_keep_inventory.math [integer factor].
- By default it is 2, with 1/2 experience being stored. 3 with 1/3 experience being stored. 4 with 1/4 experience being stored, etc.
COMPATIBILITY
- This datapack will VERY likely not work together with grave packs or similar packs with features relating to player's inventories during deaths.
- This datapack tries to be compatible with modded items, by making use of both vanilla item tags and the common convention of
ctags used by mod loaders. There still however very likely will be incompatibilies. If you are a modpack creator, please make sure to update the keep item tag as seen above in the CONFIGURATION section.
FAQ
Q. How does the player retrieve items from the Allay?
A. The player needs to right click on the Allay with an empty hand.
Q. Will equipment ever fully break?
A. No, the maximum durability they will go down to is 0 durability.
Q. Will the Allay ever die or despawn?
A. They shouldn't be able to die, as they are set to be invulnerable. The Allay will despawn when a player retrieves from it, they will never despawn on their own.
Q. What if the player dies again before collecting from their Allay?
A. Another one with a seperate inventory will spawn at that death location. The existing one(s) will not combine or despawn.
Q. Can other players collect items from Allays they didn't spawn
A. Yes, I may reconsider this in the future, but for sake of simplicity anyone is able to collect from any Allay.
Q. What if the player dies in lava or in the void?
A. The Allay will still spawn safely. They will fly out of lava when the player gets close. When the player dies in the void, they will be spawned at the bottom of each respective dimension.
Q. What if the player has no items?
A. An Allay will not spawn.
Q. There are multiple Allays that have spawned from different players, how can we tell them apart?
A. Allays will follow their respective owner. Players should move away from each other to see which Allay follows who.
Q. How far can the Allay see the player?
A. Same as a normal Allay, 64 blocks. I found this could not be changed, even with modifying the
follow_rangeattribute.
Q. Why does the Allay move slower than a normal Allay?
A. Because of their 64 block follow range, at normal speeds I felt they reached the player far too fast. In my eyes, it did not feel right. You can think of it as the Allay struggling to carry the player's inventory.
Q. Can I change the durability and experience penalty?
A. Yes, please see the CONFIGURATION section.
Q. Am I able to use this in my own modpacks, servers, videos, etc?
A. Yes, just do not pass it off as your own creation. Credit accordingly.
ADMIN TOOLS
To clear all Allays within render distance, enter the command /function reworked_keep_inventory:admin/clear_all, they will drop all their stored items on the ground.
To make all Allays glow within render distance, enter the command /function reworked_keep_inventory:admin/glow
CREDITS
- Large inspiration by PuckiSilver's Keep Some Inventory datapack. Recursive item drop function learned from this pack.
- Experience math calculations learned from Conure512's Very Simple Gravestones.
下载 Reworked Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reworked Keep Inventory
下载 Reworked Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reworked Keep Inventory
下载 Reworked Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reworked Keep Inventory
下载 Reworked Keep Inventory
将版本 1.1 移植到 26.2
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
添加了基于官方概念图的蓝蛙和红眼树蛙变体。
数据包
为模组生物群系添加原版回溯特性!
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
评论 0
登录后参与评分
还没有评论,来抢沙发吧