{
	"format_version": "1.20.31",
	"minecraft:entity": {
		"description": {
			"identifier": "manalabs_scp:scp439",
			"name_spawn_egg": "Spawn SCP-439",
			"is_spawnable": true,
			"is_summonable": true,
			"is_experimental": false,
			"animations": {
				"death_animation": "animation.manalabs_scp.scp439_hive.death_animation"
			},
			"scripts": {
				"animate": [
					{
						"death_animation": "query.health == 1"
					}
				]
			}
		},
		"component_groups": {
			"despawn": {
				"minecraft:instant_despawn": {}
			},
			"movement": {
				"minecraft:movement": {
					"value": 0.25
				},
				"minecraft:navigation.walk": {
					"can_path_over_water": true
				},
				"minecraft:movement.basic": {},
				"minecraft:jump.static": {},
				"minecraft:can_climb": {},
				"minecraft:behavior.random_stroll": {
					"priority": 4
				}
			},
			"start_death": {
				"minecraft:type_family": {
					"family": [
						"mob",
						"monster",
						"hostile",
						"manalabs_scp_scp",
						"manalabs_scp_scp439_hive",
						"manalabs_scp_dead"
					]
				},
				"minecraft:damage_sensor": {
					"triggers": {
						"deals_damage": false
					}
				},
				"minecraft:movement": {
					"value": 0.0
				},
				"minecraft:health": {
					"value": 1,
					"max": 1,
					"min": 1
				},
				"minecraft:movement.basic": {
					"max_turn": 0
				},
				"minecraft:pushable": {
					"is_pushable": false,
					"is_pushable_by_piston": false
				},
				"minecraft:knockback_resistance": {
					"value": 1
				},
				"minecraft:attack": {
					"damage": 0
				}
			},
			"death": {
				"minecraft:health": {
					"value": 0,
					"max": 0
				},
				"minecraft:instant_despawn": {}
			}
		},
		"components": {
			"minecraft:environment_sensor": {
				"triggers": [
					{
						"event": "despawn",
						"target": "self",
						"filters": {
							"test": "is_difficulty",
							"operator": "==",
							"value": "peaceful"
						}
					}
				]
			},
			"minecraft:is_hidden_when_invisible": {},
			"minecraft:behavior.delayed_attack": {
				"priority": 1,
				"attack_duration": 0.7,
				"attack_once": false,
				"hit_delay_pct": 0.5,
				"random_stop_interval": 0,
				"reach_multiplier": 1,
				"require_complete_path": true,
				"track_target": false
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player ? 5 : 0"
			},
			"minecraft:type_family": {
				"family": [
					"mob",
					"monster",
					"hostile",
					"manalabs_scp_scp",
					"manalabs_scp_scp439"
				]
			},
			"minecraft:breathable": {
				"total_supply": 15,
				"suffocate_time": 0
			},
			"minecraft:nameable": {},
			"minecraft:loot": {
				"table": "loot_tables/manalabs/scp/scp439.loot.json"
			},
			"minecraft:health": {
				"value": 16,
				"max": 16
			},
			"minecraft:attack": {
				"damage": 1
			},
			"minecraft:collision_box": {
				"width": 0.4,
				"height": 0.3
			},
			"minecraft:despawn": {
				"despawn_from_distance": {}
			},
			"minecraft:behavior.float": {
				"priority": 4
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 1,
				"attack_interval": 10,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "pillager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "villager"
								}
							]
						},
						"max_dist": 8
					}
				]
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1,
				"alert_same_type": true
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:conditional_bandwidth_optimization": {}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"movement"
					]
				}
			},
			"despawn": {
				"add": {
					"component_groups": [
						"despawn"
					]
				}
			},
			"start_death": {
				"remove": {
					"component_groups": [
						"movement",
						"attack_knockback"
					]
				},
				"add": {
					"component_groups": [
						"start_death"
					]
				}
			},
			"death": {
				"add": {
					"component_groups": [
						"death"
					]
				}
			}
		}
	}
}