{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_1145",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false
		},
		"component_groups": {
			"scp1145badeffect": {
				"minecraft:mob_effect": {
					"effect_range": 5,
					"mob_effect": "fatal_poison",
					"effect_time": 10
				},
				"minecraft:health": {
					"value": 75,
					"max": 75
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": {
								"any_of": [
									{
										"test": "in_water",
										"subject": "self",
										"operator": "==",
										"value": true
									}
								]
							},
							"event": "scp1145normalevent"
						},
						{
							"filters": [
								{
									"test": "is_brightness",
									"operator": ">",
									"value": 0.49
								}
							],
							"event": "scp1145nomove"
						},
						{
							"filters": [
								{
									"test": "is_brightness",
									"operator": "<",
									"value": 0.49
								}
							],
							"event": "scp1145move"
						}
					]
				}
			},
			"scp1145water": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": {
								"any_of": [
									{
										"test": "in_water",
										"subject": "self",
										"operator": "==",
										"value": false
									}
								]
							},
							"event": "minecraft:entity_spawned"
						},
						{
							"filters": [
								{
									"test": "is_brightness",
									"operator": ">",
									"value": 0.49
								}
							],
							"event": "scp1145nomove"
						},
						{
							"filters": [
								{
									"test": "is_brightness",
									"operator": "<",
									"value": 0.49
								}
							],
							"event": "scp1145move"
						}
					]
				}
			},
			"scp1145move": {
				"minecraft:behavior.melee_attack": {
					"priority": 1,
					"speed_multiplier": 3
				},
				"minecraft:attack": {
					"damage": 2
				},
				"minecraft:behavior.nearest_attackable_target": {
					"entity_types": [
						{
							"filters": {
								"other_with_families": [
									"player",
									"chicken",
									"cow",
									"pig",
									"sheep",
									"wolf",
									"mooshroom",
									"squid",
									"rabbit",
									"bat",
									"ocelot",
									"horse",
									"donkey",
									"mule",
									"polar_bear",
									"llama",
									"parrot",
									"dolphin",
									"turtle",
									"cat",
									"pufferfish",
									"salmon",
									"tropicalfish",
									"cod",
									"panda",
									"fox",
									"goat",
									"axolotl",
									"glow_squid",
									"recontainhuman",
									"mtfepsilon11",
									"recontainhumanfriendly"
								]
							},
							"max_dist": 150,
							"must_see": true
						}
					],
					"reselect_targets": true
				},
				"minecraft:follow_range": {
					"value": 150,
					"max": 150
				},
				"minecraft:can_fly": true,
				"minecraft:navigation.fly": {
					"can_path_from_air": true
				},
				"minecraft:flying_speed": {
					"value": 0.3
				},
				"minecraft:movement.fly": {},
				"minecraft:behavior.random_fly": {
					"priority": 2
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "fall",
							"deals_damage": false
						}
					]
				}
			}
		},
		"components": {
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": true
			},
			"minecraft:type_family": {
				"family": [
					"scp1145"
				]
			},
			"minecraft:scale": {
				"value": 0.7
			},
			"minecraft:health": {
				"value": 75,
				"max": 75
			},
			"minecraft:physics": {},
			"minecraft:knockback_resistance": {
				"value": 10,
				"max": 10
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:collision_box": {
				"height": 0.5,
				"width": 0.6
			},
			"minecraft:nameable": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?15:0"
			},
			"minecraft:loot": {
				"table": "loot_tables/scp1048loot.json"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"scp1145badeffect",
						"scp1145move"
					]
				},
				"remove": {
					"component_groups": [
						"scp1145water"
					]
				}
			},
			"scp1145normalevent": {
				"remove": {
					"component_groups": [
						"scp1145badeffect"
					]
				},
				"add": {
					"component_groups": [
						"scp1145water"
					]
				}
			},
			"scp1145nomove": {
				"remove": {
					"component_groups": [
						"scp1145move"
					]
				}
			},
			"scp1145move": {
				"add": {
					"component_groups": [
						"scp1145move"
					]
				}
			}
		}
	}
}