{
	"format_version": "1.21.70",
	"minecraft:entity": {
	  "description": {
		"identifier": "scpcf:scp_2107_ghost",
		"is_spawnable": true,
		"is_summonable": true,
		"properties": {
		  "minecraft:creaking_state": {
			"type": "enum",
			"values": ["neutral", "hostile_observed", "hostile_unobserved"],
			"default": "neutral",
			"client_sync": true
		  }
		}
	  },
	  "components": {
		"minecraft:type_family": {
		  "family": ["scp"]
		},
		"minecraft:health": {
		  "value": 80,
		  "max": 80
		},
		"minecraft:attack": {},
		"minecraft:pushable": {
		  "is_pushable": true,
		  "is_pushable_by_piston": true
		},
		"minecraft:physics": {},
		"minecraft:jump.static": {},
		"minecraft:breathable": {
		  "breathes_solids": true,
		  "breathes_water": true
		},
		"minecraft:nameable": {},
		"minecraft:can_climb": {},
		"minecraft:movement.basic": {},
		"minecraft:follow_range": {
		  "value": 36,
		  "max": 36
		},
		"minecraft:movement": {
		  "value": 0.35
		},
		"minecraft:behavior.melee_attack": {
			"priority": 5,
			"speed_multiplier": 0.8,
			"track_target": true,
			"melee_fov": 0
		},
		"minecraft:behavior.random_stroll": {
			"priority": 2,
			"speed_multiplier": 0.35
		}
	  },
	  "component_groups": {
		"minecraft:spawned_by_player": {
		  "minecraft:navigation.walk": {
			"can_path_over_water": true,
			"can_path_over_lava": false,
			"avoid_damage_blocks": true,
			"can_pass_doors": true,
			"can_sink": true,
			"can_break_doors": true
		  },
		  "minecraft:environment_sensor": {
			"triggers": [
			  {
				"filters": {
				  "all_of": [
					{
					  "any_of": [
						{ "test": "enum_property", "domain": "minecraft:creaking_state", "value": "hostile_observed" },
						{ "test": "enum_property", "domain": "minecraft:creaking_state", "value": "hostile_unobserved" }
					  ]
					},
					{
					  "any_of": [
						{ "test": "has_target", "value": false },
						{ "test": "actor_health", "subject": "target", "value": 0 },
						{ "test": "target_distance", "operator": ">", "value": 36 }
					  ]
					}
				  ]
				},
				"event": "minecraft:become_neutral"
			  }
			]
		  }
		},
		"minecraft:mobile": {
		  "minecraft:behavior.open_door": {
			"priority": 6,
			"close_door_after": false
		  },
		  "minecraft:annotation.open_door": {},
		  "minecraft:variant": {
				"value": 1
			}
		},
		"minecraft:immobile": {
		  "minecraft:variant": {
				"value": 0
		  }
		},
		"minecraft:neutral": {
			"minecraft:looked_at": {
				"search_radius": 24.0,
				"look_at_locations": [
				  { "location": "head" },
				  { "location": "body" },
				  {
					"location": "feet",
					"vertical_offset": 0.5
				  }
				],
				"set_target": "once_and_keep_scanning",
				"find_players_only": true,
				"looked_at_cooldown": 0,
				"field_of_view": 1000,
				"scale_fov_by_distance": false,
				"line_of_sight_obstruction_type": "collision_for_camera",
				"looked_at_event": {
				  "event": "minecraft:become_hostile",
				  "filter": "self"
				},
				"filters": {
					"all_of": [
					  { "test": "actor_health", "subject": "other", "operator": ">", "value": 0 },
					  { "test": "is_family", "subject": "other", "operator": "not", "value": "scp" },
					  { "test": "is_family", "subject": "other", "operator": "not", "value": "inanimate" }
					]
				  }
		  },
		  "minecraft:on_target_acquired": {
    "event": "minecraft:become_hostile"
},
		  "minecraft:ambient_sound_interval": {},
		  "minecraft:behavior.nearest_attackable_target": {
			"priority": 5,
			"within_radius": 24,
			"reselect_targets": false,
			"attack_interval": 0,
			"must_see": false,
			"entity_types": [
			  {
				"filters": {
				  "all_of": [
					{ "test": "is_family", "subject": "other", "operator": "==", "value": "player" },
					{ "test": "is_family", "subject": "other", "operator": "not", "value": "scp" },
					{ "test": "is_family", "subject": "other", "operator": "not", "value": "inanimate" },
					{ "test": "actor_health", "subject": "other", "operator": ">", "value": 0 }
				  ]
				},
				"max_dist": 24
			  }
			]
		}
		},
		"minecraft:hostile": {
		  "minecraft:looked_at": {
			"search_radius": 36.0,
			"look_at_locations": [
			  { "location": "head" },
			  { "location": "body" },
			  { "location": "feet", "vertical_offset": 0.5 }
			],
			"set_target": "never",
			"find_players_only": true,
			"looked_at_cooldown": 0,
			"field_of_view": 100,
			"scale_fov_by_distance": false,
			"line_of_sight_obstruction_type": "collision_for_camera",
			"looked_at_event": {
			  "event": "minecraft:on_target_start_looking",
			  "filter": "self"
			},
			"not_looked_at_event": {
			  "event": "minecraft:on_target_stop_looking",
			  "filter": "self"
			},
			"filters": {
			  "all_of": [
				{ "test": "actor_health", "subject": "other", "operator": ">", "value": 0 },
				{
				  "none_of": [
					{ "test": "is_family", "subject": "other", "value": "scp" },
					{ "test": "is_family", "subject": "other", "value": "inanimate" }
				  ]
				}
			  ]
			}
		  },
		  "minecraft:behavior.nearest_attackable_target": {
			"priority": 5,
			"within_radius": 24,
			"reselect_targets": false,
			"attack_interval": 0,
			"must_see": false,
			"entity_types": [
			  {
				"filters": {
				  "all_of": [
					{ "test": "is_family", "subject": "other", "operator": "==", "value": "player" },
					{ "test": "is_family", "subject": "other", "operator": "not", "value": "scp" },
					{ "test": "is_family", "subject": "other", "operator": "not", "value": "inanimate" },
					{ "test": "actor_health", "subject": "other", "operator": ">", "value": 0 }
				  ]
				},
				"max_dist": 36
			  }
			]
		  }
		},
		"minecraft:hostile_unobserved": {}
	  },
	  "events": {
		"minecraft:entity_spawned": {
		  "add": {
			"component_groups": ["minecraft:spawned_by_player", "minecraft:neutral", "minecraft:mobile"]
		  }
		},
		"minecraft:become_hostile": {
		  "sequence": [
			{
			  "randomize": [
				{
				  "filters": {
					"test": "enum_property",
					"domain": "minecraft:creaking_state",
					"value": "neutral"
				  },
				  "add": {
					"component_groups": ["minecraft:hostile", "minecraft:immobile"]
				  },
				  "remove": {
					"component_groups": ["minecraft:neutral", "minecraft:hostile_unobserved", "minecraft:mobile"]
				  },
				  "set_property": {
					"minecraft:creaking_state": "hostile_observed"
				  }
				},
				{
				  "filters": {
					"test": "enum_property",
					"domain": "minecraft:creaking_state",
					"value": "neutral"
				  },
				  "add": {
					"component_groups": ["minecraft:hostile", "minecraft:immobile"]
				  },
				  "remove": {
					"component_groups": ["minecraft:neutral", "minecraft:hostile_unobserved", "minecraft:mobile"]
				  },
				  "set_property": {
					"minecraft:creaking_state": "hostile_observed"
				  }
				}
			  ]
			}
		  ]
		},
		"minecraft:become_neutral": {
		  "filters": {
			"test": "enum_property",
			"domain": "minecraft:creaking_state",
			"operator": "not",
			"value": "neutral"
		  },
		  "add": {
			"component_groups": ["minecraft:neutral", "minecraft:mobile"]
		  },
		  "remove": {
			"component_groups": ["minecraft:hostile", "minecraft:hostile_unobserved", "minecraft:immobile"]
		  },
		  "set_property": {
			"minecraft:creaking_state": "neutral"
		  },
		  "reset_target": {}
		},
		"minecraft:on_target_start_looking": {
		  "filters": {
			"test": "enum_property",
			"domain": "minecraft:creaking_state",
			"value": "hostile_unobserved"
		  },
		  "add": {
			"component_groups": ["minecraft:hostile", "minecraft:immobile"]
		  },
		  "remove": {
			"component_groups": ["minecraft:neutral", "minecraft:hostile_unobserved", "minecraft:mobile"]
		  },
		  "set_property": {
			"minecraft:creaking_state": "hostile_observed"
		  },
		  "emit_vibration": {
			"vibration": "entity_act"
		  },
		  "play_sound": {
			"sound": "freeze"
		  }
		},
		"minecraft:on_target_stop_looking": {
		  "filters": {
			"test": "enum_property",
			"domain": "minecraft:creaking_state",
			"value": "hostile_observed"
		  },
		  "add": {
			"component_groups": ["minecraft:hostile", "minecraft:hostile_unobserved", "minecraft:mobile"]
		  },
		  "remove": {
			"component_groups": ["minecraft:neutral", "minecraft:immobile"]
		  },
		  "set_property": {
			"minecraft:creaking_state": "hostile_unobserved"
		  },
		  "emit_vibration": {
			"vibration": "entity_act"
		  },
		  "play_sound": {
			"sound": "unfreeze"
		  }
		}
	  }
	}
  }
  