Mob XP
此模组允许设置自定义的击杀生物掉落经验值数量。包括更改末影龙首次击杀及后续击杀时的经验值掉落量。
原版 Minecraft 中某些幼年生物变体(例如僵尸婴儿)以及骑乘鸡的经验值数量是不同的。因此,如果需要,此模组还允许为任意幼年生物变体和骑乘鸡设置自定义经验值。
权限
使用权限 mobxp.manageXP(或者如果用户是 OP / 在单人游戏中)来检查用户是否被允许编辑自定义设置。
图形界面 (GUI)
从 v1.1.3 开始,游戏内有一个图形界面可用于修改自定义经验值并设置各种标志。打开 GUI 的默认按键是在世界中加载时的小键盘 5 键。

配置文件 (v1.1.3 及以上版本)
从 v1.1.3 开始,所有自定义生物经验值设置都存储为基于每个世界的 NBT 数据。
这意味着每个世界都维护其独立的经验值配置。
文件位置
配置文件名为:
mob_xp_data.dat
并存储在世界的 data 目录中。
单人世界
.minecraft/saves/<WorldName>/data/mob_xp_data.dat
专用服务器 / 集成服务器
<WorldName>/data/mob_xp_data.dat
NBT 数据结构
每个条目代表特定生物的自定义经验值设置。
| 字段 | 描述 |
|---|---|
id |
Minecraft 实体 ID(例如 minecraft:ender_dragon) |
primaryXP |
击杀生物时掉落的基准经验值数量 |
secondaryXP |
用于特殊条件的替代经验值(例如骑乘鸡、非首次末影龙击杀) |
babyXP |
击杀该生物的幼年变体时掉落的经验值 |
enabled |
如果为 true,则使用自定义经验值;如果为 false,则应用原版经验值行为 |
random |
如果为 true,掉落的经验值将在 0 到配置的经验值数量之间随机生成 |
usePrimaryXPForBaby |
如果为 true,幼年生物将使用 primaryXP 而不是 babyXP |
注意
- 如果启用了
usePrimaryXPForBaby,则忽略babyXP。 - 如果
enabled为false,则该生物的所有其他设置将被忽略,并使用原版经验值。 - 输入的任何负数经验值都将导致其不被使用,并应用原版经验值
命令
查看经验值配置
/mobxp <entity_id>
显示指定生物的当前自定义经验值设置。
示例:/mobxp minecraft:ender_dragon
修改经验值
设置主经验值
/mobxp <entity_id> primaryXP <amount>
示例:/mobxp minecraft:ender_dragon primaryXP 12000
设置次经验值
/mobxp <entity_id> secondaryXP <amount>
示例:/mobxp minecraft:ender_dragon secondaryXP 500
设置幼年生物经验值
/mobxp <entity_id> babyXP <amount>
示例:/mobxp minecraft:zombie babyXP 100
切换标志
启用或禁用自定义经验值
/mobxp <entity_id> enabled <true|false>
示例:/mobxp minecraft:sheep enabled true
启用随机经验值掉落
/mobxp <entity_id> random <true|false>
示例:/mobxp minecraft:warden random true
对幼年生物使用成年生物经验值
/mobxp <entity_id> usePrimaryXPForBaby <true|false>
示例:/mobxp minecraft:zoglin usePrimaryXPForBaby true
1.1.3 之前的配置
首次运行时,配置文件将在 config/mobxp.json 生成。
- 找到该生物的标识符
- 将 "experiencePoints" 设置为该生物想要的经验值
- 通过将 "enabled" 设置为 true 来启用它
- 如果您希望经验值在 1 和 "experiencePoints" 之间随机化,请将 "random" 设置为 true
示例配置
- 将末影龙的掉落经验值设置为 15,000,适用于首次击杀和所有其他击杀
- 将村民的掉落经验值设置为 1,000
{
"dragonXP": 15000,
"firstDragonXP": 15000,
"xp": {
"minecraft:villager": {
"enabled": true,
"experiencePoints": 1000,
"random": false
}
}
}
Mob XP
This mod allows setting a custom amount of xp that mobs will drop when killed. This includes being able to change the amount of xp the Ender Dragon drops on the first kill and subsequent kills.
Vanilla Minecraft had different xp amounts for some baby mob variants (e.g. Zombie babies), and chickens that had jockeys. So this mod also allows setting custom amounts for any baby mob variant and chickens with jockeys if wanting to do so.
Permission
Uses the permission mobxp.manageXP (or if the user is OPed / Singleplayer) to check if a user is allowed to edit the custom settings.
GUI
Starting with v1.1.3 there is an ingame GUI that can be used to modify the custom xp amounts and set the various flags. The default key for opening the GUI is the Keypad 5 when loaded in a world.

Configuration (v1.1.3 and above)
Starting with v1.1.3, all custom mob XP settings are stored as NBT data on a per-world basis.
This means each world maintains its own independent XP configuration.
File Location
The configuration file is named:
mob_xp_data.dat
and is stored in the world’s data directory.
Singleplayer worlds
.minecraft/saves/<WorldName>/data/mob_xp_data.dat
Dedicated / Integrated servers
<WorldName>/data/mob_xp_data.dat
NBT Data Structure
Each entry represents custom XP settings for a specific mob.
| Field | Description |
|---|---|
id |
Minecraft entity ID (e.g. minecraft:ender_dragon) |
primaryXP |
Base amount of XP dropped when the mob is killed |
secondaryXP |
Alternate XP value used for special conditions (e.g. chicken jockeys, non-first Ender Dragon kills) |
babyXP |
XP dropped when killing a baby variant of the mob |
enabled |
If true, custom XP values are used; if false, vanilla XP behavior is applied |
random |
If true, XP dropped will be a random value between 0 and the configured XP amount |
usePrimaryXPForBaby |
If true, baby mobs use primaryXP instead of babyXP |
Notes
- If
usePrimaryXPForBabyis enabled,babyXPis ignored. - If
enabledisfalse, all other settings for that mob are ignored and vanilla XP is used. - Any negative number entered for a xp amount will cause it not to be used and vanilla XP will be applied
Commands
View XP Configuration
/mobxp <entity_id>
Displays the current custom XP settings for the specified mob.
Example: /mobxp minecraft:ender_dragon
Modify XP Values
Set primary XP
/mobxp <entity_id> primaryXP <amount>
Example: /mobxp minecraft:ender_dragon primaryXP 12000
Set secondary XP
/mobxp <entity_id> secondaryXP <amount>
Example: /mobxp minecraft:ender_dragon secondaryXP 500
Set baby mob XP
/mobxp <entity_id> babyXP <amount>
Example: /mobxp minecraft:zombie babyXP 100
Toggle Flags
Enable or disable custom XP
/mobxp <entity_id> enabled <true|false>
Example: /mobxp minecraft:sheep enabled true
Enable random XP drops
/mobxp <entity_id> random <true|false>
Example: /mobxp minecraft:warden random true
Use adult XP for baby mobs
/mobxp <entity_id> usePrimaryXPForBaby <true|false>
Example: /mobxp minecraft:zoglin usePrimaryXPForBaby true
Configuration Pre 1.1.3
On first run config file will be generated in config/mobxp.json.
- Find the mob identifier for the mob
- Set the "experiencePoints" to the xp you want for that mob
- Enable it by setting "enabled" to true
- Set "random" to true if you want the xp amount to randomize between 1 and "experiencePoints"
Example config
- Sets Ender Dragon xp drops to 15,000 for both first kill and all other kills
- Sets Villager xp drops to 1,000
{
"dragonXP": 15000,
"firstDragonXP": 15000,
"xp": {
"minecraft:villager": {
"enabled": true,
"experiencePoints": 1000,
"random": false
}
}
}
下载 MobXP
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MobXP
下载 MobXP
下载 MobXP
下载 MobXP
下载 MobXP
下载 MobXP
下载 MobXP
下载 MobXP
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MobXP
更新到 26.4 快照版本 8
已更新至 26.3
已更新为使用独立配置界面,以避免依赖外部库
将硬编码的英文字符串替换为翻译键
添加了 Cube XP 规则,允许为怪物不同体型设置经验值
已更新至 26.1
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧