它有什么功能?
- 此数据包允许你配置玩家在死亡时哪些物品不会掉落,以及其余物品的掉落比例。
- 单个或不可堆叠的物品会根据与堆叠物品(即堆叠中数量大于1的物品)相同的掉落概率进行随机掉落。
- 你可以配置死亡后经验值的处理方式。默认情况下所有物品都会掉落,且在死亡地点有 50% 的概率被拾取,这比原版高出许多,且上限为 7 级。
- 你可以给玩家添加带有
always_drop:1b 和 never_drop:1b 自定义数据的物品,这些设置会优先于通用列表生效。
- 可调整物品和经验值在消失前的存在时间(生命周期)。
- 普通玩家可以通过使用
/trigger check_keep_inventory 查看当前设置。默认情况下会在首次加入游戏时显示,但可以关闭该提示。
此数据包的主要目的是为服务器生存模式(SMP)创建一个不掉落物品列表。
我受到启发的那个数据包(Keep Some Inventory by PuckiSilver)虽然易于制作但难以使用,且功能不足。
因此我制作了自己的版本,随后又添加了一些锦上添花的功能。
物品设置的优先级
- components:{"minecraft:custom_data":{always_drop:1b}}
示例命令:/give @s minecraft:ender_chest[minecraft:custom_data={always_drop:1b}] 1
- components:{"minecraft:custom_data":{never_drop:1b}}
- 行为类似于基岩版的
keep_on_death 标签,除非该物品同时具有消失诅咒
- 不掉落物品列表。
- 默认列表位于
bki:reset 函数中,你可以使用文本编辑器在那里编辑,然后运行该函数,或者尝试在游戏中使用 bki:settings 函数。
- 其余物品掉落。默认情况下是全部掉落,但你可以通过与上述列表相同的方式调整掉落百分比。
要调整设置,请使用文本编辑器更改 reset.mcfunction 文件中的值,或使用游戏中的设置命令:
/function bki:settings
图片未展示可调整的生命周期功能

除非我自己需要更新,否则不会再发布此数据包的任何更新,但欢迎你自己修改。
为此,我留下了注释,以便未来有人能够快速理解每部分的作用。
兼容性
- 此数据包很可能无法与坟墓类数据包或任何处理死亡时物品的数据包共存。
- 它可能与模组物品兼容,但我尚未进行测试。
What does it do?
- This datapack allows you to configure which items don't drop upon player death and how much is dropped from the rest.
- Singular or unstackable items have random chance of dropping based on the same value how much plural items (means more than 1 item in the stack) are dropped.
- It let you configure how xp behave after death. By default everything is dropped and 50% can be pick up at the place of death which is far more than vanilla and it's max 7 levels.
- You can give players items with custom data always_drop:1b and never_drop:1b which take priority over general list.
- Adjustable lifetime for items and xp (before they despawn).
- Current settings can be seen by regular player by using
/trigger check_keep_inventory. It shows on first join by default but can be turned off
Main purpose of this datapack was to create list of items that do not drop for a SMP.
The datapack I was inspired by (Keep Some Inventory by PuckiSilver), was insufficient, easy to made but hard to use.
So I made my own. Then I added rest of the features that were nice to have.
Priority of items settings
- components:{"minecraft:custom_data":{always_drop:1b}}
Example command: /give @s minecraft:ender_chest[minecraft:custom_data={always_drop:1b}] 1
- components:{"minecraft:custom_data":{never_drop:1b}}
- Works like Bedrock keep_on_death tag, unless the item als have curse of vanishing
- List of items that do not drop.
- Default list is inside bki:reset function, you can edit it there with text editor and than run the function or try using bki:settings function in game.
- The rest is dropped. By default it is everything, but you can adjust drop percentage in the same way as the list above
To adjust the settings change values in file reset.mcfunction with text editor or use in game settings with
/function bki:settings
Photo misses adjustable lifetime feature

There will be no updates of this datapack unless I will need it myself, but feel free to modify it yourself
For that I'm leaving comments so future someone will be able to quickly understand what each part does
Compatability
- This pack will most likely not work together with grave packs or packs doing anything to items on death.
- It might work with modded items, but I haven't tested it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧