{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_548",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false,
			"runtime_identifier": "minecraft:spider"
		},
		"component_groups": {
			"scp548angry": {
				"minecraft:behavior.nearest_attackable_target": {
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player",
										"operator": "=="
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "animal",
										"operator": "=="
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "monster",
										"operator": "=="
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "recontainhuman",
										"operator": "=="
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "recontainhumanfriendly",
										"operator": "=="
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "mtfepsilon11",
										"operator": "=="
									}
								]
							},
							"must_see": true,
							"must_see_forget_duration": 15,
							"max_dist": 50
						}
					],
					"reselect_targets": false,
					"priority": 2
				}
			},
			"attackonce": {
				"minecraft:behavior.melee_attack": {
					"priority": 1,
					"speed_multiplier": 0.5,
					"on_attack": {
						"event": "scp548event"
					},
					"attack_once": true
				}
			},
			"548attackagain": {
				"minecraft:timer": {
					"looping": false,
					"time": 0.1,
					"time_down_event": {
						"event": "scp548attackagain"
					}
				}
			}
		},
		"components": {
			"minecraft:behavior.random_stroll": {
				"priority": 2,
				"speed_multiplier": 0.4
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 40,
				"max": 40
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:type_family": {
				"family": [
					"scp",
					"scp548",
					"mob"
				]
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 30
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8,
				"look_time": [
					2,
					3
				]
			},
			"minecraft:attack": {
				"damage": 4
			},
			"minecraft:behavior.nearest_attackable_target": {
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "cow",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "pig",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "sheep",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "chicken",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "cod",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "salmon",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "cat",
									"operator": "=="
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "wolf",
									"operator": "=="
								},
								{
									"test": "has_equipment",
									"value": "scpcf:empty_syringe",
									"subject": "other"
								}
							]
						},
						"must_see": true,
						"must_see_forget_duration": 15,
						"max_dist": 50
					}
				],
				"reselect_targets": false,
				"priority": 2
			},
			"minecraft:behavior.melee_attack": {
				"priority": 1,
				"speed_multiplier": 0.5,
				"on_attack": {
					"event": "scp548event"
				},
				"attack_once": true
			},
			"minecraft:behavior.float": {
				"priority": 2
			},
			"minecraft:behavior.mount_pathing": {
				"priority": 5,
				"speed_multiplier": 1,
				"target_dist": 0,
				"track_target": true
			},
			"minecraft:navigation.climb": {
				"can_path_over_water": true,
				"avoid_damage_blocks": true,
				"can_pass_doors": true,
				"can_sink": false,
				"avoid_portals": false
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"cause": "fall",
						"deals_damage": false
					},
					{
						"cause": "freezing",
						"deals_damage": false
					}
				]
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:nameable": {},
			"minecraft:follow_range": {
				"value": 60,
				"max": 60
			},
			"minecraft:behavior.leap_at_target": {
				"priority": 4,
				"yd": 0.4,
				"must_be_on_ground": false
			},
			"minecraft:loot": {
				"table": "loot_tables/entities/spider.json"
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?15:0"
			},
			"minecraft:collision_box": {
				"height": 0.85,
				"width": 0.85
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 8
					},
					{
						"filters": {
							"test": "on_fire",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "fire",
						"damage_per_tick": 2
					}
				]
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"attackonce"
					]
				},
				"remove": {
					"component_groups": [
						"548attackagain"
					]
				}
			},
			"scp548event": {
				"queue_command": {
					"command": [
						"gamerule sendcommandfeedback false"
					],
					"target": "target"
				},
				"add": {
					"component_groups": [
						"548attackagain"
					]
				},
				"remove": {
					"component_groups": [
						"attackonce"
					]
				}
			},
			"scp548attackagain": {
				"add": {
					"component_groups": [
						"attackonce"
					]
				},
				"remove": {
					"component_groups": [
						"548attackagain"
					]
				}
			},
			"playsoundevent": {
				"queue_command": {
					"command": [
						"playsound use.roots @a[r=10]"
					]
				}
			}
		}
	}
}