{
	"format_version": "1.16.100",
	"minecraft:entity": {
		"description": {
			"identifier": "cc_fairytales:satyr",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"otros": {
				"minecraft:spawn_entity": {
					"entities": [
						{
							"min_wait_time": 0,
							"max_wait_time": 0,
							"spawn_entity": "cc_fairytales:satyr",
							"single_use": true,
							"num_to_spawn": 2
						}
					]
				}
			},
			"casita": {
				"minecraft:movement": {
					"value": 0.2
				},
				"minecraft:type_family": {
					"family": [
						"satyr2",
						"mob"
					]
				},
				"minecraft:behavior.random_stroll": {
					"priority": 5
				},
				"minecraft:timer": {
					"time": 0.1,
					"looping": false,
					"time_down_event": {
						"event": "volve_casita",
						"target": "self"
					}
				}
			},
			"golpeado": {
				"minecraft:mark_variant": {
					"value": 1
				},
				"minecraft:behavior.melee_box_attack": {
					"priority": 0,
					"track_target": true
				},
				"minecraft:attack": {
					"damage": 4
				},
				"minecraft:movement": {
					"value": 0.3
				},
				"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": {
								"test": "is_family",
								"subject": "other",
								"value": "player"
							},
							"max_dist": 30
						}
					]
				}
			},
			"a_casa": {
				"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": {
								"test": "is_family",
								"subject": "other",
								"value": "satyr"
							},
							"max_dist": 30
						}
					]
				},
				"minecraft:behavior.move_towards_target": {
					"priority": 2,
					"within_radius": 3
				},
				"minecraft:timer": {
					"time": 1,
					"looping": false,
					"time_down_event": {
						"event": "quieto",
						"target": "self"
					}
				}
			},
			"no_mover": {
				"minecraft:movement": {
					"value": 0
				}
			},
			"armor_red": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"narmor_brown": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"armor_brown": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"narmor_red": {
				"minecraft:variant": {
					"value": 3
				}
			}
		},
		"components": {
			"minecraft:mark_variant": {
				"value": 0
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 6"
			},
			"minecraft:physics": {
				"has_gravity": true,
				"has_collision": true
			},
			"minecraft:loot": {
				"table": "loot_tables/chillcraft/fairy/entities/satyr.json"
			},
			"minecraft:type_family": {
				"family": [
					"satyr",
					"mob"
				]
			},
			"minecraft:behavior.look_at_entity": {
				"priority": 9,
				"look_distance": 6.0,
				"probability": 0.02,
				"filters": {
					"test": "is_family",
					"subject": "other",
					"value": "satyr"
				}
			},
			"minecraft:mob_effect": {
				"effect_range": 7,
				"effect_time": 30,
				"mob_effect": "slowness",
				"entity_filter": [
					{
						"all_of": [
							{
								"test": "is_family",
								"subject": "other",
								"value": "player"
							}
						]
					}
				]
			},
			"minecraft:pushable": {
				"is_pushable": true
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 3
			},
			"minecraft:movement": {
				"value": 0
			},
			"minecraft:navigation.walk": {},
			"minecraft:fire_immune": {},
			"minecraft:collision_box": {
				"width": 1,
				"height": 1.9
			},
			"minecraft:equipment": {
				"table": "loot_tables/chillcraft/fairy/entities/satyr_flute.json",
				"slot_drop_chance": [
					{
						"drop_chance": 0,
						"slot": "slot.weapon.mainhand"
					}
				]
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 20
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"test": "is_family",
								"subject": "other",
								"value": "player"
							},
							"event": "enojado"
						},
						"deals_damage": true
					}
				]
			},
			"minecraft:nameable": {},
			"minecraft:behavior.float": {
				"priority": 0
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"queue_command": {
							"command": [
								"structure load fairy_tales:cc_fairy_campf ~-4 ~-1 ~-3"
							]
						}
					},
					{
						"add": {
							"component_groups": [
								"otros"
							]
						}
					},
					{
						"randomize": [
							{
								"add": {
									"component_groups": [
										"armor_red"
									]
								},
								"weight": 1
							},
							{
								"add": {
									"component_groups": [
										"narmor_brown"
									]
								},
								"weight": 1
							},
							{
								"add": {
									"component_groups": [
										"armor_brown"
									]
								},
								"weight": 1
							},
							{
								"add": {
									"component_groups": [
										"narmor_red"
									]
								},
								"weight": 1
							}
						]
					}
				]
			},
			"minecraft:entity_born": {
				"add": {
					"component_groups": [
						"casita"
					]
				}
			},
			"enojado": {
				"add": {
					"component_groups": [
						"golpeado"
					]
				}
			},
			"quieto": {
				"remove": {
					"component_groups": [
						"a_casa"
					]
				},
				"add": {
					"component_groups": [
						"no_mover"
					]
				}
			},
			"volve_casita": {
				"remove": {
					"component_groups": [
						"casita"
					]
				},
				"add": {
					"component_groups": [
						"a_casa"
					]
				}
			}
		}
	}
}