Attribute Base Modifier

Attribute Base Modifier

A data-driven mod to modify mobs' default attribute

by
529 Downloads
fabricforgeneoforgeutility
Rent Server with this Mod

About this Mod

Attribute Base Modifier (ABM) allows you modify the default base value of any attribute of any mob.

This mod is server-side.

Side Required to install
Dedicated server True
Integrated server True
Single-player client True
Pure client False

This mod is data-driven. It's recommended to read Data pack – Minecraft Wiki if you encounter issue.

You can define multiple rules in the data pack to apply modifiers.

Register Rules

Rules are registered by JSON files in the data pack.

The rule file should be in data/<namespace>/abm_rules/<name>.json.

If the rule is successfully registered, its ID will be <namespace>:<name>.

Like other data pack contents, all rules will be reloaded when the server reloads data. Specifically, when reload the world or use reload command.

JSON format:

  • <root> Compound{}
    • include Compound{} A include filter. Only the type specified here will be included. Optional, all type of mobs will be included if omitted.
      • type String* | *Array[] List the mobs that need to be included.
        • String either an ID or a tag(starts with #). e.g. minecraft:zombie, #minecraft:undead.
      • spawn_group String This means all mobs of this spawn group is included. Must be one of monster, creature, ambient, water_creature, underground_water_creature, water_ambient, misc, or axolotls. Has no effect when coexists with type.
    • exclude Compound{} A exclude filter. The format is the same as include. Optional, no mobs will be excluded if omitted.
    • modifies Array[] Defines the modification methods.
      • Compound{} Define an attribute and the modification methods. If the mob lacks default value of this attribute, this modification will be skipped.
        • attribute String ID of the attribute . e.g. minecraft:max_health.
        • modifiers Array[] The modification methods. The base values are calculated sequentially in order.
          • Compound{} A modification method.
            • type String The type of modification(operator). Must be one of set, add or multiply.
            • value Number The value of this modification. Will be parsed as a double value.
    • default_enable Boolean Whether to enable this rule by default. See "Debug Command" for more information. Optional, defaults to true.

Example: (some IDs may be not correct)

{
    "include": {
        "spawn_group": "monster"
    },
    "exclude": {
        "type": "#c:bosses"
    },
    "modifies": [
        {
            "attribute": "minecraft:max_health",
            "modifiers": [
                {
                    "type": "add",
                    "value": 100
                }
            ]
        },
        {
            "attribute": "minecraft:armor",
            "modifiers": [
                {
                    "type": "set",
                    "value": 10
                }
            ]
        }
    ]
}

Here is an example_data_pack.

Debug Command

abmrule <rule_id> [enable|disable]

You can enable or disable a rule by this command.

This command is for debugging.

When the rule is reloaded, this state will be reset to its default value. Specifically. the default_enable defined in the rule's JSON file.

FAQ

  • Some mob is not modified after reload the rules using reload command.

This is an expected behavior.

After a reload, a previously summoned mob may not update its default attributes unless it's "recreated" in the code (typically when mob's chunk is loaded).

However, it's recommended to summon a new mob to reduce uncertainty and ensure it has the latest default attributes.

If you want a previously summoned mob updates, it's recommended to re-enter the world.

  • How to define rules before creating a world, just like a config?

In certain situations, such as when making mod packs, many people encounter this problem.

It's recommended to make a global data pack through a low-code mod or Paxi.

Available Versions

1.0.2release
MC 1.21.8neoforge
September 15, 2025
1.0.2release
MC 1.21.1neoforge
September 15, 2025
1.0.2release
MC 1.20.1forge, neoforge
September 15, 2025
1.0.2release
MC 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8fabric
September 15, 2025
1.0.2release
MC 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1fabric
September 15, 2025

How to Install Attribute Base Modifier on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.8).

3

Install Mod

Open the mod browser in the dashboard and search for "Attribute Base Modifier". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforge

Minecraft Versions

1.21.8, 1.21.7, 1.21.6 (+13 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Attribute Base Modifier server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.8). You can switch loaders with one click in the panel.

Is Attribute Base Modifier compatible with fabric and forge and neoforge?

Attribute Base Modifier officially supports fabric, forge, neoforge for Minecraft 1.21.8, 1.21.7, 1.21.6. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Attribute Base Modifier – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Attribute Base Modifier consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Attribute Base Modifier with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.81.21.71.21.61.21.51.21.41.21.31.21.21.21.11.211.20.6+6 more