Equal Loot
Equal Loot 是一个简单的模组,允许生物为每个协助击杀它的玩家掉落一次战利品。 只有目标玩家才能看到并拾取这些物品。
此外,该模组提供了多种配置选项来改变此系统的行为。
默认情况下,基于玩家的战利品仅对 Boss(c:bosses 标签中的生物)启用。
在最近 15 秒内攻击过 Boss 且造成至少 5% 生命值伤害的玩家最多可有 5 人获得战利品(按造成伤害量排序)。
请注意,击杀该生物的玩家并不保证也能获得其战利品。
如果击杀者未满足要求,只有在未达到最大玩家数量限制时,他们才会获得该生物的战利品。
⚙️ 配置
本模组的配置由数据包驱动,因此你需要创建一个数据包来更改其行为。
配置文件通过位于 data/<namespace>/equal_loot/entity 下的文件定义,
格式如下:
{
"include": <Holder>, // 应用到此配置的标签或实体列表
"exclude": <Holder>, // 从此配置中排除的标签或实体列表
"max_players": <integer>, // 最多可获得战利品的玩家数量。设为 0 表示无限制
"min_damage": <float>, // 玩家需要造成的最小伤害值才计入统计
"percentage": <true | false>, // 如果为 true,则 min_damage 被视为基于生物最大生命值的百分比值。否则 min_damage 是所需的固定伤害量
"damaged_within": <integer>, // 玩家需要在多少刻内攻击生物才计入统计。如果玩家在此时间内未攻击生物,他们将无法获得战利品
"killer_handling": <"always" | "fill" | "requirements">, // 如何处理击杀者的战利品。详见下文
"priority": <integer>, // 仅当配置与其他配置重叠时相关。这定义了哪个配置将具有优先权
}
击杀者处理逻辑:
always:击杀者始终获得战利品
fill:如果击杀者未满足要求(造成足够伤害或在 x 刻内攻击过生物),只有在 max_players 未达到上限时才获得战利品
requirements:如果击杀者未满足要求,则不获得战利品
示例:
以下是模组自带的配置
{
"damaged_within": 300,
"exclude": [],
"include": "#c:bosses",
"max_players": 5,
"min_damage": 0.05,
"percentage": true,
"priority": 10
}
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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Equal Loot
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
EqualDrops 1.1.0
- 更新到 26.3
- 更新到 26.1
- 添加掉落物发光选项
EqualDrops 1.0.0
- 首次发布
有关过往版本,请参阅:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
一个基于构建器的 Minecraft 配置库!
评论 0
登录后参与评分
还没有评论,来抢沙发吧