{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_049",
			"is_summonable": true,
			"is_spawnable": true,
			"is_experimental": false
		},
		"component_groups": {
			"scp049pestilence": {
				"minecraft:behavior.nearest_attackable_target": {
					"entity_types": [
						{
							"filters": {
								"any_of": [
									{
										"test": "is_family",
										"subject": "other",
										"value": "player"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "recontainhuman"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "recontainhumanfriendly"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "villager"
									},
									{
										"test": "is_family",
										"subject": "other",
										"value": "mtfepsilon11"
									}
								]
							},
							"must_see": false,
							"max_dist": 100
						}
					],
					"reselect_targets": true
				},
				"minecraft:behavior.melee_attack": {
					"priority": 1,
					"speed_multiplier": 0.4
				},
				"minecraft:attack": {
					"damage": 500
				},
				"minecraft:timer": {
					"looping": false,
					"time": 60,
					"time_down_event": {
						"event": "scp049docile"
					}
				}
			},
			"dociletimer": {
				"minecraft:timer": {
					"looping": false,
					"time": 60,
					"time_down_event": {
						"event": "scp049pestilenceevent"
					}
				}
			},
			"variantshift1": {
				"minecraft:variant": {
					"value": 0
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:temporal_shifter"
										}
									]
								},
								"event": "variantshift2"
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Shift Variant.",
							"play_sounds": "armor.equip_generic"
						}
					]
				}
			},
			"variantshift2": {
				"minecraft:variant": {
					"value": 1
				},
				"minecraft:interact": {
					"interactions": [
						{
							"on_interact": {
								"filters": {
									"all_of": [
										{
											"test": "is_family",
											"subject": "other",
											"value": "player"
										},
										{
											"test": "has_equipment",
											"domain": "hand",
											"subject": "other",
											"value": "scpcf:temporal_shifter"
										}
									]
								},
								"event": "variantshift1"
							},
							"use_item": false,
							"swing": true,
							"interact_text": "Shift Variant.",
							"play_sounds": "armor.equip_generic"
						}
					]
				}
			}
		},
		"components": {
			"minecraft:movement.basic": {},
			"minecraft:navigation.walk": {
				"is_amphibious": false,
				"avoid_portals": false,
				"avoid_sun": false,
				"avoid_water": false,
				"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,
				"can_open_iron_doors": false
			},
			"minecraft:behavior.random_stroll": {
				"priority": 2,
				"speed_multiplier": 0.5
			},
			"minecraft:health": {
				"value": 1000,
				"max": 1000
			},
			"minecraft:jump.static": {},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:can_climb": {},
			"minecraft:type_family": {
				"family": [
					"scp",
					"scp049",
					"monster"
				]
			},
			"minecraft:leashable": {
				"soft_distance": 4,
				"hard_distance": 6,
				"max_distance": 10
			},
			"minecraft:annotation.open_door": {},
			"minecraft:behavior.open_door": {
				"priority": 0,
				"close_door_after": true
			},
			"minecraft:follow_range": {
				"value": 100,
				"max": 100
			},
			"minecraft:timer": {
				"looping": false,
				"time": 60,
				"time_down_event": {
					"event": "scp049pestilenceevent"
				}
			},
			"minecraft:behavior.hurt_by_target": {},
			"minecraft:attack": {
				"damage": 500
			},
			"minecraft:behavior.melee_attack": {
				"priority": 1,
				"speed_multiplier": 0.4,
				"on_kill": {
					"event": "scp049zombieevent"
				}
			},
			"minecraft:behavior.look_at_player": {
				"priority": 8
			},
			"minecraft:behavior.random_look_around": {
				"priority": 8
			},
			"minecraft:nameable": {},
			"minecraft:knockback_resistance": {
				"value": 0.2,
				"max": 0.2
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?60:0"
			},
			"minecraft:breathable": {
				"total_supply": 20,
				"suffocate_time": 0
			},
			"minecraft:behavior.float": {
				"priority": 2
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"add": {
				  "component_groups": [
					"variantshift1"
				   ]
		     	}
		    },
			"variantshift1": {
				"add": {
					"component_groups": [
					  "variantshift1"
					 ]
					},
					"remove": {
						"component_groups": [
							"variantshift2"
						]
					}
			},
			"variantshift2": {
				"add": {
					"component_groups": [
					  "variantshift2"
					 ]
					},
					"remove": {
						"component_groups": [
							"variantshift1"
						]
					}
			},
			"scp049pestilenceevent": {
				"add": {
					"component_groups": [
						"scp049pestilence"
					]
				},
				"remove": {
					"component_groups": [
						"dociletimer"
					]
				}
			},
			"scp049docile": {
				"remove": {
					"component_groups": [
						"scp049pestilence"
					]
				},
				"add": {
					"component_groups": [
						"dociletimer"
					]
				}
			}
		}
	}
}