{
	"format_version": "1.20.0",
	"minecraft:entity": {
		"description": {
			"identifier": "shapescape_mb:dive_attack",
			"is_experimental": false,
			"is_spawnable": false,
			"is_summonable": true,
			"scripts": {
				"animate": [
					"ac.dive_attack"
				]
			},
			"animations": {
				"ac.dive_attack": "controller.animation.shapescape_mb.dive_attack.dive_attack"
			},
			"properties": {
				"shapescape_mb:boss_class": {
					"type": "enum",
					"default": "common",
					"values": [
						"common",
						"uncommon",
						"rare",
						"epic",
						"legendary",
						"impossible"
					]
				}
			}
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"shapescape_mb:common_entity_spawned": {
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 1.5,
					"damage_range": 8,
					"entity_filter": {
						"any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"operator": "==",
								"value": "player"
							},
							{
								"test": "is_target",
								"subject": "other",
								"operator": "==",
								"value": true
							}
						]
					}
				}
			},
			"shapescape_mb:uncommon_entity_spawned": {
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 4,
					"damage_range": 8,
					"entity_filter": {
						"any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"operator": "==",
								"value": "player"
							},
							{
								"test": "is_target",
								"subject": "other",
								"operator": "==",
								"value": true
							}
						]
					}
				}
			},
			"shapescape_mb:rare_entity_spawned": {
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 8,
					"damage_range": 8,
					"entity_filter": {
						"any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"operator": "==",
								"value": "player"
							},
							{
								"test": "is_target",
								"subject": "other",
								"operator": "==",
								"value": true
							}
						]
					}
				}
			},
			"shapescape_mb:epic_entity_spawned": {
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 12,
					"damage_range": 8,
					"entity_filter": {
						"any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"operator": "==",
								"value": "player"
							},
							{
								"test": "is_target",
								"subject": "other",
								"operator": "==",
								"value": true
							}
						]
					}
				}
			},
			"shapescape_mb:legendary_entity_spawned": {
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 18,
					"damage_range": 8,
					"entity_filter": {
						"any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"operator": "==",
								"value": "player"
							},
							{
								"test": "is_target",
								"subject": "other",
								"operator": "==",
								"value": true
							}
						]
					}
				}
			},
			"shapescape_mb:impossible_entity_spawned": {
				"minecraft:area_attack": {
					"cause": "entity_attack",
					"damage_per_tick": 25,
					"damage_range": 8,
					"entity_filter": {
						"any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"operator": "==",
								"value": "player"
							},
							{
								"test": "is_target",
								"subject": "other",
								"operator": "==",
								"value": true
							}
						]
					}
				}
			}
		},
		"components": {
			"minecraft:timer": {
				"time": 2.5,
				"looping": true,
				"time_down_event": {
					"event": "despawn",
					"target": "self"
				}
			},
			"minecraft:collision_box": {
				"height": 1,
				"width": 1
			},
			"minecraft:damage_sensor": {
				"triggers": {
					"deals_damage": false
				}
			},
			"minecraft:knockback_resistance": {
				"max": 1000,
				"value": 1000
			},
			"minecraft:physics": {
				"has_collision": false,
				"has_gravity": false
			},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			}
		},
		"events": {
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"shapescape_mb:common_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:common_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "common"
				}
			},
			"shapescape_mb:uncommon_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:uncommon_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "uncommon"
				}
			},
			"shapescape_mb:rare_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:rare_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "rare"
				}
			},
			"shapescape_mb:epic_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:epic_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "epic"
				}
			},
			"shapescape_mb:legendary_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:legendary_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "legendary"
				}
			},
			"shapescape_mb:impossible_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:impossible_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "impossible"
				}
			}
		}
	}
}