经验值倍率
XP Multiplier 只做一件事,而且做得很好:它改变你获得的经验值数量。怪物击杀使用一个数值,其他所有情况使用另一个数值——附魔、修补和修理不再成为瓶颈;如果你调低倍率,它们也可以成为真正的瓶颈。
所有内容均在服务器端运行。玩家使用原版客户端加入即可享受完整效果:无需客户端模组、无需资源包、无需配置同步。
功能
?️ 两种倍率,或按怪物单独设置
怪物击杀与游戏其余部分的设置是独立的,因此你可以将怪物经验值翻四倍,而不影响矿石或熔炉的产出。然后为任何值得拥有独立倍率的怪物进行覆盖。
"multiplier": 2.0,
"other_multiplier": 1.0,
"per_mob": {
"minecraft:enderman": 4.0,
"minecraft:blaze": 3.0
}
? 涵盖所有来源,不仅仅是怪物
other_multiplier 涵盖矿石、熔炉和烟熏炉、钓鱼、繁殖、村民和流浪商人交易、磨石以及投掷的附魔之瓶——因为它们都通过游戏中相同的途径获得经验值,且没有任何一项被意外遗漏。
? 小数倍率确实有效
1.5 的倍率不会被舍入取整。整数部分保证发放,剩余部分则是一个概率事件,因此 7 点经验在 1.5× 倍率下有一半几率支付 10 点,另一半几率支付 11 点。在多次发放中,平均值恰好为 1.5× ——单次发放更像是一次抛硬币而非承诺,这是允许使用小数倍率的诚实代价。
? 或者让游戏更难
倍率可以降至 0.0,而不仅仅是向上调整。将每次发放减半以获得更慢的节奏,或将怪物经验值设为 0.0,迫使玩家通过矿石和交易来获取等级。相同的小数处理机制同样适用,因此 0.5 代表每次发放真正的一次抛硬币概率,而非舍入规则。
? 黑名单与Boss安全
末影龙和凋灵默认被排除在外,因为单次击杀价值数千点的经验值正好是不应该被放大的东西。如果你不同意,可以从列表中删除它们——没有任何内容被硬编码。
末影龙是一个真正的特殊情况:它在死亡动画期间发放经验值,而不是通常的掉落方式,这也是它如何绕过大多数此类模组的原因。这里对其进行了显式处理,因此将其列入黑名单实际上有效,并且为其设置的按怪物倍率也真正生效。
? 仅玩家击杀,或全部计算
默认情况下,只有归因于玩家的击杀才会被倍率放大。原版游戏已经规定,除非玩家最近攻击过怪物,否则不会给予怪物经验值,因此这主要决定 finishing blow(最后一击)发生什么——关闭 require_player_kill 后,即使是一只狼为你完成的击杀仍会计数。
?️ 永远不会复制玩家的等级
玩家死亡时掉落的经验值是他们已获得经验值的一部分,而非新的奖励。玩家无条件被排除在外——没有配置选项可以将死亡变成印刷等级的方法。
命令
| 命令 |
权限 |
描述 |
/xpmult |
level 2 |
显示当前设置和配置文件路径 |
/xpmult status |
level 2 |
同上 |
/xpmult set <0.0–64.0> |
level 2 |
更改怪物经验值倍率并保存 |
/xpmult other <0.0–64.0> |
level 2 |
更改其他所有来源的倍率并保存 |
/xpmult enabled <true|false> |
level 2 |
开启或关闭倍率功能 |
/xpmult reload |
level 2 |
手动编辑文件后重新加载配置 |
安装
- 安装 Fabric Loader 和 Fabric API
- 将 jar 文件放入你的
mods 文件夹
- 启动服务器——首次启动时会在
config/xpmultiplier.json 生成配置文件
仅在服务器端需要。在单人游戏中安装到客户端侧也同样有效(单人游戏运行内部服务器)。
配置
文件位于 config/xpmultiplier.json,并在开头带有注释头,解释每个选项。
{
"enabled": true,
"multiplier": 2.0,
"other_multiplier": 2.0,
"require_player_kill": true,
"per_mob": {
"minecraft:enderman": 4.0
},
"blacklist": [
"minecraft:ender_dragon",
"minecraft:wither"
]
}
| 字段 |
含义 |
enabled |
总开关。false 表示全局使用原版经验值 |
multiplier |
没有 per_mob 条目的怪物击杀倍率。小数会作为概率处理 |
other_multiplier |
矿石、熔炉、钓鱼、繁殖、交易、磨石和附魔之瓶的倍率。1.0 保持原样不变 |
require_player_kill |
仅放大归因于玩家的击杀 |
per_mob |
按实体 ID 键控的单体倍率。覆盖 multiplier |
blacklist |
无论其他设置如何,永远不被放大的实体 ID 列表 |
读取具有宽容性,因此你可以在文件中保留自己的 // 注释——下次重写文件时它们会被丢弃。
兼容性
- Minecraft: 1.21 – 1.21.1, 1.21.9 – 1.21.11, and 26.2
- Loader: Fabric
- Dependencies: Fabric API
- Side: server-side (clients need nothing)
- Works with modded mobs: rates are keyed by entity id, so any mod's mob can be given its own rate or excluded
- Modded experience sources are multiplied too, as long as they award experience the normal way — they land under
other_multiplier
支持
我制作的所有内容均为免费并使用 MIT 许可证。如果它节省了你的时间,你可以请我喝杯咖啡:
☕ ko-fi.com/bonkmods
XP Multiplier
XP Multiplier does one thing and does it properly: it changes how much experience you earn. One number for mob kills, another for everything else — enchanting, mending and repairs stop being the bottleneck, or become a real one if you turn the rates down instead.
Everything runs server-side. Players join with a vanilla client and get the full effect: no client mod, no resource pack, no config sync.
Features
?️ Two rates, or one per mob
Mob kills and the rest of the game are separate settings, so you can quadruple mob experience without touching ore or furnace output. Then override any mob that deserves its own rate.
"multiplier": 2.0,
"other_multiplier": 1.0,
"per_mob": {
"minecraft:enderman": 4.0,
"minecraft:blaze": 3.0
}
? Every source, not just mobs
other_multiplier covers ores, furnaces and smokers, fishing, breeding, villager and wandering trader deals, grindstones and thrown bottles o' enchanting — because they all award experience through the same place in the game, and none of them was left out by accident.
? Fractions actually work
A rate of 1.5 isn't rounded away. The whole part is guaranteed and the remainder is a chance, so 7 experience at 1.5× pays out 10 points half the time and 11 the other half. Over many awards that averages to exactly 1.5× — any single award is a coin flip rather than a promise, which is the honest cost of allowing fractions at all.
? Or make it harder
Rates go down to 0.0, not just up. Halve every award for a slower server, or set mob experience to 0.0 and force players to earn levels from ores and trades instead. The same fraction handling applies, so 0.5 is a genuine coin flip per award rather than a rounding rule.
? Blacklist and boss safety
The ender dragon and the wither are excluded by default, because a single kill worth thousands of points is exactly the wrong thing to multiply. Delete them from the list if you disagree — nothing is hardcoded.
The dragon is a genuine special case: it hands out its experience during the death animation instead of the usual drop, which is how it slips past most mods of this kind. It is handled explicitly here, so blacklisting it actually works and a per-mob rate for it actually applies.
? Player kills only, or everything
By default only kills credited to a player are multiplied. Vanilla already withholds mob experience unless a player damaged the mob recently, so this mainly decides what happens to the finishing blow — turn require_player_kill off and a mob a wolf finished for you still counts.
?️ Never duplicates a player's levels
The experience a player drops on death is a slice of what they had already earned, not a fresh reward. Players are excluded unconditionally — there is no config option that can turn dying into a way to print levels.
Commands
| Command |
Permission |
Description |
/xpmult |
level 2 |
Shows the current settings and the config file path |
/xpmult status |
level 2 |
Same as above |
/xpmult set <0.0–64.0> |
level 2 |
Changes the mob experience rate and saves |
/xpmult other <0.0–64.0> |
level 2 |
Changes the rate for every other source and saves |
/xpmult enabled <true|false> |
level 2 |
Turns multiplication on or off |
/xpmult reload |
level 2 |
Reloads the config after hand-editing the file |
Installation
- Install Fabric Loader and Fabric API
- Drop the jar into your
mods folder
- Start the server —
config/xpmultiplier.json generates on first launch
Required on the server only. Installing it client-side in singleplayer works just as well (singleplayer runs an internal server).
Configuration
The file lives at config/xpmultiplier.json and is written with a comment header explaining every option.
{
"enabled": true,
"multiplier": 2.0,
"other_multiplier": 2.0,
"require_player_kill": true,
"per_mob": {
"minecraft:enderman": 4.0
},
"blacklist": [
"minecraft:ender_dragon",
"minecraft:wither"
]
}
| Field |
Meaning |
enabled |
Master switch. false means vanilla experience everywhere |
multiplier |
Rate for mob kills without a per_mob entry. Fractions are honoured as a chance |
other_multiplier |
Rate for ores, furnaces, fishing, breeding, trading, grindstones and bottles o' enchanting. 1.0 leaves them alone |
require_player_kill |
Only multiply kills credited to a player |
per_mob |
Per-entity rates, keyed by entity id. Overrides multiplier |
blacklist |
Entity ids that are never multiplied, whatever else is set |
Reading is lenient, so you can keep your own // notes in the file — they are dropped the next time the file is rewritten.
Compatibility
- Minecraft: 1.21 – 1.21.1, 1.21.9 – 1.21.11, and 26.2
- Loader: Fabric
- Dependencies: Fabric API
- Side: server-side (clients need nothing)
- Works with modded mobs: rates are keyed by entity id, so any mod's mob can be given its own rate or excluded
- Modded experience sources are multiplied too, as long as they award experience the normal way — they land under
other_multiplier
Support
Everything I make is free and MIT-licensed. If it saved you some time, you can buy me a coffee:
☕ ko-fi.com/bonkmods
评论 0
登录后参与评分
还没有评论,来抢沙发吧