{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_682",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"sleeping": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": {
								"test": "is_daytime",
								"value": true
							},
							"event": "wake_up"
						}
					]
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"on_damage": {
								"event": "woken_up"
							}
						}
					]
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "scpcat"
										}
									]
								},
								"event": "woken_up"
							}
						}
					]
				},
				"minecraft:timer": {
					"time": 300,
					"time_down_event": {
						"event": "wake_up"
					}
				},
				"minecraft:behavior.lay_down": {
					"priority": 1,
					"interval": 50,
					"random_stop_interval": 50000
				},
				"minecraft:entity_sensor": {
					"sensor_range": 5,
					"event": "wake_up"
				}
			},
			"sleep_timer": {
				"minecraft:timer": {
					"time": 15,
					"time_down_event": {
						"event": "sleep_again"
					}
				}
			},
			"scparchivesscp682": {
				"minecraft:behavior.random_stroll": {
					"priority": 2,
					"speed_multiplier": 0.4
				},
				"minecraft:attack": {
					"damage": 16,
					"effect_name": "weakness",
					"effect_duration": 30
				},
				"minecraft:behavior.melee_attack": {
					"priority": 1,
					"speed_multiplier": 0.8
				},
				"minecraft:behavior.nearest_attackable_target": {
					"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",
									"scp",
									"warden",
									"scp149",
									"recontainhumanfriendly"
								]
							},
							"max_dist": 200,
							"must_see": true
						}
					],
					"reselect_targets": true
				},
				"minecraft:follow_range": {
					"value": 150,
					"max": 150
				},
				"minecraft:movement": {
					"value": 0.5
				},
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"filters": {
								"test": "is_daytime",
								"value": false
							},
							"event": "sleep"
						}
					]
				},
				"minecraft:movement.amphibious": {},
				"minecraft:underwater_movement": {
					"value": 0.4
				},
				"minecraft:navigation.generic": {
					"is_amphibious": true,
					"can_path_over_water": true,
					"can_swim": true,
					"can_walk": true,
					"can_sink": false,
					"avoid_damage_blocks": true
				},
				"minecraft:damage_sensor": {
					"triggers": [
						{
							"cause": "all",
							"deals_damage": true
						}
					]
				},
				"minecraft:on_target_acquired": {
					"event": "scp682roar"
				},
				"minecraft:behavior.hurt_by_target": {
					"priority": 1
				}
			},
			"scp682regeneration": {
				"minecraft:spell_effects": {
					"add_effects": [
						{
							"effect": "regeneration",
							"duration": 5,
							"amplifier": 2
						}
					]
				},
				"minecraft:timer": {
					"looping": false,
					"time": 5,
					"time_down_event": {
						"event": "remove682regeneration"
					}
				}
			},
			"scp682happy": {
				"minecraft:behavior.random_stroll": {
					"priority": 2,
					"speed_multiplier": 0.5
				},
				"minecraft:movement": {
					"value": 0.5
				},
				"minecraft:movement.amphibious": {},
				"minecraft:navigation.generic": {
					"is_amphibious": true,
					"can_path_over_water": true,
					"can_swim": true,
					"can_walk": true,
					"can_sink": false,
					"avoid_damage_blocks": true
				},
				"minecraft:underwater_movement": {
					"value": 0.4
				},
				"minecraft:timer": {
					"looping": false,
					"time": 5,
					"time_down_event": {
						"event": "scp682alive"
					}
				}
			}
		},
		"components": {
			"minecraft:type_family": {
				"family": [
					"scp682"
				]
			},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"event": "scp682regeneration"
						}
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": false,
				"is_pushable_by_piston": false
			},
			"minecraft:health": {
				"value": 1000000,
				"max": 1000000
			},
			"minecraft:collision_box": {
				"width": 1.2,
				"height": 1.7
			},
			"minecraft:knockback_resistance": {
				"value": 10,
				"max": 10
			},
			"minecraft:entity_sensor": {
				"sensor_range": 5,
				"event_filters": {
					"all_of": [
						{
							"test": "is_family",
							"subject": "other",
							"value": "scp999"
						}
					]
				},
				"event": "scp682happy"
			},
			"minecraft:nameable": {},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?1500:0"
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"randomize": [
					{
						"weight": 1,
						"add": {
							"component_groups": [
								"scparchivesscp682"
							]
						}
					}
				]
			},
			"sleep": {
				"add": {
					"component_groups": [
						"sleeping"
					]
				}
			},
			"wake_up": {
				"remove": {
					"component_groups": [
						"sleeping"
					]
				},
				"add": {
					"component_groups": [
						"sleep_timer"
					]
				}
			},
			"woken_up": {
				"remove": {
					"component_groups": [
						"sleeping"
					]
				},
				"add": {
					"component_groups": [
						"sleep_timer"
					]
				}
			},
			"sleep_again": {
				"add": {
					"component_groups": [
						"sleeping"
					]
				},
				"remove": {
					"component_groups": [
						"sleep_timer"
					]
				}
			},
			"scp682regeneration": {
				"add": {
					"component_groups": [
						"scp682regeneration"
					]
				}
			},
			"remove682regeneration": {
				"remove": {
					"component_groups": [
						"scp682regeneration"
					]
				}
			},
			"scp682alive": {
				"add": {
					"component_groups": [
						"scparchivesscp682"
					]
				},
				"remove": {
					"component_groups": [
						"scp682happy"
					]
				}
			},
			"scp682happy": {
				"add": {
					"component_groups": [
						"scp682happy"
					]
				},
				"remove": {
					"component_groups": [
						"scparchivesscp682"
					]
				}
			},
			"scp682roar": {
				"queue_command": {
					"command": [
						"playsound scp682.roar @a[r=15]",
						"effect @e[r=15] slowness 20 3",
						"effect @e[r=15] weakness 20"
					]
				}
			}
		}
	}
}