{
  "format_version": "1.16.0",
  "minecraft:entity": {
    "description": {
      "identifier": "vatonage:fire_spirit",
      "is_spawnable": true,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:size1": {
        "minecraft:scale": {
          "value": 1
        },
        "minecraft:health": {
          "value": 10,
          "max": 10
        }
      },
      "minecraft:size2": {
        "minecraft:scale": {
          "value": 1.2
        },
        "minecraft:health": {
          "value": 15,
          "max": 15
        }
      },
      "minecraft:size3": {
        "minecraft:scale": {
          "value": 1.4
        },
        "minecraft:health": {
          "value": 20,
          "max": 20
        }
      },
      "minecraft:size4": {
        "minecraft:scale": {
          "value": 1.6
        },
        "minecraft:health": {
          "value": 30,
          "max": 30
        }
      },
      "minecraft:size5": {
        "minecraft:scale": {
          "value": 2.0
        },
        "minecraft:health": {
          "value": 50,
          "max": 50
        }
      }
    },
    "components": {
      "minecraft:behavior.melee_attack": {
        "priority": 3,
        "track_target": true
      },
      "minecraft:attack": {
        "damage": 4,
          "effect_name": "weakness",
          "effect_duration": 10
      },
      "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:movement": {
        "value": 0.30
      },
      "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:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:collision_box": {
        "width": 1,
        "height": 2
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "randomize": [
              {
                "weight": 50,
                "add": {
                  "component_groups": [ "minecraft:size1" ]
                }
              },
              {
                "weight": 40,
                "add": {
                  "component_groups": [ "minecraft:size2" ]
                }
              },
              {
                "weight": 30,
                "add": {
                  "component_groups": [ "minecraft:size3" ]
                }
              },
              {
                "weight": 20,
                "add": {
                  "component_groups": [ "minecraft:size4" ]
                }
              },
              {
                "weight": 2,
                "add": {
                  "component_groups": [ "minecraft:size5" ]
                }
              }
            ]
          }
        ]
      }
    }
  }
}