{
  "format_version": "1.26.0",
  "minecraft:entity": {
    "description": {
      "identifier": "minecraft:zombie_villager_v2",
      "is_experimental": false,
      "is_summonable": false,
      "is_spawnable": true,
      "spawn_category": "monster"
    },
    "components": {
      "minecraft:attack": {
        "damage": 3
      },
      // Zombie_villager Behaviors
      "minecraft:behavior.break_door": {
        "priority": 1
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "look_distance": 6,
        "priority": 9
      },
      "minecraft:behavior.melee_attack": {
        "priority": 6
      },
      "minecraft:behavior.nearest_attackable_target": {
        "reselect_targets": true,
        "set_persistent": true,
        "must_see": true,
        "entity_types": [
          {
            "filters": {
              "AND": [
                {
                  "OR": [
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "player"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "snowgolem"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "irongolem"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "villager"
                    },
                    {
                      "test": "is_family",
                      "subject": 1,
                      "operator": 0,
                      "value": "wandering_trader"
                    }
                  ]
                }
              ]
            },
            "max_dist": 35
          },
          {
            "filters": {
              "AND": [
                {
                  "test": "is_family",
                  "subject": 1,
                  "operator": 0,
                  "value": "baby_turtle"
                },
                {
                  "test": "in_water",
                  "subject": 1,
                  "operator": 1,
                  "value": true
                }
              ]
            },
            "max_dist": 35
          }
        ],
        "priority": 2
      },
      "minecraft:behavior.random_look_around": {
        "priority": 9
      },
      "minecraft:behavior.random_stroll": {
        "priority": 8,
        "speed_multiplier": 1
      },
      "minecraft:behavior.stomp_turtle_egg": {
        "goal_radius": 1.14,
        "priority": 4,
        "search_height": 3,
        "interval": 20,
        "search_range": 24,
        "speed_multiplier": 1
      },
      "minecraft:breathable": {
        "breathes_lava": false,
        "breathes_water": true,
        "suffocate_time": 0,
        "total_supply": 15
      },
      "minecraft:burns_in_daylight": {},
      "minecraft:can_climb": {},
      "minecraft:collision_box": {
        "height": 1.9,
        "width": 0.6
      },
      "minecraft:despawn": {
        "filters": [
          {
            "all_of": [
              {
                "test": "is_persistent",
                "value": false
              },
              {
                "operator": ">=",
                "test": "light_level",
                "value": 8
              },
              {
                "test": "is_daytime",
                "value": true
              },
              {
                "subject": "self",
                "test": "inactivity_timer",
                "value": 600
              },
              {
                "test": "random_chance",
                "value": 50
              },
              {
                "operator": ">",
                "test": "distance_to_nearest_player",
                "value": 54
              },
              {
                "test": "surface_mob",
                "value": true
              }
            ]
          }
        ]
      },
      "minecraft:health": {
        "max": 20,
        "value": 20
      },
      "minecraft:hurt_on_condition": {
        "damage_conditions": [
          {
            "cause": "lava",
            "damage_per_tick": 4,
            "filters": {
              "operator": "==",
              "test": "in_lava",
              "subject": "self",
              "value": true
            }
          }
        ]
      },
      "minecraft:interact": {
        "interactions": {
          "interact_text": "action.interact.cure",
          // Curing the villager
          "on_interact": {
            "event": "villager_converted",
            "filters": {
              "all_of": [
                {
                  "domain": "hand",
                  "subject": "other",
                  "test": "has_equipment",
                  "value": "golden_apple"
                },
                {
                  "subject": "self",
                  "test": "has_component",
                  "value": "minecraft:effect.weakness"
                }
              ]
            },
            "target": "self"
          },
          "swing": false,
          "use_item": true
        }
      },
      "minecraft:jump.static": {},
      "minecraft:loot": {
        "table": "loot_tables/entities/zombie.json"
      },
      "minecraft:movement.basic": {},
      "minecraft:nameable": {},
      // Zombie_villager Components
      "minecraft:navigation.walk": {
        "avoid_sun": false,
        "is_amphibious": true,
        "can_open_doors": true,
        "using_door_annotation": true,
        "can_pass_doors": true
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      }
    },
    "component_groups": {
      "adult": {
        "minecraft:behavior.mount_pathing": {
          "priority": 5,
          "target_dist": 0,
          "speed_multiplier": 1.25,
          "track_target": true
        },
        "minecraft:experience_reward": {
          "on_death": {
            "expression": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0",
            "version": 0
          }
        },
        "minecraft:movement": {
          "value": 0.23
        },
        "minecraft:rideable": {
          "family_types": [
            "zombie"
          ],
          "seat_count": 1,
          "seats": {
            "position": [
              0,
              1.1,
              -0.35
            ]
          }
        }
      },
      "desert_villager": {
        "minecraft:mark_variant": {
          "value": 1
        }
      },
      "armorer": {
        "minecraft:type_family": {
          "family": [
            "armorer",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "cartographer": {
        "minecraft:type_family": {
          "family": [
            "cartographer",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "snow_villager": {
        "minecraft:mark_variant": {
          "value": 4
        }
      },
      "baby": {
        "minecraft:experience_reward": {
          "on_death": {
            "expression": "query.last_hit_by_player ? 12 + (query.equipment_count * Math.Random(1,3)) : 0",
            "version": 0
          }
        },
        "minecraft:is_baby": {},
        "minecraft:movement": {
          "value": 0.35
        },
        "minecraft:scale": {
          "value": 0.5
        }
      },
      "weaponsmith": {
        "minecraft:type_family": {
          "family": [
            "weaponsmith",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "butcher": {
        "minecraft:type_family": {
          "family": [
            "butcher",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "cleric": {
        "minecraft:type_family": {
          "family": [
            "cleric",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "farmer": {
        "minecraft:type_family": {
          "family": [
            "farmer",
            "zombie",
            "zombie_villager",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "fisherman": {
        "minecraft:type_family": {
          "family": [
            "fisherman",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "villager_skin_2": {
        "minecraft:skin_id": {
          "value": 2
        }
      },
      "fletcher": {
        "minecraft:type_family": {
          "family": [
            "fletcher",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "from_abandoned_village": {
        "minecraft:behavior.flee_sun": {
          "priority": 4,
          "speed_multiplier": 1
        },
        "minecraft:navigation.walk": {
          "avoid_sun": true,
          "is_amphibious": true,
          "avoid_water": true,
          "can_open_doors": true,
          "can_pass_doors": true
        }
      },
      "jockey": {
        "minecraft:behavior.find_mount": {
          "priority": 1,
          "within_radius": 16
        }
      },
      "swamp_villager": {
        "minecraft:mark_variant": {
          "value": 5
        }
      },
      "jungle_villager": {
        "minecraft:mark_variant": {
          "value": 2
        }
      },
      "librarian": {
        "minecraft:type_family": {
          "family": [
            "librarian",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "to_villager": {
        "minecraft:is_shaking": {},
        "minecraft:spell_effects": {
          "add_effects": [
            {
              "duration": 100,
              "effect": "strength"
            },
            {
              "duration": 100,
              "effect": "heal"
            }
          ],
          "remove_effects": "weakness"
        },
        "minecraft:transformation": {
          "begin_transform_sound": "remedy",
          "keep_level": true,
          "delay": {
            "block_assist_chance": 0.01,
            "block_radius": 4,
            "block_chance": 0.3,
            "block_types": [
              "minecraft:bed",
              "minecraft:iron_bars"
            ],
            "value": 100
          },
          "into": "minecraft:villager_v2",
          "transformation_sound": "unfect"
        }
      },
      "leatherworker": {
        "minecraft:type_family": {
          "family": [
            "leatherworker",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "mason": {
        "minecraft:type_family": {
          "family": [
            "mason",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "nitwit": {
        "minecraft:type_family": {
          "family": [
            "nitwit",
            "zombie",
            "zombie_villager",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "savanna_villager": {
        "minecraft:mark_variant": {
          "value": 3
        }
      },
      "shepherd": {
        "minecraft:type_family": {
          "family": [
            "shepherd",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "unskilled": {
        "minecraft:type_family": {
          "family": [
            "unskilled",
            "zombie",
            "zombie_villager",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "taiga_villager": {
        "minecraft:mark_variant": {
          "value": 6
        }
      },
      "toolsmith": {
        "minecraft:type_family": {
          "family": [
            "toolsmith",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "villager_skin_0": {
        "minecraft:skin_id": {
          "value": 0
        }
      },
      "villager_skin_1": {
        "minecraft:skin_id": {
          "value": 1
        }
      },
      "villager_skin_3": {
        "minecraft:skin_id": {
          "value": 3
        }
      },
      "villager_skin_4": {
        "minecraft:skin_id": {
          "value": 4
        }
      },
      "villager_skin_5": {
        "minecraft:skin_id": {
          "value": 5
        }
      }
    },
    "events": {
      "villager_converted": {
        "add": {
          "component_groups": [
            "to_villager"
          ]
        },
        "remove": {}
      },
      "from_village": {
        "sequence": [
          {
            "randomize": [
              {
                "add": {
                  "component_groups": [
                    "adult"
                  ]
                },
                "remove": {},
                "weight": 9500
              },
              {
                "add": {
                  "component_groups": [
                    "baby"
                  ]
                },
                "remove": {},
                "weight": 425
              },
              {
                "add": {
                  "component_groups": [
                    "baby",
                    "jockey"
                  ]
                },
                "remove": {},
                "weight": 75
              }
            ],
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:variant"
            }
          },
          {
            "randomize": [
              {
                "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"
                  ]
                },
                "weight": 1
              }
            ]
          },
          {
            "randomize": [
              {
                "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"
                  ]
                },
                "weight": 1
              }
            ],
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:variant"
            }
          },
          {
            "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": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "taiga"
                },
                {
                  "test": "has_biome_tag",
                  "value": "extreme_hills"
                }
              ]
            },
            "add": {
              "component_groups": [
                "taiga_villager"
              ]
            }
          },
          {
            "add": {
              "component_groups": [
                "from_abandoned_village"
              ]
            }
          }
        ]
      },
      "minecraft:entity_spawned": {
        "sequence": [
          {
            "randomize": [
              {
                "add": {
                  "component_groups": [
                    "adult"
                  ]
                },
                "remove": {},
                "weight": 9500
              },
              {
                "add": {
                  "component_groups": [
                    "baby"
                  ]
                },
                "remove": {},
                "weight": 425
              },
              {
                "add": {
                  "component_groups": [
                    "baby",
                    "jockey"
                  ]
                },
                "remove": {},
                "weight": 75
              }
            ],
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:variant"
            }
          },
          {
            "randomize": [
              {
                "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"
                  ]
                },
                "weight": 1
              }
            ]
          },
          {
            "randomize": [
              {
                "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"
                  ]
                },
                "weight": 1
              }
            ],
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:variant"
            }
          },
          {
            "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"
              ]
            }
          }
        ]
      },
      "minecraft:become_cleric": {
        "add": {
          "component_groups": [
            "cleric"
          ]
        }
      },
      "minecraft:entity_transformed": {
        "sequence": [
          {
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:variant"
            },
            "sequence": [
              // Transform baby villager to baby zombie
              {
                "filters": {
                  "subject": "other",
                  "test": "has_component",
                  "value": "minecraft:is_baby"
                },
                "add": {
                  "component_groups": [
                    "baby"
                  ]
                }
              },
              // Transform adult villager to adult zombie
              {
                "filters": {
                  "test": "has_component",
                  "operator": "!=",
                  "subject": "other",
                  "value": "minecraft:is_baby"
                },
                "add": {
                  "component_groups": [
                    "adult"
                  ]
                }
              },
              // Transform unskilled zombie to unskilled villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "unskilled"
                },
                "add": {
                  "component_groups": [
                    "unskilled"
                  ]
                }
              },
              // Transform nitwit zombie to nitwit villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "nitwit"
                },
                "add": {
                  "component_groups": [
                    "nitwit"
                  ]
                }
              },
              // Transform farmer zombie to farmer villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "farmer"
                },
                "add": {
                  "component_groups": [
                    "farmer"
                  ]
                }
              },
              // Transform fisherman zombie to fisherman villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "fisherman"
                },
                "add": {
                  "component_groups": [
                    "fisherman"
                  ]
                }
              },
              // Transform shepherd zombie to shepherd villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "shepherd"
                },
                "add": {
                  "component_groups": [
                    "shepherd"
                  ]
                }
              },
              // Transform fletcher zombie to fletcher villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "fletcher"
                },
                "add": {
                  "component_groups": [
                    "fletcher"
                  ]
                }
              },
              // Transform librarian zombie to librarian villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "librarian"
                },
                "add": {
                  "component_groups": [
                    "librarian"
                  ]
                }
              },
              // Transform cartographer zombie to cartographer villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "cartographer"
                },
                "add": {
                  "component_groups": [
                    "cartographer"
                  ]
                }
              },
              // Transform cleric zombie to cleric villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "cleric"
                },
                "add": {
                  "component_groups": [
                    "cleric"
                  ]
                }
              },
              // Transform armorer zombie to armorer villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "armorer"
                },
                "add": {
                  "component_groups": [
                    "armorer"
                  ]
                }
              },
              // Transform weaponsmith zombie to weaponsmith villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "weaponsmith"
                },
                "add": {
                  "component_groups": [
                    "weaponsmith"
                  ]
                }
              },
              // Transform toolsmith zombie to toolsmith villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "toolsmith"
                },
                "add": {
                  "component_groups": [
                    "toolsmith"
                  ]
                }
              },
              // Transform butcher zombie to butcher villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "butcher"
                },
                "add": {
                  "component_groups": [
                    "butcher"
                  ]
                }
              },
              // Transform leatherworker zombie to leatherworker villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "leatherworker"
                },
                "add": {
                  "component_groups": [
                    "leatherworker"
                  ]
                }
              },
              // Transform mason zombie to mason villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_family",
                  "value": "mason"
                },
                "add": {
                  "component_groups": [
                    "mason"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:mark_variant"
            },
            "sequence": [
              // Transform desert zombie to desert villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_mark_variant",
                  "value": 1
                },
                "add": {
                  "component_groups": [
                    "desert_villager"
                  ]
                }
              },
              // Transform jungle zombie to jungle villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_mark_variant",
                  "value": 2
                },
                "add": {
                  "component_groups": [
                    "jungle_villager"
                  ]
                }
              },
              // Transform jungle zombie to jungle villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_mark_variant",
                  "value": 3
                },
                "add": {
                  "component_groups": [
                    "savanna_villager"
                  ]
                }
              },
              // Transform jungle zombie to jungle villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_mark_variant",
                  "value": 4
                },
                "add": {
                  "component_groups": [
                    "snow_villager"
                  ]
                }
              },
              // Transform jungle zombie to jungle villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_mark_variant",
                  "value": 5
                },
                "add": {
                  "component_groups": [
                    "swamp_villager"
                  ]
                }
              },
              // Transform taiga zombie to taiga villager
              {
                "filters": {
                  "subject": "other",
                  "test": "is_mark_variant",
                  "value": 6
                },
                "add": {
                  "component_groups": [
                    "taiga_villager"
                  ]
                }
              }
            ]
          },
          {
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:skin_id"
            },
            "sequence": [
              {
                "filters": {
                  "subject": "other",
                  "test": "is_skin_id",
                  "value": 0
                },
                "add": {
                  "component_groups": [
                    "villager_skin_0"
                  ]
                }
              },
              {
                "filters": {
                  "subject": "other",
                  "test": "is_skin_id",
                  "value": 1
                },
                "add": {
                  "component_groups": [
                    "villager_skin_1"
                  ]
                }
              },
              {
                "filters": {
                  "subject": "other",
                  "test": "is_skin_id",
                  "value": 2
                },
                "add": {
                  "component_groups": [
                    "villager_skin_2"
                  ]
                }
              },
              {
                "filters": {
                  "subject": "other",
                  "test": "is_skin_id",
                  "value": 3
                },
                "add": {
                  "component_groups": [
                    "villager_skin_3"
                  ]
                }
              },
              {
                "filters": {
                  "subject": "other",
                  "test": "is_skin_id",
                  "value": 4
                },
                "add": {
                  "component_groups": [
                    "villager_skin_4"
                  ]
                }
              },
              {
                "filters": {
                  "subject": "other",
                  "test": "is_skin_id",
                  "value": 5
                },
                "add": {
                  "component_groups": [
                    "villager_skin_5"
                  ]
                }
              }
            ]
          }
        ]
      }
    }
  }
}