概览
Drop Drop XP 是一个数据包,旨在消除死亡时丢失经验的麻烦。 与 gamerule keepInventory(保留物品)不同,玩家死亡时会掉落物品,但无需担心丢失经验等级。当你想要附魔时,丢失经验可能会令人沮丧,因此该数据包在玩家仍然掉落物品的同时,阻止了经验球的掉落。此数据包还提供了在玩家死亡时施加经验惩罚的选项。
计分板到二进制分解由 Cloud Wolf 实现。
可选功能
默认情况下,该数据包的目标是防止死亡时丢失任何经验等级。然而,有一些选项可以在死亡时应用惩罚。通过使用命令 /function dont_drop_xp:_change_xp_penalty_type,你可以更改玩家死亡时将应用的经验惩罚类型。操作员还可以使用 /function dont_drop_xp:_change_xp_percent_lost 自定义丢失的经验百分比。
惩罚类型选项:
- 不掉落经验:默认选项。玩家不会丢失任何等级。
- 掉落 X% 的经验:玩家会丢失其经验值的一个百分比,范围从 10% 到 90%。默认为 60%。
- 两者兼有;由玩家决定:上述两者的混合。默认情况下,玩家将保留所有经验。会出现一条新的文本消息,给予玩家选择是否接受惩罚的机会。这是为了让玩家在公平或不公平的死亡中拥有更多的自主权。
安装与卸载
这个数据包的安装和卸载非常简单。
只需将数据包文件放入单人或多人世界的 datapacks 文件夹中。加载世界或使用 /reload 命令后,数据包即可安装完毕。
要卸载,请使用命令 /function #dont_drop_xp:uninstall。这将自动移除所有相关的计分板目标。之后,你可以禁用或删除该数据包。
Overview
Drop Drop XP is a datapack that eliminates the hassle of losing your experience when dying. Unlike the gamerule keepInventory, players will drop their items upon death without worrying about losing their levels. It may be annoying to lose your XP when you want to enchant something, so this datapack removes players dropping XP while still losing their items. This datapack also has the option to have XP penalties when players die.
Scoreboard to Point Binary Decomposition by Cloud Wolf.
Optional Features
By default, the datapack's goal is to prevent any levels from being lost on death. However, there are a couple of options to have a penalty be applied upon death. By using the command, /function dont_drop_xp:_change_xp_penalty_type, you can change the type of XP penalty that will be applied when players die. Operators can additionally customize the percent of XP lost with /function dont_drop_xp:_change_xp_percent_lost.
Penalty Type Options:
- Don't Drop XP: Default option. Players will not lose any levels.
- Drop X% of XP: Players lose a percentage value of their XP ranging from 10% to 90%. Defaults to 60%.
- Do Both; Players Decide: A mixture of the two. Players will retain all XP by default. A new text message will appear and give players the option to take a penalty. This is to give more freedom to players to decide for fair or unfair deaths.
Installing and Uninstalling the Pack
This datapack can not be easier to install and uninstall.
Simply place the datapack file into the datapacks folder in your singleplayer or multiplayer world. Upon loading the world or by using the /reload command, the datapack will be installed.
To uninstall, use the command, /function #dont_drop_xp:uninstall. This will automatically remove all related objective scoreboards. You can then disable or delete the datapack from there.
评论 0
登录后参与评分
还没有评论,来抢沙发吧