{
	"format_version": "1.21.30",
	"minecraft:entity": {
		"description": {
			"identifier": "scpcf:scp_008_zombie_villager",
			"is_spawnable": false,
			"is_summonable": true,
			"is_experimental": false
		},
		"component_groups": {
			"nitwit": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"farmer": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"fisherman": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"shepherd": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"fletcher": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"librarian": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"cartographer": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"cleric": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"armorer": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"weaponsmith": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"toolsmith": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"butcher": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"leatherworker": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"mason": {
				"minecraft:variant": {
					"value": 0
				}
			},
			"desert_villager": {
				"minecraft:mark_variant": {
					"value": 1
				}
			},
			"jungle_villager": {
				"minecraft:mark_variant": {
					"value": 2
				}
			},
			"savanna_villager": {
				"minecraft:mark_variant": {
					"value": 3
				}
			},
			"snow_villager": {
				"minecraft:mark_variant": {
					"value": 4
				}
			},
			"swamp_villager": {
				"minecraft:mark_variant": {
					"value": 5
				}
			},
			"taiga_villager": {
				"minecraft:mark_variant": {
					"value": 6
				}
			},
			"villager_skin_0": {
				"minecraft:skin_id": {
					"value": 0
				}
			},
			"villager_skin_1": {
				"minecraft:skin_id": {
					"value": 1
				}
			},
			"villager_skin_2": {
				"minecraft:skin_id": {
					"value": 2
				}
			},
			"villager_skin_3": {
				"minecraft:skin_id": {
					"value": 3
				}
			},
			"villager_skin_4": {
				"minecraft:skin_id": {
					"value": 4
				}
			},
			"villager_skin_5": {
				"minecraft:skin_id": {
					"value": 5
				}
			},
			"unskilled": {
				"minecraft:variant": {
					"value": 0
				}
			}
		},
		"components": {
			"minecraft:navigation.walk": {
				"is_amphibious": true,
				"can_pass_doors": true,
				"can_break_doors": true,
				"avoid_sun": false,
				"can_path_over_water": true,
				"can_sink": false
			},
			"minecraft:annotation.break_door": {
				"break_time": 5,
				"min_difficulty": "normal"
			},
			"minecraft:movement.basic": {},
			"minecraft:jump.static": {},
			"minecraft:can_climb": {},
			"minecraft:collision_box": {
				"width": 0.6,
				"height": 1.9
			},
			"minecraft:health": {
				"value": 30,
				"max": 30
			},
			"minecraft:attack": {
				"damage": 4
			},
			"minecraft:nameable": {},
			"minecraft:behavior.melee_attack": {
				"priority": 2,
				"speed_multiplier": 0.5,
				"on_attack": {
					"event": "scp008zombiefunction",
					"target": "self"
				}
			},
			"minecraft:behavior.random_stroll": {
				"priority": 9,
				"speed_multiplier": 0.5
			},
			"minecraft:behavior.look_at_player": {
				"priority": 10,
				"look_distance": 6,
				"probability": 0.02
			},
			"minecraft:behavior.random_look_around": {
				"priority": 11
			},
			"minecraft:behavior.hurt_by_target": {
				"priority": 1
			},
			"minecraft:behavior.nearest_attackable_target": {
				"priority": 2,
				"must_see": true,
				"reselect_targets": true,
				"within_radius": 25,
				"must_see_forget_duration": 17,
				"entity_types": [
					{
						"filters": {
							"any_of": [
								{
									"test": "is_family",
									"subject": "other",
									"value": "player"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "villager"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "wandering_trader"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "mtfepsilon11"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "recontainhumanfriendly"
								},
								{
									"test": "is_family",
									"subject": "other",
									"value": "recontainhuman"
								}
							]
						},
						"max_dist": 35
					}
				]
			},
			"minecraft:physics": {},
			"minecraft:pushable": {
				"is_pushable": true,
				"is_pushable_by_piston": true
			},
			"minecraft:movement": {
				"value": 0.5
			},
			"minecraft:type_family": {
				"family": [
					"scp",
					"scp008zombievillager",
					"monster"
				]
			},
			"minecraft:loot": {
				"table": "loot_tables/scp008zombieloot.json"
			},
			"minecraft:experience_reward": {
				"on_death": "query.last_hit_by_player?6:0"
			},
			"minecraft:breathable": {
				"totalSupply": 15,
				"suffocate_time": 0
			},
			"minecraft:behavior.float": {
				"priority": 2
			}
		},
		"events": {
			"minecraft:entity_spawned": {
				"sequence": [
					{
						"filters": {
							"test": "has_component",
							"operator": "!=",
							"value": "minecraft:variant"
						},
						"randomize": [
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"unskilled"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"nitwit"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"farmer"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"fisherman"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"shepherd"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"fletcher"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"librarian"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"cartographer"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"cleric"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"armorer"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"weaponsmith"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"toolsmith"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"butcher"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"leatherworker"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"mason"
									]
								}
							}
						]
					},
					{
						"trigger": "minecraft:add_biome_and_skin"
					}
				]
			},
			"minecraft:add_biome_and_skin": {
				"sequence": [
					{
						"randomize": [
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"villager_skin_0"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"villager_skin_1"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"villager_skin_2"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"villager_skin_3"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"villager_skin_4"
									]
								}
							},
							{
								"weight": 1,
								"add": {
									"component_groups": [
										"villager_skin_5"
									]
								}
							}
						]
					},
					{
						"filters": {
							"any_of": [
								{
									"test": "has_biome_tag",
									"value": "desert"
								},
								{
									"test": "has_biome_tag",
									"value": "mesa"
								}
							]
						},
						"add": {
							"component_groups": [
								"desert_villager"
							]
						}
					},
					{
						"filters": {
							"test": "has_biome_tag",
							"value": "jungle"
						},
						"add": {
							"component_groups": [
								"jungle_villager"
							]
						}
					},
					{
						"filters": {
							"test": "has_biome_tag",
							"value": "savanna"
						},
						"add": {
							"component_groups": [
								"savanna_villager"
							]
						}
					},
					{
						"filters": {
							"any_of": [
								{
									"all_of": [
										{
											"test": "has_biome_tag",
											"value": "cold"
										},
										{
											"test": "has_biome_tag",
											"operator": "!=",
											"value": "ocean"
										}
									]
								},
								{
									"test": "has_biome_tag",
									"value": "frozen"
								}
							]
						},
						"add": {
							"component_groups": [
								"snow_villager"
							]
						}
					},
					{
						"filters": {
							"test": "has_biome_tag",
							"value": "swamp"
						},
						"add": {
							"component_groups": [
								"swamp_villager"
							]
						}
					},
					{
						"filters": {
							"all_of": [
								{
									"any_of": [
										{
											"test": "has_biome_tag",
											"value": "taiga"
										},
										{
											"test": "has_biome_tag",
											"value": "extreme_hills"
										}
									]
								},
								{
									"test": "has_biome_tag",
									"operator": "!=",
									"value": "cold"
								}
							]
						},
						"add": {
							"component_groups": [
								"taiga_villager"
							]
						}
					}
				]
			},
			"scp008zombiefunction": {
				"queue_command": {
					"command": [
						"tag @s add scp008function",
						"tag @s[family=villager] add scp008zombie1function",
						"tag @s[type=scpcf:class_d] add scp008zombie2function",
						"tag @s[type=scpcf:scp_guard] add scp008zombie3function",
						"tag @s[type=scpcf:mtf_epsilon_11] add scp008zombie4function",
						"tag @s[type=scpcf:scientist] add scp008zombie5function"
					],
					"target": "target"
				}
			}
		}
	}
}