介绍
Equal Loot
Equal loot is a simple mod that allows mobs to drop their loot multiple times for each player that assisted in its kill.
Only the player the drop it’s for can see and pickup the items.
Additionally, the mod offers various configuration to change the behaviour of this system.
By default, player based loot is only enabled for bosses (mobs in the c:bosses tag).
A maximum of 5 players that hit the boss within the last 15 seconds and dealt at least 5% of the mobs health receive the loot (sorted by the damage done).
Note that the player who killed the mob is not guaranteed to also receive its loot.
If they do not meet the requirements they will only receive the mobs loot if the maximum player amount is not reached.
⚙️ Configuration
The configuration of this mod is data-driven meaning you would need to create a datapack to change the behaviour.
A config is defined via a file under data/<namespace>/equal_loot/entity
and have the following format:
{
"include": <Holder>, // A tag or list of entities that apply to this config
"exclude": <Holder>, // A tag or list of entities that are excluded from this config
"max_players": <integer>, // The amount of players that can receive the loot at max. Set to 0 to have no limit
"min_damage": <float>, // The minimum damage a player needs to do to count
"percentage": <true | false>, // If true min_damage is treated as a percentage value based on the mobs max health. Otherwise min_damage is the flat amount of damage required
"damaged_within": <integer>, // Time in ticks the player needed to hit the mobs within to count. So if the player hasnt hit the mob in this time they wont receive the loot
"killer_handling": <"always" | "fill" | "requirements">, // How the loot of the killing player should be handled. See below
"priority": <integer>, // Only relevant if a config overlaps with another. This defines which config will take precedence then
}
Killer Handling:
always: The killing player always receives the loot
fill: If the killing player does not meet the requirement (dealing enough damage or hit the mob since x ticks) they only receive the loot if max_players is not reached
requirements: If the killing player does not meet the requirements they do not receive the loot
Example:
The following is the configuration the mod ships with
{
"damaged_within": 300,
"exclude": [],
"include": "#c:bosses",
"max_players": 5,
"min_damage": 0.05,
"percentage": true,
"priority": 10
}
常见问题
Equal Loot 支持哪些 Minecraft 版本?
Equal Loot 支持 Minecraft Java 版 1.21.1–26.3,共 5 个版本,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。
Equal Loot 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
flemmli97 的其他作品
查看全部 →TenshiLib (Forge/NeoForge)
我其他项目的前置库模组
Improved Mobs (Forge, NeoForge)
更强大的生物,提升游戏难度
Flan (Forge, NeoForge)
服务端圈地模组
Mob Battle Mod (Forge/NeoForge)
用于创建生物对战的创意工具
评论
登录后评论和评分