{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:evil_centaur",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"mode_switcher": {
				"minecraft:target_nearby_sensor": {
					"inside_range": 2.9,
					"outside_range": 3.0,
					"must_see": true,
					"on_inside_range": {
						"event": "switch_to_melee",
						"target": "self"
					},
					"on_outside_range": {
						"event": "switch_to_ranged",
						"target": "self"
					}
				},
				"minecraft:behavior.move_towards_target": {
					"priority": 2,
					"speed_multiplier": 0.9,
					"within_radius": 6
				}
			},
			"ranged_mode_e1": {
				"minecraft:shooter": {
					"def": "minecraft:arrow"
				},
				"minecraft:behavior.ranged_attack": {
					"priority": 0,
					"burst_shots": 1,
					"attack_interval_min": 1.0,
					"attack_interval_max": 3.0,
					"attack_radius": 15.0
				}
			},
			"melee_mode_e1": {
				"minecraft:attack": {
					"damage": 8
				},
				"minecraft:behavior.melee_box_attack": {
					"priority": 0,
					"track_target": true
				}
			}
		},
		"components": {
			"minecraft:ambient_sound_interval": {
				"event_name": "ambient",
				"range": 16,
				"value": 8
			},
			"minecraft:fire_immune": {},
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"must_see": true,
				"reselect_targets": true,
				"entity_types": [
					{
						"filters": {
							"test": "is_family",
							"subject": "other",
							"value": "player"
						},
						"max_dist": 16
					}
				]
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 10"
			},
			"minecraft:type_family": {
				"family": [
					"mob",
					"centaur"
				]
			},
			"minecraft:pushable": {
				"is_pushable": true
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 40
			},
			"minecraft:nameable": {},
			"minecraft:behavior.float": {
				"priority": 0
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 3
			},
			"minecraft:navigation.walk": {},
			"minecraft:movement": {
				"value": 0.35
			},
			"minecraft:collision_box": {
				"width": 1.6,
				"height": 2.8
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/evil_centaur.json"
			},
			"minecraft:equipment": {
				"table": "loot_tables/chillcraft/fairy/entities/evil_cent_bow.json"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"mode_switcher"
					]
				}
			},
			"switch_to_melee": {
				"remove": {
					"component_groups": [
						"ranged_mode_e1"
					]
				},
				"add": {
					"component_groups": [
						"melee_mode_e1"
					]
				}
			},
			"switch_to_ranged": {
				"remove": {
					"component_groups": [
						"melee_mode_e1"
					]
				},
				"add": {
					"component_groups": [
						"ranged_mode_e1"
					]
				}
			}
		}
	}
}