Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Config Structure

Corgi Taco edited this page Jan 3, 2022 · 29 revisions

The structure of the config is as follows:

{
  "dump_registries": true, // If this is true, a `registryDump.txt` will be a file created in your config directory on server start up(This file is overwritten each time, so move it to another directory if you want to edit it). This file will contain all of the entries in both the root registries and dynamic registries. (This field is optional and set to false by default)
  "mobifier": { // A map of the entity type or monster category to its mobifications.
    "minecraft:husk": [ // Specify the entity and a list of mobifications. Mobifications are applied in the order put here.
     // Entities may have multiple mobifications.
      { // Mobification 1 Starts here and will run first.
        "drop_death_table": false, // If the conditions are met, drop the default loot table? (Only works on mob death) (This field is optional)
        "drop_tables": ["minecraft:chests/abandoned_mineshaft", "minecraft:entities/bat"], // Drop the following list of loot tables if conditions are met(this field is optional)
        "xp_modifier": "*2", // Modify the dropped xp by this value (Only works on mob death) (This field is optional)
        "attribute_modifier": { // Modify this mob's attributes if the conditions are met.
          "minecraft:generic.attack_damage": "*2" // We want to make husks hit 2x stronger if they're in a desert biome in the overworld.
        },
        "conditions_to_apply": [ // Required condition(s) for mobification 1 to function. All conditions listed are required to apply this mobification
          { // Condition 1 starts here
            "biome_category_is": [
              "desert"
            ],
            "type": "mobifier:biome_category"
          }, // Condition 1 ends here
          { // Condition 2 starts here
            "dimension_is": [
              "minecraft:overworld"
            ],
            "type": "mobifier:dimension"
          } // Condition 2 ends here
        ]
      }, // Mobification 1 ends here
      { // Mobification 2 starts here. If mobification 1 was successful, this mobification will apply on top of mobification 1's changes. In this case we'll be adding 50 xp to the xp we multiplied in mobification 1 since those are the fields in common that were changed. Mobification 2 may still apply even if mobification 1 failed!
        "xp_modifier": "+50", // Modify the dropped xp by this value (Only works on mob death) (This field is optional)
        "attribute_modifier": {
          "minecraft:generic.max_health": "*2.5" // If the husk is inside of a desert temple's bounding box, we want to make its health 2.5x more.
        },
        "conditions_to_apply": [ // Required condition(s) for mobification 1 to function. 
          {
            "structure_is": [
              "minecraft:desert_temple"
            ],
            "type": "mobifier:inside_structure"
          }
        ]
      } // Mobification 2 ends here
    ],
    // Next entity type along with its mobifiers
    "minecraft:stray": [
      {
        "attribute_modifier": {
          "minecraft:generic.attack_damage": "*2"
        },
        "conditions_to_apply": [
          {
            "biome_category_is": [
              "icy"
            ],
            "type": "mobifier:biome_category"
          },
          {
            "dimension_is": [
              "minecraft:overworld"
            ],
            "type": "mobifier:dimension"
          }
        ]
      },
      {
        "attribute_modifier": {
          "minecraft:generic.movement_speed": "/2"
        },
        "conditions_to_apply": [
          {
            "has": [
              {
                "is": ["minecraft:sand"],
                "offset": [
                  0,
                  -1,
                  0
                ]
              }
            ],
            "type": "mobifier:blocks_are"
          }
        ]
      },
      {
        "attribute_modifier": {
          "minecraft:generic.movement_speed": "*25"
        },
        "conditions_to_apply": [
          {
            "has": [
              {
                "is": ["minecraft:snow_block"],
                "offset": [
                  0,
                  -1,
                  0
                ]
              }
            ],
            "type": "mobifier:blocks_are"
          }
        ]
      },
      {
        "attribute_modifier": {
          "minecraft:generic.movement_speed": "*25"
        },
        "conditions_to_apply": [
          {
            "has": [
              {
                "is": ["minecraft:snow"],
                "offset": [
                  0,
                  0,
                  0
                ]
              }
            ],
            "type": "mobifier:blocks_are"
          }
        ]
      }
    ],
    // You can also argue by monster category. The accepted values are: `monster`, `creature`, `ambient`, `water_creature`, `water_ambient`, `misc`, and `axolotls`(1.17+). 
    // These mobifiers will apply on top of any specified entity types with the matching mob category.
    "category/monster": [
      {
        "drop_death_table": false,
        "conditions_to_apply": [
          {
            "biome_category_is": [
              "the_end"
            ],
            "type": "mobifier:biome_category"
          }
        ],
        "xp_modifier": "*2",
        "attribute_modifier": {
          "minecraft:generic.attack_damage": "*4"
        }
      }
    ]
  }
}
Clone this wiki locally