{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "vatonage:ent2",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "vatonage:variant1": {
         "minecraft:attack": {
           "damage": 2
         },
         "minecraft:movement": {
           "value": 0.25
         },
         "minecraft:scale": {
           "value": 0.3
         },
         "minecraft:health": {
           "value": 20,
           "max": 20
         }
      },
      "vatonage:variant2": {
         "minecraft:attack": {
           "damage": 3
         },
         "minecraft:movement": {
           "value": 0.23
         },
         "minecraft:scale": {
           "value": 0.5
         },
         "minecraft:health": {
           "value": 25,
           "max": 25
         }
      },
      "vatonage:variant3": {
         "minecraft:attack": {
           "damage": 4
         },
         "minecraft:movement": {
           "value": 0.2
         },
         "minecraft:scale": {
           "value": 0.7
         },
         "minecraft:health": {
           "value": 30,
           "max": 30
         }
      },
      "vatonage:variant4": {
         "minecraft:attack": {
           "damage": 5
         },
         "minecraft:movement": {
           "value": 0.17
         },
         "minecraft:scale": {
           "value": 1.0
         },
         "minecraft:health": {
           "value": 40,
           "max": 40
         }
      },
      "vatonage:variant5": {
         "minecraft:attack": {
           "damage": 7
         },
         "minecraft:movement": {
           "value": 0.15
         },
         "minecraft:scale": {
           "value": 1.5
         },
         "minecraft:health": {
           "value": 50,
           "max": 50
         }
      }
    },
    "components": {
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(2,5)) : 0"
      },
      "minecraft:type_family": {
        "family": [ "undead", "monster", "mob" ]
      },
      "minecraft:behavior.melee_attack": {
        "priority": 3,
        "track_target": true
      },
      "minecraft:follow_range": {
        "value": 32
      },
      "minecraft:movement.basic": {
      },
      "minecraft:navigation.walk": {
        "can_path_over_water": true
      },
      "minecraft:jump.static": {
      },
      "minecraft:can_climb": {
      },
      "minecraft:behavior.random_stroll": {
        "priority": 6,
        "speed_multiplier": 0.8
      },
      "minecraft:behavior.look_at_player": {
        "priority": 7,
        "look_distance": 6.0,
        "probability": 0.02
      },
      "minecraft:behavior.random_look_around": {
        "priority": 7
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.nearest_attackable_target": {
        "priority": 2,
        "reselect_targets": true,
        "must_see": true,
        "within_radius": 12.0,
        "must_see_forget_duration": 17.0,
        "persist_time": 0.5,
        "entity_types": [
          {
            "filters": {
              "all_of": [
                {
                  "any_of": [
                    { "test": "is_family", "subject": "other", "value": "player" }
                  ]
                }
              ]
            },
            "max_dist": 20
          }
        ]
      },
      "minecraft:physics": {
      },
      "minecraft:loot": {
        "table": "loot_tables/entities/ent.json"
      },
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:collision_box": {
        "width": 1,
        "height": 2
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "randomize": [
          {
            "weight": 100,
            "add": {
              "component_groups": [
                "vatonage:variant1"
              ]
            }
          },
          {
            "weight": 50,
            "add": {
              "component_groups": [
                "vatonage:variant2"
              ]
            }
          },
          {
            "weight": 20,
            "add": {
              "component_groups": [
                "vatonage:variant3"
              ]
            }
          },
          {
            "weight": 10,
            "add": {
              "component_groups": [
                "vatonage:variant4"
              ]
            }
          },
          {
            "weight": 2,
            "add": {
              "component_groups": [
                "vatonage:variant5"
              ]
            }
          }
        ]
      }
    }
  }
}