All Mods Resource Packs Data Packs Shaders Modpacks Plugins
MobXP

MobXP

by PolarbearBytes • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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.

Mob XP Editor

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 usePrimaryXPForBaby is enabled, babyXP is ignored.
  • If enabled is false, 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
    }
  }
}

How to Install MobXP (Mod)

MobXP by PolarbearBytes is verified for Fabric across Minecraft versions 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2 (latest release: 1.3.1-26.4-snapshot-8, file size: 500 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded MobXP file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.4-snapshot-8
Fabric
14d ago 1
26.3
Fabric
14d ago 1
26.1.x
Fabric
8mo ago 1
1.21.11
Fabric
11mo ago 1
1.21.11
Fabric
11mo ago 1
1.21.11
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.9
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x 1.20.x
Fabric
last yr. 1
1.20.x
Fabric
last yr. 1
1.19.x
Fabric
last yr. 1
Update to 26.4 snapshot 8
[1.3.0] 1.3.0 by PolarbearBytes on Nov 11, 2026
Download
Updated to 26.3
Updated to use own configuration screen so not to be dependent on external library
Changed hard coded English strings to translation keys
Added Cube XP rule to allow for setting xp values for the mob's different sizes
[1.2.0] MobXP 1.2.0 by PolarbearBytes on Apr 01, 2026
Download
Updated to 26.1
[1.1.5] MobXP 1.1.5 by PolarbearBytes on Jan 04, 2026
Download
Fixed bug that would crash game due to NullPointerException when killing the Ender Dragon
[1.1.4] MobXP 1.1.4 by PolarbearBytes on Dec 22, 2025
Download
Changed how custom mob data is stored. Data is stored per-world as nbt data in <WorldSave>/data/mob_xp_data.dat

Added extra xp options and use flag, baby xp amount for baby mob variants

Added a client-side in-game GUI that can be used for easily editing custom mob xp settings, uses permisison "mobxp.manageXP" on the server side to detect if a player has permission to manage settings.
[1.0.2] MobXP 1.0.2 by PolarbearBytes on Dec 09, 2025
Download
Update for 1.21.11
[1.0.1] MobXP 1.0.1 by PolarbearBytes on Nov 02, 2025
Download
Update to 1.21.10 and fix issue with water based mobs like squids not having custom xp amounts
[1.0.0-1.21.9] MobXP 1.0.0-1.21.9 by PolarbearBytes on Oct 01, 2025
Download
Build for 1.21.9
Build for MC versions 1.21.5-1.21.8
[1.0.0-1.21.4] MobXP 1.0.0-1.21.4 by PolarbearBytes on Oct 01, 2025
Download
Build for mc version 1.21.4
Build for MC versions 1.21.2-1.21.3
Build for MC versions 1.20.5-1.21.1
Build for MC versions 1.20-1.20.4
Build for MC versions 1.19-1.19.4
MobXP Icon
Download MobXP
Select game version
Select platform