简介
在原版 Minecraft 中,生物只有在被玩家击杀时才会掉落经验值和/或稀有战利品,若因环境因素死亡则不会掉落。本模组使得生物无论死因如何,都会始终掉落经验球和战利品。这对于喜欢建造被动式生物农场等的玩家非常有用。

安装
需要 Fabric Loader 和 Fabric API。
配置
自 MC 1.17.1 起,模组的配置界面已被游戏内规则(gamerules)取代,以便支持按世界进行配置。
如果你的世界中禁用了作弊权限,可以通过将世界开放为局域网来临时获取作弊权限以编辑游戏规则。
始终掉落经验值 (Always drop XP)
控制所有生物在被击杀时是否掉落经验值,无论击杀者是否为玩家。
/gamerule always-drop-loot:alwaysDropXp true:无论生物如何死亡,都将始终掉落经验值。(默认)
/gamerule always-drop-loot:alwaysDropXp false:原版行为;仅当生物被玩家击杀时才掉落经验值。
被动经验值修饰符 (Passive XP modifier)
控制当生物未被玩家击杀时所掉落的经验值数量。仅在 always-drop-loot:alwaysDropXp 为 true 时生效。此游戏规则中设置的值将乘以生物原本的经验值掉落量,结果四舍五入至最接近的整数。
gamerule always-drop-loot:passiveXpModifier 1.0:无论生物如何死亡,都将掉落相同的经验值数量(默认)
gamerule always-drop-loot:passiveXpModifier 0.5:当生物未被玩家击杀时,将掉落一半的正常经验值。
战利品掉落模式 (Loot drop mode)
控制 killed_by_player 战利品条件是否始终通过,无论实体是否由玩家击杀。
/gamerule always-drop-loot:lootDropMode ALWAYS_AS_PLAYER:`killed_by_player` 战利品条件始终通过(默认)
/gamerule always-drop-loot:lootDropMode NEVER_AS_PLAYER:`killed_by_player` 战利品条件始终不通过
/gamerule always-drop-loot:lootDropMode VANILLA:原版行为;仅当生物被玩家击杀时,`killed_by_player` 战利品条件才通过。
/gamerule always-drop-loot:lootDropMode VANILLA_INVERSE:仅当生物**未**被玩家击杀时,`killed_by_player` 战利品条件才通过。
致谢
特别感谢 sargunv 创建此模组、撰写描述并使其开源。
我所做的唯一工作是将此模组移植到最新版本。
Summary
In vanilla, mobs only drop experience and/or rare loot when killed by a player, not when killed by their environment. With this mod, mobs will always drop experience orbs and loot, regardless of cause of death. This is useful for people who like to build passive mob farms and such.

Installation
Requires Fabric Loader and Fabric API.
Configuration
Since MC 1.17.1, the mod config screen has been replaced with gamerules in order to allow configuration per world.
If you have cheats disabled in your world, you can temporarily get cheat permissions to edit gamerules by opening your world to LAN.
Always drop XP
Control whether all mobs drop XP when killed, regardless of whether a player killed them.
/gamerule always-drop-loot:alwaysDropXp true: mobs will always drop XP regardless of how they died. (default)
/gamerule always-drop-loot:alwaysDropXp false: vanilla behavior; mobs will drop XP iff killed by a player.
Passive XP modifier
Control the amount of XP dropped when mobs are not killed by a player. Only applies when always-drop-loot:alwaysDropXp is true. The value set in this gamerule is multiplied by the mob's natural XP drop value, and the result is rounded to the nearest integer.
gamerule always-drop-loot:passiveXpModifier 1.0: mobs will drop the same amount of XP regardless of how they died (default)
gamerule always-drop-loot:passiveXpModifier 0.5: mobs will drop half the normal XP when not killed by a player.
Loot drop mode
Control whether the killed_by_player loot condition always passes, regardless of whether the entity was killed by a player.
/gamerule always-drop-loot:lootDropMode ALWAYS_AS_PLAYER: the killed_by_player loot condition always passes (default)
/gamerule always-drop-loot:lootDropMode NEVER_AS_PLAYER: the killed_by_player loot condition always fails
/gamerule always-drop-loot:lootDropMode VANILLA: vanilla behavior; the killed_by_player loot condition passes iff the mob was killed by a player.
/gamerule always-drop-loot:lootDropMode VANILLA_INVERSE: the killed_by_player loot condition passes iff the mob was NOT killed by a player.
Credits
big thanks to sargunv for creating the mod, the description and making it open source.
The only work I did was port this to the latest version.
评论 0
登录后参与评分
还没有评论,来抢沙发吧