{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scientist",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false,
			"properties": {
				"scpclassified:scientisthaircolor": {
					"type": "int",
					"range": [0, 2],
					"default": 0,
					"client_sync": true
				},
				"scpclassified:scientisteyecolor": {
					"type": "int",
					"range": [0, 4],
					"default": 0,
					"client_sync": true
				},
				"scpclassified:scientistskincolor": {
					"type": "int",
					"range": [0, 2],
					"default": 0,
					"client_sync": true
				},
				"scpclassified:scientistglassesvariant": {
					"type": "int",
					"range": [0, 5],
					"default": 0,
					"client_sync": true
				},
				"scpclassified:scientistpantsvariant": {
					"type": "int",
					"range": [0, 2],
					"default": 0,
					"client_sync": true
				},
				"scpclassified:scientistcoatvariant": {
					"type": "int",
					"range": [0, 4],
					"default": 0,
					"client_sync": true
				}
			}
		},
		"component_groups": {
			"scpclassifiedscientist1": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"scpclassifiedscientist2": {
				"minecraft:variant": {
					"value": 1
				}
			},
			"scpclassifiedscientist3": {
				"minecraft:variant": {
					"value": 2
				}
			},
			"scpclassifiedscientistunknownofc": {
				"minecraft:variant": {
					"value": 3
				}
			},
			"scpclassifiedscientiststxngxe": {
				"minecraft:variant": {
					"value": 4
				}
			},
			"scpclassifiedscientistpete": {
				"minecraft:variant": {
					"value": 5
				}
			},
			"scpclassifiedscientistimmooocus": {
				"minecraft:variant": {
					"value": 6
				}
			},
			"scp008zombie": {
				"minecraft:transformation": {
					"into": "scpcf:scp_008_zombie_scientist"
				}
			},
			"scp049zombie": {
				"minecraft:transformation": {
					"into": "scpcf:scp_049_zombie_scientist"
				}
			},
			"findscp500": {
				"minecraft:behavior.equip_item": {
					"priority": 1
				},
				"minecraft:equip_item": {},
				"minecraft:shareables": {
					"all_items": false,
					"all_items_max_amount": 1,
					"items": [
						{
							"item": "scpcf:scp_500_pill",
							"priority": 1,
							"max_amount": 1,
							"pickup_limit": 1
						}
					]
				},
				"minecraft:behavior.pickup_items": {
					"priority": 1,
					"max_dist": 16,
					"goal_radius": 2,
					"speed_multiplier": 1.4,
					"can_pickup_any_item": false,
					"can_pickup_to_hand_or_equipment": true
				}
			},
			"pickupscp500": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "dontfindscp500",
							"target": "self",
							"filters": {
								"any_of": [
									{
										"test": "has_equipment",
										"value": "scpcf:scp_500_pill"
									}
								]
							}
						},
						{
							"event": "dontfindscp500",
							"target": "self",
							"filters": {
								"all_of": [
									{
										"test": "has_mob_effect",
										"value": "bad_omen",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "blindness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "darkness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "fatal_poison",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "hunger",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "infested",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "instant_damage",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "levitation",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "mining_fatigue",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "nausea",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "oozing",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "poison",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "slowness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "weakness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "wind_charged",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "wither",
										"operator": "!="
									}
								]
							}
						}
					]
				}
			},
			"effectscp500": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "effectscp500",
							"target": "self",
							"filters": {
								"all_of": [
									{
										"test": "has_mob_effect",
										"value": "bad_omen",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "blindness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "darkness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "fatal_poison",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "hunger",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "infested",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "instant_damage",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "levitation",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "mining_fatigue",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "nausea",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "oozing",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "poison",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "slowness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "weakness",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "wind_charged",
										"operator": "!="
									},
									{
										"test": "has_mob_effect",
										"value": "wither",
										"operator": "!="
									}
								]
							}
						}
					]
				}
			},
			"dontopenirondoors": {
				"minecraft:navigation.walk": {
					"avoid_damage_blocks": true,
					"avoid_portals": true,
					"avoid_water": true,
					"can_open_doors": true,
					"can_open_iron_doors": false,
					"can_pass_doors": true,
					"can_path_over_water": true,
					"can_sink": false
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"event": "openirondoors",
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:dont_open_iron_doors_tool"
										}
									]
								}
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Allow Scientist To Open Iron Doors",
							"play_sounds": "armor.equip_generic"
						},
						{
							"on_interact": {
								"event": "stopmoving",
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:stand_still_tool"
										}
									]
								}
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Stop Scientist From Moving",
							"play_sounds": "armor.equip_generic"
						},
						{
							"on_interact": {
								"event": "move",
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:move_tool"
										}
									]
								}
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Allow Scientist To Move",
							"play_sounds": "armor.equip_generic"
						}
					]
				}
			},
			"openirondoors": {
				"minecraft:navigation.walk": {
					"avoid_damage_blocks": true,
					"avoid_portals": true,
					"avoid_water": true,
					"can_open_doors": true,
					"can_open_iron_doors": true,
					"can_pass_doors": true,
					"can_path_over_water": true,
					"can_sink": false
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"event": "dontopenirondoors",
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:dont_open_iron_doors_tool"
										}
									]
								}
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Stop Scientist From Opening Iron Doors",
							"play_sounds": "armor.equip_generic"
						},
						{
							"on_interact": {
								"event": "stopmoving",
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:stand_still_tool"
										}
									]
								}
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Stop Scientist From Moving",
							"play_sounds": "armor.equip_generic"
						},
						{
							"on_interact": {
								"event": "move",
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:move_tool"
										}
									]
								}
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Allow Scientist To Move",
							"play_sounds": "armor.equip_generic"
						}
					]
				},
				"minecraft:behavior.open_door": {
					"priority": 7,
					"close_door_after": true
				},
				"minecraft:annotation.open_door": {}
			},
			"moving": {
				"minecraft:movement": {
					"value": 0.25
				},
				"minecraft:movement.basic": {},
				"minecraft:behavior.random_stroll": {
					"priority": 2
				},
				"minecraft:pushable": {
					"is_pushable": true,
					"is_pushable_by_piston": true
				},
				"minecraft:behavior.avoid_mob_type": {
					"priority": 1,
					"sprint_distance": 8,
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "scp743"									
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "scp772"									
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "ntfgrenade"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "scp008zombie"
									}
								]
							},
							"sprint_speed_multiplier": 1.4,
							"max_dist": 5,
							"max_flee": 8
						}
					]
				},
				"minecraft:preferred_path": {
					"max_fall_blocks": 1,
					"jump_cost": 20,
					"default_block_cost": 3,
					"preferred_path_blocks": [
						{
							"cost": 0,
							"blocks": [
								"scpcf:white_tiles",
								"scpcf:armoured_tiles",
								"scpcf:checkered_tiles",
								"scpcf:laboratory_tiles",
								"scpcf:reinforced_white_tiles",
								"scpcf:reinforced_gray_tiles"
							]
						}
					]
				}
            },
			"stopmoving": {
				"minecraft:pushable": {
					"is_pushable": false,
					"is_pushable_by_piston": true
				},
				"minecraft:movement": {
					"value": 0
				}
			},
			"detectscp500": {
				"minecraft:environment_sensor": {
					"triggers": [
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "bad_omen"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "blindness"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "darkness"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "fatal_poison"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "hunger"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "infested"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "instant_damage"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "levitation"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "mining_fatigue"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "nausea"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "oozing"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "poison"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "slowness"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "weakness"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "wind_charged"
							}
						},
						{
							"event": "findscp500",
							"target": "self",
							"filters": {
								"test": "has_mob_effect",
								"value": "wither"
							}
						}
					]
				}
			}
		},
		"components": {
			"minecraft:nameable": {},		
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:health": {
				"value": 20,
				"max": 20
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:type_family": {
				"family": [
					"human",
					"mtfepsilon11",
					"mob"
				]
			},
			"minecraft:behavior.eat_carried_item": {
				"priority": 0,
				"delay_before_eating": 3
			},
			"minecraft:behavior.look_at_entity": {
				"priority": 7,
				"look_distance": 8
			},
			"minecraft:behavior.look_at_player": {
				"priority": 7,
				"look_distance": 8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8,
				"look_time": [2, 3]
			},
			"minecraft:behavior.float": {
				"priority": 2
			},
			"minecraft:collision_box": {
				"height": 1.9,
				"width": 0.6
			},
			"minecraft:damage_sensor": {
				"triggers": [
					{
						"on_damage": {
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "scp008zombie"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "scp008zombievillager"
									}
								],
								"all_of": [
									{
										"test": "has_damage",
										"value": "fatal"
									}
								]
							},
							"event": "become_zombie_scp_008"
						}
	                },
			        {
				    "on_damage": {
					    "filters": {
						        "any_of": [
							{
								"test": "is_family",
								"subject": "other",
								"value": "scp049"
							}
						],
						"all_of": [
							{
								"test": "has_damage",
								"value": "fatal"
							}
						]
					},
					"event": "scp049zombiesummon"
				}
			}
		]
	},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?6:0"
			},
			"minecraft:hurt_on_condition": {
				"damage_conditions": [
					{
						"filters": {
							"test": "in_lava",
							"subject": "self",
							"operator": "==",
							"value": true
						},
						"cause": "lava",
						"damage_per_tick": 4
					}
				]
			}
		},
		"events": {
			"minecraft:entity_spawned":{
				"add": {
					"component_groups": [
						"openirondoors",
						"moving",
						"detectscp500"
					]
				},
                "set_property": {
                   "scpclassified:scientisthaircolor": "math.random_integer(0, 3)",
				   "scpclassified:scientisteyecolor": "math.random_integer(0, 5)",
				   "scpclassified:scientistskincolor": "math.random_integer(0, 3)",
				   "scpclassified:scientistglassesvariant": "math.random_integer(0, 6)",
				   "scpclassified:scientistpantsvariant": "math.random_integer(0, 3)",
				   "scpclassified:scientistcoatvariant": "math.random_integer(0, 5)"
                }
			},
			"dontopenirondoors": {
				"add": {
					"component_groups": [
						"dontopenirondoors"
					]
				},
				"remove": {
					"component_groups": [
						"openirondoors"
					]
				}
			},
			"openirondoors": {
				"add": {
					"component_groups": [
						"openirondoors"
					]
				},
				"remove": {
					"component_groups": [
						"dontopenirondoors"
					]
				}
			},
			"stopmoving": {
				"remove": {
					"component_groups": [
						"moving"
					]
				},
				"add": {
					"component_groups": [
						"stopmoving"
					]
				}
			},
			"move": {
				"add": {
					"component_groups": [
						"moving"
					]
				},
				"remove": {
					"component_groups": [
						"stopmoving"
					]
				}
			},
			"findscp500": {
				"add": {
					"component_groups": [
						"findscp500",
						"pickupscp500"
					]
				},
				"remove": {
					"component_groups": [
						"detectscp500"
					]
				}
			},
			"dontfindscp500": {
				"remove": {
					"component_groups": [
						"findscp500",
						"pickupscp500"
					]
				},
				"add": {
					"component_groups": [
						"effectscp500"
					]
				}
			},
			"become_zombie_scp_008": {
				"add": {
					"component_groups": [
						"scp008zombie"
					]
				}
			},
			"scp049zombiesummon": {
				"add": {
					"component_groups": [
						"scp049zombie"
					]
				}
			},
			"effectscp500": {
				"remove": {
					"component_groups": [
						"effectscp500"
					]
				},
				"add": {
					"component_groups": [
						"detectscp500"
					]
				}
			}
		}
	}
}