{
	"format_version": "1.21.0",
	"minecraft:entity": {
		"description": {
			"identifier": "shapescape_mb:sculkpion_minion",
			"spawn_category": "monster",
			"is_spawnable": true,
			"is_summonable": true,
			"properties": {
				"shapescape_mb:sculkpion_state": {
					"client_sync": true,
					"type": "enum",
					"default": "spawn",
					"values": [
						"spawn",
						"ready"
					]
				},
				"shapescape_mb:boss_class": {
					"type": "enum",
					"default": "common",
					"values": [
						"common",
						"uncommon",
						"rare",
						"epic",
						"legendary",
						"impossible"
					]
				}
			}
		},
		"component_groups": {
			"shapescape_mb:spawning": {
				"minecraft:collision_box": {
					"width": 0.5,
					"height": 0.8
				},
				"minecraft:timer": {
					"time": [
						6,
						8
					],
					"looping": true,
					"time_down_event": {
						"event": "shapescape_mb:start",
						"target": "self"
					}
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "fall",
							"deals_damage": false
						},
						{
							"damage_multiplier": 100,
							"on_damage": {
								"target": "self",
								"event": "shapescape_mb:crack_egg"
							}
						}
					]
				}
			},
			"shapescape_mb:spawning_fast": {
				"minecraft:collision_box": {
					"width": 0.5,
					"height": 0.8
				},
				"minecraft:timer": {
					"time": 1,
					"looping": true,
					"time_down_event": {
						"event": "shapescape_mb:start",
						"target": "self"
					}
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "fall",
							"deals_damage": false
						},
						{
							"damage_multiplier": 100
						}
					]
				}
			},
			"shapescape_mb:ready": {
				"minecraft:collision_box": {
					"width": 0.5,
					"height": 0.4
				},
				"minecraft:behavior.float": {
					"priority": 0
				},
				"minecraft:behavior.avoid_mob_type": {
					"priority": 4,
					"entity_types": [
						{
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "armadillo"
									},
									{
										"test": "enum_property",
										"subject": "other",
										"domain": "minecraft:armadillo_state",
										"value": "unrolled"
									}
								]
							},
							"max_dist": 6,
							"sprint_speed_multiplier": 1.2
						}
					]
				},
				"minecraft:behavior.melee_box_attack": {
					"priority": 4,
					"track_target": true
				},
				"minecraft:behavior.leap_at_target": {
					"priority": 5,
					"yd": 0.4,
					"must_be_on_ground": false
				},
				"minecraft:behavior.random_stroll": {
					"priority": 7,
					"speed_multiplier": 0.8
				},
				"minecraft:behavior.look_at_player": {
					"priority": 8,
					"look_distance": 6.0,
					"probability": 0.02
				},
				"minecraft:behavior.random_look_around": {
					"priority": 9
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "fall",
							"deals_damage": false
						}
					]
				}
			},
			"shapescape_mb:despawn": {
				"minecraft:instant_despawn": {}
			},
			"shapescape_mb:common_entity_spawned": {
				"minecraft:attack": {
					"damage": 2,
					"effect_name": "poison",
					"effect_duration": 3
				},
				"minecraft:health": {
					"value": 10,
					"max": 10
				}
			},
			"shapescape_mb:uncommon_entity_spawned": {
				"minecraft:attack": {
					"damage": 3,
					"effect_name": "poison",
					"effect_duration": 3
				},
				"minecraft:health": {
					"value": 12,
					"max": 12
				}
			},
			"shapescape_mb:rare_entity_spawned": {
				"minecraft:attack": {
					"damage": 5,
					"effect_name": "poison",
					"effect_duration": 3
				},
				"minecraft:health": {
					"value": 15,
					"max": 15
				}
			},
			"shapescape_mb:epic_entity_spawned": {
				"minecraft:attack": {
					"damage": 7,
					"effect_name": "poison",
					"effect_duration": 3
				},
				"minecraft:health": {
					"value": 18,
					"max": 18
				}
			},
			"shapescape_mb:legendary_entity_spawned": {
				"minecraft:attack": {
					"damage": 10,
					"effect_name": "poison",
					"effect_duration": 4
				},
				"minecraft:health": {
					"value": 22,
					"max": 22
				}
			},
			"shapescape_mb:impossible_entity_spawned": {
				"minecraft:attack": {
					"damage": 15,
					"effect_name": "wither",
					"effect_duration": 5
				},
				"minecraft:health": {
					"value": 30,
					"max": 30
				}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"monster",
					"mob",
					"arthropod",
					"shapescape_mb_sculkpion_minion",
					"shapescape_mb_sculkpion"
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:collision_box": {
				"width": 0.5,
				"height": 0.4
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			},
			"minecraft:movement": {
				"value": 0.3
			},
			"minecraft:navigation.climb": {
				"can_path_over_water": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1,
				"entity_types": [
					{
						"filters": {
							"test": "is_family",
							"subject": "other",
							"operator": "!=",
							"value": "shapescape_mb_sculkpion"
						}
					}
				]
			},
			"minecraft:behavior.nearest_prioritized_attackable_target": {
				"priority": 2,
				"must_see": false,
				"reselect_targets": true,
				"within_radius": 25.0,
				"must_see_forget_duration": 17.0,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								}
							]
						},
						"max_dist": 64
					}
				]
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 3,
				"must_see": false,
				"reselect_targets": true,
				"within_radius": 25.0,
				"must_see_forget_duration": 17.0,
				"entity_types": [
					{
						"filters": {
							"all_of": [
								{
									"test": "is_family",
									"subject": "other",
									"operator": "!=",
									"value": "shapescape_mb_sculkpion"
								},
								{
									"test": "is_family",
									"subject": "other",
									"operator": "!=",
									"value": "inanimate"
								},
								{
									"test": "is_family",
									"subject": "other",
									"operator": "!=",
									"value": "projectile"
								},
								{
									"test": "is_family",
									"subject": "other",
									"operator": "!=",
									"value": "shapescape_mb_head"
								},
								{
									"test": "is_family",
									"subject": "other",
									"operator": "!=",
									"value": "shapescape_mb_phantom_ghost"
								}
							]
						},
						"max_dist": 35
					}
				]
			},
			"minecraft:follow_range": {
				"value": 40,
				"max": 40
			},
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"trigger": "shapescape_mb:common_entity_spawned"
			},
			"shapescape_mb:start": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:spawning_fast"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:ready"
					]
				},
				"set_property": {
					"shapescape_mb:sculkpion_state": "ready"
				}
			},
			"shapescape_mb:despawn": {
				"add": {
					"component_groups": [
						"shapescape_mb:despawn"
					]
				}
			},
			"shapescape_mb:crack_egg": {
				"queue_command": {
					"command": [
						"event entity @s shapescape_mb:despawn",
						"particle shapescape_mb:sculkpion_hatch_dark ~ ~ ~"
					]
				}
			},
			"shapescape_mb:common_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:common_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "common"
				}
			},
			"shapescape_mb:uncommon_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:uncommon_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "uncommon"
				}
			},
			"shapescape_mb:rare_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:rare_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "rare"
				}
			},
			"shapescape_mb:epic_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:epic_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "epic"
				}
			},
			"shapescape_mb:legendary_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:legendary_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "legendary"
				}
			},
			"shapescape_mb:impossible_entity_spawned": {
				"add": {
					"component_groups": [
						"shapescape_mb:spawning",
						"shapescape_mb:impossible_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "impossible"
				}
			},
			"shapescape_mb:common_entity_spawned_fast": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:spawning_fast",
						"shapescape_mb:common_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "common"
				}
			},
			"shapescape_mb:uncommon_entity_spawned_fast": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:spawning_fast",
						"shapescape_mb:uncommon_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "uncommon"
				}
			},
			"shapescape_mb:rare_entity_spawned_fast": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:spawning_fast",
						"shapescape_mb:rare_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "rare"
				}
			},
			"shapescape_mb:epic_entity_spawned_fast": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:spawning_fast",
						"shapescape_mb:epic_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "epic"
				}
			},
			"shapescape_mb:legendary_entity_spawned_fast": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:spawning_fast",
						"shapescape_mb:legendary_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "legendary"
				}
			},
			"shapescape_mb:impossible_entity_spawned_fast": {
				"remove": {
					"component_groups": [
						"shapescape_mb:spawning"
					]
				},
				"add": {
					"component_groups": [
						"shapescape_mb:spawning_fast",
						"shapescape_mb:impossible_entity_spawned"
					]
				},
				"set_property": {
					"shapescape_mb:boss_class": "impossible"
				}
			}
		}
	}
}