{
  "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
      },
      "minecraft:behavior.equip_item": {
        "priority": 3
      },
      "minecraft:behavior.hurt_by_target": {
        "priority": 1
      },
      "minecraft:behavior.look_at_player": {
        "look_time": {
          "min": 1,
          "max": 2
        },
        "look_distance": 6,
        "priority": 10
      },
      // Zombie_villager Behaviors
      "minecraft:behavior.melee_attack": {
        "priority": 6
      },
      "minecraft:behavior.nearest_attackable_target": {
        "reselect_targets": 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.pickup_items": {
        "can_pickup_any_item": true,
        "excluded_items": [
          "minecraft:glow_ink_sac"
        ],
        "pickup_based_on_chance": true,
        "goal_radius": 2,
        "priority": 8,
        "max_dist": 3,
        "speed_multiplier": 1
      },
      "minecraft:behavior.random_look_around": {
        "priority": 11
      },
      "minecraft:behavior.random_stroll": {
        "priority": 9,
        "speed_multiplier": 1
      },
      "minecraft:behavior.stomp_turtle_egg": {
        "goal_radius": 1.14,
        "priority": 4,
        "search_height": 2,
        "interval": 20,
        "search_range": 10,
        "speed_multiplier": 1
      },
      "minecraft:breathable": {
        "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:conditional_bandwidth_optimization": {},
      "minecraft:despawn": {
        "despawn_from_distance": {}
      },
      "minecraft:equip_item": {},
      "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:is_hidden_when_invisible": {},
      "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,
        "can_break_doors": true,
        "is_amphibious": true,
        "can_pass_doors": true,
        "using_door_annotation": true
      },
      "minecraft:physics": {},
      "minecraft:pushable": {
        "is_pushable": true,
        "is_pushable_by_piston": true
      },
      "minecraft:shareables": {
        "items": [
          {
            "item": "minecraft:netherite_sword",
            "priority": 0,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:diamond_sword",
            "priority": 1,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:iron_sword",
            "priority": 2,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:stone_sword",
            "priority": 3,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:golden_sword",
            "priority": 4,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:wooden_sword",
            "priority": 5,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:netherite_helmet",
            "priority": 0,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:diamond_helmet",
            "priority": 1,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:iron_helmet",
            "priority": 2,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:chainmail_helmet",
            "priority": 3,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:golden_helmet",
            "priority": 4,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:leather_helmet",
            "priority": 5,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:turtle_helmet",
            "priority": 6,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:skull:0",
            "priority": 7,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:skull:1",
            "priority": 7,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:carved_pumpkin",
            "priority": 7,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:netherite_chestplate",
            "priority": 0,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:diamond_chestplate",
            "priority": 1,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:iron_chestplate",
            "priority": 2,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:chainmail_chestplate",
            "priority": 3,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:golden_chestplate",
            "priority": 4,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:leather_chestplate",
            "priority": 5,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:netherite_leggings",
            "priority": 0,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:diamond_leggings",
            "priority": 1,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:iron_leggings",
            "priority": 2,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:chainmail_leggings",
            "priority": 3,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:golden_leggings",
            "priority": 4,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:leather_leggings",
            "priority": 5,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:netherite_boots",
            "priority": 0,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:diamond_boots",
            "priority": 1,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:iron_boots",
            "priority": 2,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:chainmail_boots",
            "priority": 3,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:golden_boots",
            "priority": 4,
            "surplus_amount": 1,
            "want_amount": 1
          },
          {
            "item": "minecraft:leather_boots",
            "priority": 5,
            "surplus_amount": 1,
            "want_amount": 1
          }
        ]
      }
    },
    "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": 6
          }
        },
        "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
        }
      },
      "can_break_doors": {
        "minecraft:annotation.break_door": {}
      },
      "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": 6
          }
        },
        "minecraft:is_baby": {},
        "minecraft:movement": {
          "value": 0.35
        },
        "minecraft:scale": {
          "value": 0.5
        }
      },
      "butcher": {
        "minecraft:type_family": {
          "family": [
            "butcher",
            "zombie_villager",
            "zombie",
            "undead",
            "monster",
            "mob"
          ]
        },
        "minecraft:variant": {
          "value": 0
        }
      },
      "weaponsmith": {
        "minecraft:type_family": {
          "family": [
            "weaponsmith",
            "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": [
            "stone_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": [
          {
            "trigger": "minecraft:entity_spawned"
          },
          {
            "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": [
                    "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"
            }
          },
          {
            "trigger": "minecraft:add_biome_and_skin"
          },
          {
            "randomize": [
              {
                "add": {
                  "component_groups": [
                    "can_break_doors"
                  ]
                },
                "weight": 10
              },
              {
                "weight": 90
              }
            ]
          }
        ]
      },
      "minecraft:become_cleric": {
        "add": {
          "component_groups": [
            "cleric"
          ]
        }
      },
      "minecraft:add_biome_and_skin": {
        "sequence": [
          {
            "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
              }
            ]
          },
          {
            "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: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": "stone_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"
                  ]
                }
              }
            ]
          }
        ]
      },
      "minecraft:spawn_skilled_adult": {
        "sequence": [
          {
            "filters": {
              "test": "has_component",
              "operator": "!=",
              "value": "minecraft:variant"
            },
            "add": {
              "component_groups": [
                "adult"
              ]
            }
          },
          {
            "randomize": [
              {
                "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"
            }
          },
          {
            "trigger": "minecraft:add_biome_and_skin"
          }
        ]
      }
    }
  }
}