{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:soul",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"amigo": {
				"minecraft:type_family": {
					"family": [
						"soul2"
					]
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 3,
					"entity_types": [
						{
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "player"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "soul"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "charon"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "villager"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "wolf"
									},
									{
										"test": "is_family",
										"subject": "other",
										"operator": "!=",
										"value": "iron_golem"
									}
								]
							},
							"max_dist": 200
						}
					],
					"must_see": true
				},
				"minecraft:attack": {
					"damage": 6
				},
				"minecraft:health": {
					"value": 40
				},
				"minecraft:flying_speed": {
					"value": 0.5
				},
				"minecraft:can_fly": {}
			},
			"malo": {
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 3,
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									}
								]
							},
							"max_dist": 200
						}
					],
					"must_see": true
				},
				"minecraft:attack": {
					"damage": 4
				},
				"minecraft:behavior.hurt_by_target": {
					"priority": 1
				}
			}
		},
		"components": {
			"minecraft:behavior.random_look_around": {
				"priority": 8
			},
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 4"
			},
			"minecraft:nameable": {},
			"minecraft:type_family": {
				"family": [
					"monster",
					"soul",
					"mob"
				]
			},
			"minecraft:navigation.walk": {
				"can_path_over_water": true,
				"can_sink": false,
				"can_pass_doors": false,
				"can_path_from_air": true,
				"avoid_water": true,
				"avoid_damage_blocks": true,
				"avoid_sun": true
			},
			"minecraft:health": {
				"value": 20
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"any_of": [
									{
										"test": "has_damage",
										"subject": "self",
										"operator": "==",
										"value": "contact"
									},
									{
										"test": "has_damage",
										"subject": "self",
										"operator": "==",
										"value": "suffocation"
									}
								]
							}
						},
						"deals_damage": false
					}
				]
			},
			"minecraft:collision_box": {
				"width": 0.3,
				"height": 1.9
			},
			"minecraft:movement": {
				"value": 15
			},
			"minecraft:behavior.charge_attack": {
				"priority": 4,
				"max_distance": 30,
				"min_distance": 1,
				"speed_multiplier": 2
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:fire_immune": {},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.look_at_player": {
				"priority": 9,
				"look_distance": 6.0,
				"probability": 0.02
			},
			"minecraft:behavior.look_at_entity": {
				"priority": 9,
				"look_distance": 6.0,
				"probability": 0.02,
				"filters": {
					"test": "is_family",
					"subject": "other",
					"value": "mob"
				}
			},
			"minecraft:burns_in_daylight": {},
			"minecraft:follow_range": {
				"value": 128
			},
			"minecraft:physics": {
				"has_gravity": false,
				"has_collision": false
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:game_event_movement_tracking": {
				"emit_move": false,
				"emit_swim": false
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"amigo"
					]
				}
			},
			"minecraft:entity_born": {
				"add": {
					"component_groups": [
						"malo"
					]
				}
			},
			"malos": {
				"remove": {
					"component_groups": [
						"amigo"
					]
				},
				"add": {
					"component_groups": [
						"malo"
					]
				}
			}
		}
	}
}