{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:wendygo",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {
					"remove_child_entities": true
				}
			},
			"sensor_objetivo": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "desaparecer",
							"target": "self",
							"filters": {
								"test": "has_target",
								"value": false
							}
						}
					]
				}
			}
		},
		"components": {
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:type_family": {
				"family": [
					"mob",
					"wendygo",
					"monster"
				]
			},
			"minecraft:collision_box": {
				"height": 3.6,
				"width": 1
			},
			"minecraft:custom_hit_test": {
				"hitboxes": [
					{
						"width": 1,
						"height": 3.6,
						"pivot": [
							0,
							1.8,
							0
						]
					},
					{
						"width": 1,
						"height": 1,
						"pivot": [
							0,
							3,
							1.2
						]
					}
				]
			},
			"minecraft:experience_reward": {
				"on_death": "150"
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 3
			},
			"minecraft:nameable": {},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:pushable": {
				"is_pushable": false
			},
			"minecraft:health": {
				"value": 800
			},
			"minecraft:navigation.climb": {
				"can_path_over_water": true,
				"can_swim": true
			},
			"minecraft:underwater_movement": {
				"value": 0.6
			},
			"minecraft:movement": {
				"value": 0.7
			},
			"minecraft:behavior.random_stroll": {
				"priority": 8,
				"speed_multiplier": 1
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 7
			},
			"minecraft:conditional_bandwidth_optimization": {},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"reselect_targets": true,
				"within_radius": 64.0,
				"must_see_forget_duration": 17.0,
				"entity_types": [
					{
						"filters": {
							"test": "is_family",
							"subject": "other",
							"value": "player"
						},
						"max_dist": 200,
						"walk_speed_multiplier": 16
					}
				],
				"must_see": false
			},
			"minecraft:knockback_resistance": {
				"value": 100
			},
			"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/wendygo.json"
			},
			"minecraft:attack": {
				"damage": 20
			},
			"minecraft:behavior.melee_box_attack": {
				"priority": 0,
				"track_target": true,
				"cooldown_time": 1
			},
			"minecraft:mob_effect": {
				"effect_range": 20,
				"effect_time": 13,
				"mob_effect": "blindness",
				"cooldown_time": 6,
				"entity_filter": {
					"all_of": [
						{
							"test": "is_family",
							"subject": "other",
							"value": "player"
						},
						{
							"operator": "not",
							"test": "has_ability",
							"subject": "other",
							"value": "invulnerable"
						}
					]
				}
			},
			"minecraft:on_target_acquired": {
				"target": "self",
				"event": "activar_sensor"
			}
		},
		"events": {
			"desaparecer": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"activar_sensor": {
				"add": {
					"component_groups": [
						"sensor_objetivo"
					]
				}
			}
		}
	}
}