{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "legacy:gold_villager_backup",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "backup": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:villager_guard_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 4,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:archer_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 3,
              "should_leash": false
            }
          ]
        }
      },
      "backup_1": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:villager_guard_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:archer_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 5,
              "should_leash": false
            }
          ]
        }
      },
      "backup_2": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:villager_guard_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:swordman_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 4,
              "should_leash": false
            }
          ]
        }
      },
      "backup_3": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:swordman_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 4,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:crossbow_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 3,
              "should_leash": false
            }
          ]
        }
      },
      "backup_4": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:swordman_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:crossbow_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 5,
              "should_leash": false
            }
          ]
        }
      },
      "backup_5": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:swordman_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:spearman_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:crossbow_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 3,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:archer_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            }
          ]
        }
      },
      "backup_6": {
        "minecraft:spawn_entity": {
          "entities": [
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:warrior_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:spearman_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:crossbow_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 3,
              "should_leash": false
            },
            {
              "min_wait_time": 0,
              "max_wait_time": 0,
              "spawn_entity": "legacy:knight_villager_gold",
              "spawn_event": "minecraft:spawn_on_village",
              "single_use": true,
              "num_to_spawn": 2,
              "should_leash": false
            }
          ]
        }
      },
      "despawn": {
        "minecraft:despawn": {}
      }
    },
    "components": {
      "minecraft:collision_box": {
        "height": 0.8,
        "width": 0.8
      },
      "minecraft:timer": {
        "looping": false,
        "time": 3.1,
        "time_down_event": {
          "event": "minecraft:event_despawn"
        }
      },
      "minecraft:type_family": {
        "family": [
          "nope"
        ]
      },
      "minecraft:variant": {
        "value": 0
      },
      "minecraft:breathable": {
        "totalSupply": 15,
        "suffocateTime": 0
      },
      "minecraft:health": {
        "value": 24,
        "max": 24
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/non.json"
      },
      "minecraft:movement": {
        "value": 0.35
      },
      "minecraft:equip_item": {}
    },
    "events": {
      "minecraft:event_despawn": {
        "add": {
          "component_groups": [
            "despawn"
          ]
        }
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "add": {
              "component_groups": [
                "minecraft:ranged_attack"
              ]
            },
            "run_command": {
              "command": [
                "playsound illager.sound.horn",
                "kill @s"
              ]
            }
          },
          {
            "randomize": [
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "backup"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "backup_1"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "backup_2"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "backup_3"
                  ]
                }
              },
              {
                "weight": 70,
                "add": {
                  "component_groups": [
                    "backup_4"
                  ]
                }
              },
              {
                "weight": 10,
                "add": {
                  "component_groups": [
                    "backup_5"
                  ]
                }
              },
              {
                "weight": 5,
                "add": {
                  "component_groups": [
                    "backup_6"
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  }
}