{
  "format": "mob_spawns2",
  "templates": [
    {
      "name": "invasion_stage_1",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 0,
          "max": 0.33
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 2,
          "count_max": 10,
          "count_difficulty_multiplier": 2,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_leather"
            }
          ]
        },
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 3,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_leather"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_2_1",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 0.33,
          "max": 0.66
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 4,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_chainmail"
            }
          ]
        },
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 6,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_chainmail"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_2_2",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 0.33,
          "max": 0.66
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 3,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_chainmail"
            }
          ]
        },
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 3,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_chainmail"
            }
          ]
        },
        {
          "entities": [
            "minecraft:skeleton"
          ],
          "count": 3,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_chainmail"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_3_1",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 0.66,
          "max": 1.0
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 5,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_iron"
            }
          ]
        },
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 5,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_iron"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_3_2",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 0.66,
          "max": 1.0
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 5,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_iron"
            }
          ]
        },
        {
          "entities": [
            "minecraft:skeleton"
          ],
          "count": 10,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_iron"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_4_1",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 1.0,
          "max": 999
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 10,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            }
          ]
        },
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 15,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_4_2",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 1.0,
          "max": 999
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 10,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            }
          ]
        },
        {
          "entities": [
            "minecraft:skeleton"
          ],
          "count": 15,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_soldier"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_4_3",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 1.0,
          "max": 999
        },
        {
          "condition": "random",
          "weight": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 1,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            },
            {
              "cmod": "attribute_health",
              "base_value": 30,
              "difficulty_multiplier": 1.5
            },
            {
              "cmod": "xp",
              "base_value": 100,
              "difficulty_multiplier": 1.5
            },
            {
              "cmod": "mob_drops",
              "loot_table": "testlootboss"
            },
            {
              "cmod": "ai_counterattack"
            },
            {
              "cmod": "ai_lunge"
            },
            {
              "cmod": "ai_infernal",
              "modifiers": [
                "1UP", "Alchemist", "Berserk", "Blastoff", "Bulwark", "Choke", "Cloaking", "Darkness", "Ender",
                "Exhaust", "Fiery", "Ghastly", "Gravity", "LifeSteal", "Ninja", "Poisonous", "Quicksand", "Regen",
                "Rust", "Sapper", "Sprint", "Sticky", "Storm", "Vengeance", "Weakness", "Webber", "Wither"
              ]
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_5_test",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 10,
          "max": 9999
        },
        {
          "condition": "invasion_number",
          "min": 1,
          "max": 5
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 1,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            },
            {
              "cmod": "attribute_health",
              "base_value": 30,
              "difficulty_multiplier": 1.5
            },
            {
              "cmod": "xp",
              "base_value": 100,
              "difficulty_multiplier": 1.5
            },
            {
              "cmod": "mob_drops",
              "loot_table": "testlootboss"
            },
            {
              "cmod": "ai_counterattack"
            },
            {
              "cmod": "ai_lunge"
            }
          ]
        }
      ]
    },
    {
      "name": "invasion_stage_5_test2",
      "conditions": [
        {
          "condition": "difficulty",
          "min": 10,
          "max": 999
        },
        {
          "condition": "mod_loaded",
          "mod_id": "infernalmobs"
        }
      ],
      "spawns": [
        {
          "entities": [
            "minecraft:zombie"
          ],
          "count": 1,
          "cmods": [
            {
              "cmod": "template",
              "template": "invader_miner"
            },
            {
              "cmod": "template",
              "template": "inventory_diamond"
            },
            {
              "cmod": "attribute_health",
              "base_value": 30,
              "difficulty_multiplier": 1.5
            },
            {
              "cmod": "xp",
              "base_value": 100,
              "difficulty_multiplier": 1.5
            },
            {
              "cmod": "mob_drops",
              "loot_table": "testlootboss"
            },
            {
              "cmod": "ai_counterattack"
            },
            {
              "cmod": "ai_lunge"
            },
            {
              "cmod": "ai_infernal",
              "modifiers": [
                "1UP", "Alchemist", "Berserk", "Blastoff", "Bulwark", "Choke", "Cloaking", "Darkness", "Ender",
                "Exhaust", "Fiery", "Ghastly", "Gravity", "LifeSteal", "Ninja", "Poisonous", "Quicksand", "Regen",
                "Rust", "Sapper", "Sprint", "Sticky", "Storm", "Vengeance", "Weakness", "Webber", "Wither"
              ]
            }
          ]
        }
      ]
    }
  ]

}