{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:nessie",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"tranquis": {
				"minecraft:behavior.random_swim": {
					"priority": 5,
					"interval": 20,
					"speed_multiplier": 0.5,
					"xz_dist": 4,
					"y_dist": 1
				},
				"minecraft:behavior.rise_to_liquid_level": {
					"priority": 1,
					"liquid_y_offset": 0,
					"rise_delta": 0.05,
					"sink_delta": 0.01
				},
				"minecraft:underwater_movement": {
					"value": 0.2
				},
				"minecraft:movement": {
					"value": 0.2
				}
			},
			"sensor_golpeo": {
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"on_damage": {
								"filters": {
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								"event": "enojado"
							},
							"deals_damage": true
						}
					]
				}
			},
			"ataca": {
				"minecraft:behavior.random_breach": {
					"priority": 6,
					"interval": 50,
					"xz_dist": 6,
					"cooldown_time": 2.0
				},
				"minecraft:behavior.random_swim": {
					"priority": 5,
					"interval": 10,
					"speed_multiplier": 0.8,
					"xz_dist": 10,
					"y_dist": 5
				},
				"minecraft:attack": {
					"damage": 20
				},
				"minecraft:jump.static": {
					"jump_power": 0.08
				},
				"minecraft:behavior.melee_box_attack": {
					"priority": 0,
					"track_target": true,
					"cooldown_time": 1
				},
				"minecraft:behavior.nearest_attackable_target": {
					"attack_owner": false,
					"must_reach": true,
					"must_see": true,
					"must_see_forget_duration": 3,
					"persist_time": 3,
					"reselect_targets": true,
					"scan_interval": 10,
					"set_persistent": true,
					"target_invisible_multiplier": 0.5,
					"target_search_height": -1,
					"target_sneak_visibility_multiplier": 0.8,
					"entity_types": [
						{
							"filters": {
								"test": "is_family",
								"subject": "other",
								"value": "player"
							},
							"max_dist": 100
						}
					]
				},
				"minecraft:movement": {
					"value": 0.4
				},
				"minecraft:on_target_escape": {
					"target": "self",
					"event": "volve_relax"
				}
			},
			"despawn": {
				"minecraft:instant_despawn": {
					"remove_child_entities": true
				}
			}
		},
		"components": {
			"minecraft:health": {
				"value": 200
			},
			"minecraft:on_target_escape": {
				"target": "self",
				"event": "desaparecer"
			},
			"minecraft:experience_reward": {
				"on_death": "100"
			},"minecraft:type_family": {
				"family": [
					"monster",
					"mob",
					"nessie"
				]
			},
			"minecraft:behavior.move_to_water": {
				"priority": 1,
				"search_range": 30,
				"search_height": 30,
				"speed_multiplier": 1
			},
			"minecraft:behavior.random_look_around": {
				"priority": 7
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:movement.generic": {},
			"minecraft:follow_range": {
				"value": 48,
				"max": 48
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 8
			},
			"minecraft:collision_box": {
				"width": 2.9,
				"height": 2.6
			},"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/nessie.json"
			},
			"minecraft:custom_hit_test": {
				"hitboxes": [
					{
						"width": 2.9,
						"height": 2.6,
						"pivot": [
							0,
							1.3,
							0
						]
					},
					{
						"width": 2.9,
						"height": 2.6,
						"pivot": [
							0,
							1.3,
							-3.6
						]
					},
					{
						"width": 2.9,
						"height": 7.2,
						"pivot": [
							0,
							3.6,
							2
						]
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_path_over_water": true,
				"can_swim": true,
				"can_walk": true,
				"can_breach": true,
				"can_sink": false
			},
			"minecraft:can_climb": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"sensor_golpeo",
						"tranquis"
					]
				}
			},
			"enojado": {
				"remove": {
					"component_groups": [
						"tranquis"
					]
				},
				"add": {
					"component_groups": [
						"ataca"
					]
				}
			},
			"volve_relax": {
				"remove": {
					"component_groups": [
						"ataca"
					]
				},
				"add": {
					"component_groups": [
						"tranquis"
					]
				}
			},
			"desaparecer": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			}
		}
	}
}