{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:armored_pillager",
      "is_spawnable": false,
      "is_summonable": false,
      "is_experimental": false
    },
    "component_groups": {
      "spawn_armored_pillager_gold": {
        "minecraft:transformation": {
          "into": "legacy:armored_pillager_gold",
          "keep_owner": true,
          "keep_level": true,
          "delay": 0.1
        }
      },
      "spawn_armored_pillager_diamond": {
        "minecraft:transformation": {
          "into": "legacy:armored_pillager_diamond",
          "keep_owner": true,
          "keep_level": true,
          "delay": 0.1
        }
      }
    },
    "components": {
      "minecraft:collision_box": {
        "height": 1.9,
        "width": 0.6
      },
      "minecraft:type_family": {
        "family": [
          "pillager",
          "monster",
          "illager"
        ]
      },
      "minecraft:variant": {
        "value": 0
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:health": {
        "value": 24,
        "max": 24
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/pillager.json"
      },
      "minecraft:movement": {
        "value": 0.35
      },
      "minecraft:equip_item": {}
    },
    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "minecraft:ranged_attack"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:ranged_attack"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "spawn_armored_pillager_gold",
                    "minecraft:ranged_attack"
                  ]
                }
              },
              {
                "weight": 40,
                "add": {
                  "component_groups": [
                    "spawn_armored_pillager_diamond",
                    "minecraft:ranged_attack"
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  }
}