HomeJavaModsAttribute Base Modifier
Attribute Base Modifier

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:

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

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.

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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more