{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:centaur",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"regalon": {
				"minecraft:interact": {
					"interactions": [
						{
							"spawn_items": {
								"table": "loot_tables/chillcraft/fairy/entities/cent_item.json"
							},
							"cooldown": 400,
							"interact_text": "action.interact.centaur.drop"
						}
					]
				}
			},
			"esclavizar": {
				"minecraft:leashable": {
					"soft_distance": 4.0,
					"hard_distance": 6.0,
					"max_distance": 10.0
				}
			},
			"enojado": {
				"minecraft:attack": {
					"damage": 7
				},
				"minecraft:behavior.ranged_attack": {
					"priority": 0,
					"attack_interval_min": 1.0,
					"attack_interval_max": 3.0,
					"attack_radius": 15.0
				},
				"minecraft:shooter": {
					"def": "minecraft:arrow",
					"sound": "bow"
				},
				"minecraft:movement": {
					"value": 0.35
				},
				"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
						}
					]
				}
			},
			"blond_beard": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"blonde": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"long_black_hair": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"split_beard": {
				"minecraft:variant": {
					"value": 3
				}
			}
		},
		"components": {
			"minecraft:ambient_sound_interval": {
				"event_name": "ambient",
				"range": 16,
				"value": 8
			},
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 7"
			},
			"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.2
			},"minecraft:collision_box": {
				"height": 2.3,
				"width": 0.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/centaur.json"
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "all",
						"deals_damage": true,
						"on_damage": {
							"target": "self",
							"event": "furioso"
						}
					}
				]
			},
			"minecraft:equipment": {
				"table": "loot_tables/chillcraft/fairy/entities/cent_bow.json"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"add": {
							"component_groups": [
								"regalon",
								"esclavizar"
							]
						}
					},
					{
						"randomize": [
							{
								"add": {
									"component_groups": [
										"blond_beard"
									]
								},
								"weight": 1
							},
							{
								"add": {
									"component_groups": [
										"blonde"
									]
								},
								"weight": 1
							},
							{
								"add": {
									"component_groups": [
										"long_black_hair"
									]
								},
								"weight": 1
							},
							{
								"add": {
									"component_groups": [
										"split_beard"
									]
								},
								"weight": 1
							}
						]
					}
				]
			},
			"furioso": {
				"add": {
					"component_groups": [
						"enojado"
					]
				},
				"remove": {
					"component_groups": [
						"regalon",
						"esclavizar"
					]
				}
			}
		}
	}
}