Keep Inventory 固然好用,但当你故意死亡以返回基地时,它就派不上用场了。这个数据包旨在解决这一问题,同时保持 Keep Inventory 的核心机制基本不变!
简介
- 死亡时保留重要物品
- 保留其他物品中的 40%
- 可通过设置更改数据包行为
- 支持制作扩展插件以增加功能
工作原理
此数据包允许你在死亡时保留装备(以及部分其他物品,见下文),其余物品则有(默认)40% 的几率保留在背包中。经验值会掉落在地上供你拾取(默认保留 66% 的经验值)。
保留的物品
- 任何具有耐久度的可附魔物品
- 船 + 带箱子的船
- 弓 + 弩 + 箭(所有类型)
- 雪球 + 鸡蛋 + 风弹
- 烟花火箭
- 桶(满的和空的)
- 拴绳 + 鞍
- 指南针(包括恢复用的指南针)
- 末影珍珠
自定义选项
数据包中有 2 个设置项:Item Keep Chance(物品保留几率,0-100)和 Xp Keep Amount(经验保留量,0-3)。这两个设置分别可以通过 /dialog show @s lki:settings 进行修改(新增于 1.3 版本)(请注意,滑块显示的是默认值而非当前值)。
此外,还有一个针对硬核玩家的独立设置(新增于 1.2 版本),该设置允许你选择退出数据包的背包保留部分(但仍会合并同类物品)。你可以通过进入菜单并选择 LKI Menu(新增于 1.3 版本)来访问此设置。
更多详情
- Item Keep Chance 使用百分比
- Xp Keep Amount 使用三分之一为单位
1.3 版本之前的自定义选项
我就直接复制粘贴这段内容:
数据包中有 2 个设置项:Item Keep Chance(物品保留几率,0-100)和 Xp Keep Amount(经验保留量,0-3)。这两个设置分别可以通过 /function lki-settings:item_lose_chance {setting:<VALUE>} 和 /function lki-settings:xp_keep_amount {setting:<VALUE>} 进行修改。
此外,还有一个针对硬核玩家的独立设置(新增于 1.2 版本),该设置允许你选择退出数据包的背包保留部分(但仍会合并同类物品)。此设置可以通过 /trigger lki:opt_out 和 /trigger lki:opt_in 命令进行修改(任何玩家均可运行这些命令)。
扩展插件
你可以为此数据包制作扩展插件,只需使用 drop_searches 和 keep 标签即可!
有一个预制的扩展插件 Keep Modded Inventory,它为部分模组提供了支持!
标签/函数信息
lki\tags\function\drop_searches.json会在玩家死亡时以该玩家的身份运行,用于检查可掉落物品。lki\tags\item\keep.json用于定义所有保留的物品(及保留标签),你可以在其中添加更多物品和模组物品。lki:drop_item {slot:<SLOT>}用于投掷物品并应用随机几率机制。- 请查看数据包内部以获取更多信息!
Keep Inventory is great and all, until you die on purpose to get back to your base. This datapack aims to fix that while still leaving keep inventory somewhat the same!
Summary
- Keep Important Items on death
- Keep 40% of other items
- Can change datapack with settings
- Can make add-ons to add functionality
How does it work
This datapack lets you keep your equipment (and some other items, see below) when you die, every other item has a (default) 40% chance to stay in your inventory. Experience is dropped on the ground to be picked up (default 66% of exp kept).
Items Kept
- Any enchantable item with durability
- Boats + Chest Boats
- Bows + Crossbows + Arrows (all types)
- Snowballs + Eggs + Wind Charges
- Firework Rockets
- Buckets (filled and unfilled)
- Leads + Saddles
- Compasses (recovery ones as well)
- Ender Pearls
Customizablity
There are 2 settings in the pack: Item Keep Chance (0-100) and Xp Keep Amount (0-3). These two settings can be changed with /dialog show @s lki:settings (added in 1.3) respectively (do note that the sliders show the default value and not the current one).
There is also an individual setting for more hardcore players (added in 1.2) this setting allows you to opt-out of the inventory part of the datapack (still stacks the items). This setting can be by going to the menu and selecting LKI Menu (added in 1.3).
More Details
- Item Keep Chance uses percentages
- Xp Keep Amount uses thirds
Customizablity for verisons before 1.3
ima just gonna copy-paste this:
There are 2 settings in the pack: Item Keep Chance (0-100) and Xp Keep Amount (0-3). These two settings can be changed with /function lki-settings:item_lose_chance {setting:<VALUE>} and /function lki-settings:xp_keep_amount {setting:<VALUE>} respectively.
There is also an individual setting for more hardcore players (added in 1.2) this setting allows you to opt-out of the inventory part of the datapack (still stacks the items). This setting can be changed with the /trigger lki:opt_out and /trigger lki:opt_in commands (can be ran by any player).
Add-Ons
You can make add-ons for this datapack you can do so by using the drop_searches and keep tags!
One pre-made add-on is Keep Modded Inventory which adds support for some mods!
Tag/Function Info
lki\tags\function\drop_searches.jsonis ran when a player dies as that player to check for drop-able items.lki\tags\item\keep.jsonis for every kept item (and kept tag), you can add more items and modded items there.lki:drop_item {slot:<SLOT>}is used to drop an item and apply the random chance mechanic.- Look in the datapack for more info!
下载 Luna's Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luna's Keep Inventory
下载 Luna's Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luna's Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luna's Keep Inventory
下载 Luna's Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luna's Keep Inventory
下载 Luna's Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Luna's Keep Inventory
下载 Luna's Keep Inventory
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧