{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:yeti",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"mode_switcher": {
				"minecraft:target_nearby_sensor": {
					"inside_range": 9.9,
					"outside_range": 10.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": 5
				}
			},
			"ataque_distancia": {
				"minecraft:shooter": {
					"def": "cc_fairytales:yeti_ball"
				},
				"minecraft:behavior.ranged_attack": {
					"priority": 0,
					"burst_shots": 1,
					"burst_interval": 0.1,
					"attack_interval_min": 0.5,
					"attack_interval_max": 0.5,
					"attack_radius": 20.0
				}
			},
			"ataque_cercano": {
				"minecraft:behavior.melee_box_attack": {
					"priority": 2,
					"track_target": true,
					"cooldown_time": 2
				},
				"minecraft:attack": {
					"damage": 15
				}
			}
		},
		"components": {
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:type_family": {
				"family": [
					"monster",
					"mob",
					"yeti"
				]
			},
			"minecraft:knockback_resistance": {
				"value": 0.7
			},
			"minecraft:collision_box": {
				"width": 1.2,
				"height": 2.6
			},
			"minecraft:custom_hit_test": {
				"hitboxes": [
					{
						"width": 1.2,
						"height": 2.6,
						"pivot": [
							0,
							1.3,
							0
						]
					},
					{
						"width": 1.7,
						"height": 3.5,
						"pivot": [
							0,
							1.75,
							0.5
						]
					}
				]
			},
			"minecraft:pushable": {
				"is_pushable": true
			},
			"minecraft:jump.static": {},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 3,
				"must_see": true,
				"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"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "villager"
								}
							]
						},
						"max_dist": 30
					}
				]
			},
			"minecraft:health": {
				"value": 200
			},
			"minecraft:boss": {
				"hud_range": 55,
				"name": "YETI",
				"should_darken_sky": false
			},
			"minecraft:navigation.climb": {
				"can_path_over_water": true
			},
			"minecraft:movement.basic": {},
			"minecraft:can_climb": {},
			"minecraft:movement": {
				"value": 0.35
			},
			"minecraft:behavior.random_stroll": {
				"priority": 6,
				"speed_multiplier": 0.8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 8
			},
			"minecraft:break_blocks": {
				"breakable_blocks": [
					"powder_snow"
				]
			},
			"minecraft:experience_reward": {
				"on_death": "100"
			},
			"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/yeti.json"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"mode_switcher"
					]
				}
			},
			"minecraft:entity_born": {
				"add": {
					"component_groups": [
						"mode_switcher"
					]
				}
			},
			"switch_to_melee": {
				"remove": {
					"component_groups": [
						"ataque_distancia"
					]
				},
				"add": {
					"component_groups": [
						"ataque_cercano"
					]
				}
			},
			"switch_to_ranged": {
				"remove": {
					"component_groups": [
						"ataque_cercano"
					]
				},
				"add": {
					"component_groups": [
						"ataque_distancia"
					]
				}
			}
		}
	}
}