mojira.dev
MCPE-158736

Mangrove Swamp spawns wrong Zombie Villager type (Parity)

In Java, when a Zombie Villager spawns in a Mangrove Swamp, it spawns with the Swamp outfit.

In Bedrock, when a Zombie Villager spawns in a Mangrove Swamp, it spawns with the Plains outfit.

Testing with a behavior pack, adding

{
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "swamp"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mangrove_swamp"
                }
              ]
            },
            "add": { "component_groups": [ "swamp_villager" ] }
          },
{
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "swamp"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mangrove_swamp"
                }
              ]
            },
            "add": { "component_groups": [ "swamp_villager" ] }
          },

into zombie_villager_v2.json in the appropriate section resolved the issue for me and my Realm, so I hope it'd be a fairly easy fix to implement properly 🙂

Linked issues

Attachments

Comments 2

Affects 1.20.40. This report focuses on zombie villagers. Not on non-zombified villagers that explains why it hasn't been fixed yet in 1.20.40. Here I have a video where this is demonstrated

[media]

The current code in 1.20.40 in the zombie_villager_v2.json file is:

{
            "filters": { "test": "has_biome_tag", "value": "swamp" },
            "add": { "component_groups": [ "swamp_villager" ] }
          },
{
            "filters": { "test": "has_biome_tag", "value": "swamp" },
            "add": { "component_groups": [ "swamp_villager" ] }
          },

while the correct one would be:

{
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "swamp"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mangrove_swamp"
                }
              ]
            },
            "add": { "component_groups": [ "swamp_villager" ] }
          },
{
            "filters": {
              "any_of": [
                {
                  "test": "has_biome_tag",
                  "value": "swamp"
                },
                {
                  "test": "has_biome_tag",
                  "value": "mangrove_swamp"
                }
              ]
            },
            "add": { "component_groups": [ "swamp_villager" ] }
          },

Request ownership of report why it has been inactive for 1+ years

TehFlatline

Timer RP

(Unassigned)

1128136

Confirmed

Multiple

biome, mangrove-swamp, texture, zombie_villager

1.19.2 Hotfix, 1.20.40, 1.20.60.22 Preview, 1.20.50, 1.20.51 Hotfix, 1.20.60

1.21.60.21 Preview, 1.21.60

Retrieved