{
   "format_version":"1.17.0",
   "minecraft:entity":{
      "description":{
         "identifier":"vatonage:tower_golem",
         "is_spawnable":true,
         "is_summonable":true,
         "is_experimental":false
      },
      "component_groups":{
         
      },
      "events":{
         "vatonage:hurt":{
            "run_command": {
               "command": [
                  "scoreboard objectives add lavatimer dummy lavatimer",
                  "scoreboard players random @s lavatimer 0 9",
                  "execute @s[scores={lavatimer=0..}] ~ ~ ~ summon vatonage:water_summon",
                  "execute @s[scores={lavatimer=1..}] ~ ~ ~ summon vatonage:orb_summon",
                  "execute @s[scores={lavatimer=2..}] ~ ~ ~ summon vatonage:lava_summon",
                  "execute @s[scores={lavatimer=3..8}] ~ ~ ~ summon zombie",
                  "execute @s[scores={lavatimer=9}] ~ ~ ~ summon vatonage:lava_monster",
                  "execute @s[scores={lavatimer=3..8}] ~ ~ ~ effect @e[type=zombie,r=20] speed 100 3 true",
                  "execute @s[scores={lavatimer=3..8}] ~ ~ ~ effect @e[type=zombie,r=20] strength 100 3 true",
                  "execute @s[scores={lavatimer=3..8}] ~ ~ ~ effect @e[type=zombie,r=20] resistance 100 3 true"
               ]
            }
         },
         "vatonage:death":{
            "run_command": {
               "command": [
                  "summon vatonage:boss_loot_drop5"
               ]
            }
         }
      },
      "components":{
         "minecraft:experience_reward":{
            "on_death":"query.last_hit_by_player ? 1000 : 0"
         },
      "minecraft:boss": {
        "should_darken_sky": true,
        "hud_range": 55,
        "name":"Tower Golem"
      },
         "minecraft:type_family":{
            "family":[
               "monster",
               "mob"
            ]
         },
         "minecraft:health":{
            "value":2500,
            "max":2500
         },
         "minecraft:loot":{
            "table":"loot_tables/entities/legendary_lootcrate.json"
         },
         "minecraft:collision_box":{
            "width":1,
            "height":1
         },
      "minecraft:knockback_resistance": {
        "value": 1.0
      },
         "minecraft:movement":{
            "value":0.1
         },
         "minecraft:scale":{
            "value":2
         },
         "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:physics":{
         },
         "minecraft:attack":{
            "damage":30
         },
         "minecraft:timer":{
            "time":[
               12.0,
               12.0
            ],
            "time_down_event":{
               "event":"vatonage:hurt"
            }
         },
      "minecraft:on_death": {
        "event": "vatonage:death",
        "target": "self"
      }
      }
   }
}