Skip to content

[1.16+] Groups

Insane96 edited this page Apr 10, 2022 · 1 revision

With groups you can apply properties to multiple mobs by just writing a list of them one time.

The folder

In the mod config folder there should be a groups folder, in there you'll put .json for groups.

Json Structure

It's pretty simple, the jsons have a list of mob IDs:

  • mobs: a list of mob ids, the '*' can still be used for mod IDs

The group name is given by the name of the json file. E.g. hostiles.json will create a "hostiles" group.

{
    "mobs": [
        "minecraft:zombie",
        "minecraft:skeleton",
        "minecraft:spider",
        "minecraft:creeper"
    ]
}

Then you can use the group name into a mob json

{
    "group": "hostiles",
    "potion_effects": [
        {
            "id": "minecraft:resistance",
            "chance": 0.15,
            "amplifier": 0
        }
    ]
}
Clone this wiki locally