{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_3199_hatchling",
			"is_summonable": true,
			"is_spawnable": false,
			"is_experimental": false
		},
		"component_groups": {
			"scp3199evolve": {
				"minecraft:transformation": {
					"into": "scpcf:scp_3199"
				}
			},
			"inwater": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": [
								{
									"any_of": [
										{
											"test": "in_water",
											"subject": "self",
											"operator": "==",
											"value": false
										}
									]
								}
							],
							"event": "scp3199notinwater"
						}
					]
				},
				"minecraft:movement": {
					"value": 0
				}
			},
			"notinwater": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": [
								{
									"any_of": [
										{
											"test": "in_water",
											"subject": "self",
											"operator": "==",
											"value": true
										}
									]
								}
							],
							"event": "scp3199inwater"
						}
					]
				}
			},
			"active": {
				"minecraft:movement": {
					"value": 0.6
				},
				"minecraft:movement.basic": {},
				"minecraft:behavior.random_stroll": {
					"priority": 6,
					"speed_multiplier": 0.6
				}
			},
			"inactive": {
				"minecraft:movement": {
					"value": 0
				}
			}
		},
		"components": {
			"minecraft:navigation.walk": {
				"is_amphibious": false,
				"avoid_portals": false,
				"avoid_powder_snow": true,
				"avoid_sun": false,
				"avoid_water": true,
				"avoid_damage_blocks": true,
				"can_break_doors": false,
				"can_open_doors": false,
				"can_pass_doors": true,
				"can_path_over_water": true,
				"can_path_over_lava": false,
				"can_path_from_air": false,
				"can_sink": false,
				"can_walk_in_lava": false
			},
			"minecraft:behavior.random_stroll": {
				"priority": 2,
				"speed_multiplier": 0.4
			},
			"minecraft:health": {
				"value": 15,
				"max": 15
			},
			"minecraft:can_climb": {},
			"minecraft:jump.static": {},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:type_family": {
				"family": [
					"scp"
				]
			},
			"minecraft:attack": {
				"damage": 5
			},
			"minecraft:behavior.nearest_attackable_target": {
				"entity_types": [
					{
						"filters": {
							"other_with_families": [
								"player",
								"animal",
								"mob",
								"recontainhuman",
								"mtfepsilon11",
								"recontainhumanfriendly"
							]
						},
						"must_see": true,
						"max_dist": 50
					}
				],
				"reselect_targets": true
			},
			"minecraft:behavior.melee_attack": {
				"priority": 1,
				"speed_multiplier": 0.8
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:follow_range": {
				"value": 50,
				"max": 50
			},
			"minecraft:timer": {
				"looping": false,
				"time": 600,
				"time_down_event": {
					"event": "scp3199evolve"
				}
			},
			"minecraft:nameable": {},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?5:0"
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/chicken.json"
			}
		},
		"events": {
			"scp3199evolve": {
				"queue_command": {
					"command": [
						"particle minecraft:crop_growth_area_emitter"
					]
				},
				"add": {
					"component_groups": [
						"scp3199evolve"
					]
				}
			},
			"scp3199inwater": {
				"add": {
					"component_groups": [
						"inwater",
						"inactive"
					]
				},
				"remove": {
					"component_groups": [
						"notinwater",
						"active"
					]
				}
			},
			"scp3199notinwater": {
				"add": {
					"component_groups": [
						"notinwater",
						"active"
					]
				},
				"remove": {
					"component_groups": [
						"inwater",
						"inactive"
					]
				}
			},
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"notinwater",
						"active"
					]
				},
				"remove": {
					"component_groups": [
						"inwater",
						"inactive"
					]
				}
			},
			"minecraft:entity_transformed": {
				"add": {
					"component_groups": [
						"notinwater",
						"active"
					]
				},
				"remove": {
					"component_groups": [
						"inwater",
						"inactive"
					]
				}
			}
		}
	}
}