{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_594",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false
		},
		"component_groups": {
			"aggressive": {
				"minecraft:behavior.melee_attack": {
					"priority": 1,
					"speed_multiplier": 0.4
				},
				"minecraft:attack": {
					"damage": 8
				},
				"minecraft:behavior.nearest_attackable_target": {
					"priority": 2,
					"entity_types": [
						{
							"filters": {
								"other_with_families": [
									"player",
									"zoglin",
									"hoglin",
									"piglin",
									"strider",
									"zombie",
									"creeper",
									"skeleton",
									"spider",
									"zombie_pigman",
									"slime",
									"enderman",
									"silverfish",
									"cave_spider",
									"ghast",
									"magma_cube",
									"blaze",
									"zombie_villager",
									"witch",
									"stray",
									"husk",
									"wither_skeleton",
									"guardian",
									"elder_guardian",
									"wither",
									"ender_dragon",
									"shulker",
									"endermite",
									"vindicator",
									"phantom",
									"ravager",
									"evocation_illager",
									"vex",
									"drowned",
									"pillager",
									"zombie_villager_v2",
									"chicken",
									"cow",
									"pig",
									"sheep",
									"wolf",
									"villager",
									"mooshroom",
									"squid",
									"rabbit",
									"bat",
									"iron_golem",
									"snow_golem",
									"ocelot",
									"horse",
									"donkey",
									"mule",
									"skeleton_horse",
									"zombie_horse",
									"polar_bear",
									"llama",
									"parrot",
									"dolphin",
									"turtle",
									"cat",
									"pufferfish",
									"salmon",
									"tropicalfish",
									"cod",
									"panda",
									"villager_v2",
									"wandering_trader",
									"fox",
									"bee",
									"recontainhuman",
									"goat",
									"axolotl",
									"glow_squid",
									"mtfepsilon11",
									"recontainhumanfriendly"
								]
							},
							"max_dist": 35,
							"must_see": true
						}
					],
					"within_radius": 50,
					"reselect_targets": true
				}
			},
			"docile": {
				"minecraft:timer": {
					"time": 300,
					"time_down_event": {
						"event": "minecraft:entity_spawned",
						"target": "self"
					}
				}
			},
			"levitation": {
				"minecraft:timer": {
					"looping": true,
					"time": 20,
					"time_down_event": {
						"event": "levitation",
						"target": "self"
					}
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"scp594"
				]
			},
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": false,
				"avoid_portals": false,
				"avoid_sun": false,
				"avoid_water": false,
				"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.35
			},
			"minecraft:health": {
				"value": 50,
				"max": 50
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 30
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8,
				"look_time": [
					2,
					3
				]
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "fall",
						"deals_damage": false
					}
				]
			},
			"minecraft:fire_immune": true,
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:interact": {
				"interactions": [
					{
						"on_interact": {
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "has_equipment",
										"domain": "hand",
										"subject": "other",
										"value": "minecraft:cookie"
									}
								]
							},
							"event": "feedevent"
						},
						"use_item": true,
						"interact_text": "action.interact.feed"
					},
					{
						"on_interact": {
							"filters": {
								"all_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "has_equipment",
										"domain": "hand",
										"subject": "other",
										"value": "minecraft:cake"
									}
								]
							},
							"event": "feedevent"
						},
						"use_item": true,
						"interact_text": "action.interact.feed"
					}
				]
			},
			"minecraft:nameable": {},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?20:0"
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/sheep.json"
			},
			"minecraft:behavior.float": {
				"priority": 2
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"aggressive",
						"levitation"
					]
				},
				"remove": {
					"component_groups": [
						"docile"
					]
				}
			},
			"feedevent": {
				"add": {
					"component_groups": [
						"docile",
						"levitation"
					]
				},
				"remove": {
					"component_groups": [
						"aggressive"
					]
				}
			},
			"levitation": {
				"queue_command": {
					"command": [
						"effect @s levitation 3 1 true"
					],
					"target": "self"
				}
			}
		}
	}
}