{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_1093",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false
		},
		"component_groups": {
			"scp1093on": {
				"minecraft:interact": {
					"interactions": {
						"on_interact": {
							"event": "scp1093off"
						},
						"interact_text": "Turn off SCP-1093",
						"swing": true
					}
				},
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:pushable": {
					"is_pushable": false,
					"is_pushable_by_piston": false
				},
				"minecraft:knockback_resistance": {
					"value": 1
				},
				"minecraft:timer": {
					"looping": true,
					"time": 10,
					"time_down_event": {
						"event": "sound"
					}
				},
				"minecraft:movement": {
					"value": {
						"range_min": 0,
						"range_max": 0
					},
					"max": 0
				},
				"minecraft:movement.basic": {
					"max_turn": 0
				},
				"minecraft:behavior.random_stroll": {
					"priority": 0,
					"speed_multiplier": 0
				}
			},
			"scp1093off": {
				"minecraft:interact": {
					"interactions": {
						"on_interact": {
							"event": "scp1093on"
						},
						"interact_text": "Turn on SCP-1093",
						"swing": true
					}
				},
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:movement.basic": {
					"max_turn": 360
				},
				"minecraft:navigation.walk": {
					"is_amphibious": false,
					"avoid_portals": true,
					"avoid_powder_snow": false,
					"avoid_sun": false,
					"avoid_water": true,
					"avoid_damage_blocks": false,
					"can_break_doors": false,
					"can_open_doors": true,
					"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": 1
				},
				"minecraft:movement": {
					"value": {
						"range_min": 0.25,
						"range_max": 0.25
					},
					"max": 0.25
				},
				"minecraft:knockback_resistance": {
					"value": 0
				},
				"minecraft:pushable": {
					"is_pushable": true,
					"is_pushable_by_piston": false
				}
			}
		},
		"components": {
			"minecraft:nameable": {},
			"minecraft:health": {
				"value": 20,
				"max": 20
			},
			"minecraft:type_family": {
				"family": [
					"scp",
					"scp1093"
				]
			},
			"minecraft:jump.static": {},
			"minecraft:physics": {},
			"minecraft:mob_effect": {
				"mob_effect": "fatal_poison",
				"effect_range": 0.5,
				"effect_time": 60,
				"cooldown_time": 1,
				"entity_filter": {
					"test": "is_family",
					"operator": "!=",
					"subject": "other",
					"value": "scp1093"
				}
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
					"component_groups": [
						"scp1093off"
					]
				},
				"remove": {
					"component_groups": [
						"scp1093on"
					]
				}
			},
			"scp1093on": {
				"add": {
					"component_groups": [
						"scp1093on"
					]
				},
				"remove": {
					"component_groups": [
						"scp1093off"
					]
				},
				"queue_command": {
					"command": [
						"playsound random.click @a[r=10]"
					]
				}
			},
			"scp1093off": {
				"add": {
					"component_groups": [
						"scp1093off"
					]
				},
				"remove": {
					"component_groups": [
						"scp1093on"
					]
				},
				"queue_command": {
					"command": [
						"playsound random.click @a[r=10]"
					]
				}
			},
			"sound": {
				"queue_command": {
					"command": [
						"playsound portal.portal @a[r=2.5]"
					]
				}
			}
		}
	}
}