{
  "format_version": "1.17.20",
  "minecraft:entity": {
    "description": {
      "identifier": "hoh_bht:boss_ravager",
      "is_spawnable": false,
      "is_summonable": true,
      "is_experimental": false
    },
    "component_groups": {
      "minecraft:pillager_rider": {
        "minecraft:addrider": {
          "entity_type": "minecraft:pillager"
        }
      },
      "minecraft:pillager_captain_rider": {
        "minecraft:addrider": {
          "entity_type": "minecraft:pillager",
          "spawn_event": "minecraft:spawn_as_illager_captain"
        }
      },
      "minecraft:hostile": {
        "minecraft:movement": {
          "value": 0.3
        },
        "minecraft:behavior.delayed_attack": {
          "priority": 4,
          "attack_once": false,
          "track_target": true,
          "require_complete_path": false,
          "random_stop_interval": 0,
          "reach_multiplier": 1.5,
          "speed_multiplier": 1.0,
          "attack_duration": 0.75,
          "hit_delay_pct": 0.5
        },
        "minecraft:behavior.random_stroll": {
          "priority": 6,
          "speed_multiplier": 0.4
        },
        "minecraft:behavior.look_at_player": {
          "priority": 7,
          "look_distance": 6,
          "angle_of_view_horizontal": 45,
          "probability": 1
        },
        "minecraft:behavior.look_at_entity": {
          "priority": 10,
          "look_distance": 8,
          "angle_of_view_horizontal": 45,
          "filters": {
            "test": "is_family",
            "subject": "other",
            "value": "mob"
          }
        },
        "minecraft:behavior.hurt_by_target": {
          "priority": 2,
          "entity_types": {
            "filters": {
              "test": "is_family",
              "subject": "other",
              "operator": "!=",
              "value": "illager"
            },
            "max_dist": 64
          }
        },
        "minecraft:behavior.nearest_attackable_target": {
          "priority": 3,
          "must_see": false,
          "entity_types": [
            {
              "filters": {
                "any_of": [
                  {
                    "subject": "other",
                    "test": "is_family",
                    "value": "player"
                  }
                ]
              },
              "max_dist": 64
            }
          ]
        },
        "minecraft:behavior.mount_pathing": {
          "priority": 5,
          "speed_multiplier": 1.25,
          "target_dist": 0.0,
          "track_target": true
        }
      },
      "stunned": {
        "minecraft:is_stunned": {},
        "minecraft:timer": {
          "looping": false,
          "time": 2,
          "time_down_event": {
            "event": "minecraft:start_roar"
          }
        }
      },
      "roaring": {
        "minecraft:behavior.knockback_roar": {
          "priority": 1,
          "duration": 1,
          "attack_time": 0.5,
          "knockback_damage": 7,
          "knockback_horizontal_strength": 4,
          "knockback_vertical_strength": 4,
          "knockback_range": 6,
          "knockback_filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!=",
            "value": "ravager"
          },
          "damage_filters": {
            "test": "is_family",
            "subject": "other",
            "operator": "!=",
            "value": "illager"
          },
          "on_roar_end": {
            "event": "minecraft:end_roar"
          },
          "cooldown_time": 0.1
        }
      }
    },
    "components": {
      "minecraft:boss": {
        "hud_range": 64,
        "name": "entity.hoh_bht:boss_ravager.name",
        "should_darken_sky": false
      },
      "minecraft:is_hidden_when_invisible": {},
      "minecraft:experience_reward": {
        "on_death": "query.last_hit_by_player ? 20 : 0"
      },
      "minecraft:behavior.float": {
        "priority": 0
      },
      "minecraft:persistent": {},
      "minecraft:ravager_blocked": {
        "knockback_strength": 3.0,
        "reaction_choices": [
          {
            "weight": 1,
            "value": {
              "event": "minecraft:become_stunned",
              "target": "self"
            }
          },
          {
            "weight": 1
          }
        ]
      },
      "minecraft:attack": {
        "damage": 12.0
      },
      "minecraft:breathable": {
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:collision_box": {
        "height": 1.9,
        "width": 1.2
      },
      "minecraft:health": {
        "max": 150,
        "value": 150
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "filters": {
              "test": "in_lava",
              "subject": "self",
              "operator": "==",
              "value": true
            },
            "cause": "lava",
            "damage_per_tick": 4
          }
        ]
      },
      "minecraft:jump.static": {},
      "minecraft:loot": {
        "table": "loot_tables/entities/ravager.json"
      },
      "minecraft:knockback_resistance": {
        "value": 0.85
      },
      "minecraft:movement": {
        "value": 0.0
      },
      "minecraft:movement.basic": {},
      "minecraft:nameable": {},
      "minecraft:navigation.walk": {
        "avoid_damage_blocks": true,
        "can_path_over_water": true,
        "can_sink": false
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:conditional_bandwidth_optimization": {},
      "minecraft:break_blocks": {
        "breakable_blocks": [
          "bamboo",
          "bamboo_sapling",
          "beetroot",
          "brown_mushroom",
          "carrots",
          "carved_pumpkin",
          "chorus_flower",
          "chorus_plant",
          "deadbush",
          "double_plant",
          "leaves",
          "leaves2",
          "lit_pumpkin",
          "melon_block",
          "melon_stem",
          "potatoes",
          "pumpkin",
          "pumpkin_stem",
          "red_flower",
          "red_mushroom",
          "crimson_fungus",
          "warped_fungus",
          "reeds",
          "sapling",
          "snow_layer",
          "sweet_berry_bush",
          "tallgrass",
          "turtle_egg",
          "vine",
          "waterlily",
          "wheat",
          "yellow_flower"
        ]
      },
      "minecraft:follow_range": {
        "value": 64
      },
      "minecraft:rideable": {
        "seat_count": 1,
        "family_types": [
          "pillager"
        ],
        "seats": {
          "position": [
            0.0,
            2.1,
            -0.3
          ]
        }
      },
      "minecraft:type_family": {
        "family": [
          "monster",
          "illager",
          "ravager",
          "mob"
        ]
      }
    },
    "events": {
      "minecraft:entity_spawned": {
        "add": {
          "component_groups": [
            "minecraft:hostile",
            "minecraft:pillager_rider"
          ]
        }
      },
      "minecraft:spawn_with_pillager_captain_rider": {
        "add": {
          "component_groups": [
            "minecraft:hostile",
            "minecraft:pillager_captain_rider"
          ]
        }
      },
      "minecraft:become_stunned": {
        "add": {
          "component_groups": [
            "stunned"
          ]
        },
        "remove": {
          "component_groups": [
            "minecraft:hostile"
          ]
        }
      },
      "minecraft:start_roar": {
        "add": {
          "component_groups": [
            "roaring"
          ]
        },
        "remove": {
          "component_groups": [
            "stunned"
          ]
        }
      },
      "minecraft:end_roar": {
        "add": {
          "component_groups": [
            "minecraft:hostile"
          ]
        },
        "remove": {
          "component_groups": [
            "roaring"
          ]
        }
      }
    }
  }
}