{
   "format_version":"1.16.0",
   "minecraft:entity":{
      "description":{
         "identifier":"vatonage:lava_summon",
         "is_spawnable":true,
         "is_summonable":true,
         "is_experimental":false
      },
      "component_groups":{
      },
      "events":{
         "vatonage:hurt":{
            "run_command": {
               "command": [
                  "fill ~ ~-1 ~ ~ ~-1 ~ flowing_lava 1 replace air",
                  "scoreboard objectives add lavatimer dummy lavatimer",
                  "scoreboard players add @s lavatimer 1",
                  "kill @s[scores={lavatimer=50..}]"
               ]
            }
         }
      },
      "components":{
         "minecraft:nameable":{
         },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_contact_with_water",
              "operator": "==",
              "value": true
            },
            "cause": "drowning",
            "damage_per_tick": 1
          }
        ]
      },
      "minecraft:fire_immune": {
      },
         "minecraft:health":{
            "value":30,
            "max":30
         },
         "minecraft:collision_box":{
            "width":1,
            "height":1
         },
         "minecraft:movement":{
            "value":0.02
         },
         "minecraft:type_family":{
            "family":[
               "monster",
               "mob"
            ]
         },
         "minecraft:movement":{
            "value":2.5
         },
         "minecraft:movement.glide":{
            "start_speed":0.3,
            "speed_when_turning":0.24
         },
         "minecraft:follow_range":{
            "value":64,
            "max":64
         },
         "minecraft:behavior.nearest_attackable_target":{
            "priority":1,
            "reselect_targets":true,
            "scan_interval":20,
            "within_radius":64,
            "must_see_forget_duration":0.5,
            "target_search_height":80,
            "entity_types":[
               {
                  "filters":{
                     "test":"is_family",
                     "subject":"other",
                     "value":"player"
                  },
                  "max_dist":64
               }
            ]
         },
         "minecraft:behavior.swoop_attack":{
            "priority":2,
            "damage_reach":0.2,
            "speed_multiplier":1,
            "delay_range":[
               5,
               10
            ]
         },
         "minecraft:behavior.circle_around_anchor":{
            "priority":3,
            "radius_change":1,
            "radius_adjustment_chance":0.004,
            "height_adjustment_chance":0.002857,
            "goal_radius":1,
            "angle_change":15,
            "radius_range":[
               4,
               10
            ],
            "height_offset_range":[
               -4,
               5
            ],
            "height_above_target_range":[
               8,
               12
            ]
         },
         "minecraft:physics":{
            "has_gravity":false
         },
         "minecraft:attack":{
            "damage":8
         },
         "minecraft:timer":{
            "time":[
               0.6,
               0.6
            ],
            "time_down_event":{
               "event":"vatonage:hurt"
            }
         }
      }
   }
}