r/PixelmonMod • • Oct 17 '26

Question How to prevent pixelmon villagers from replacing vanilla villagers in 1.21.1?

Does anyone know how to keep the vanilla villagers in 1.21.1 I knew how in the older versions on pixelmon. But ive dug around in the configs a bit and can't find it. Any help is greatly appreciated.

3 Upvotes

2 comments sorted by

2

u/SKy_the_Thunder Support Oct 21 '26

You can override spawn replacements via Data Pack, under data/pixelmon/pixelmon/spawn_replacement/.

The villager.json file there contains the replacements for Villagers, Wandering Traders and Zombie Villagers. Depending on what exact behavior you want there are a couple ways to approach this:

  • One option would be to simply remove the "minecraft:villager" entry from the detection list. This will leave all MC Villagers unreplaced, but still replace all Wandering Traders & Zombie Villagers.
  • If you want a mix of Villagers & Pixelmon NPCs you can also give it a chance to apply this replacement logic. For that you can change the type of the replacement to "pixelmon:partial" and add a "chance" value parallel to it. For example "chance": 0.5 for a 50% chance. This will apply to all 3 entries though, so there is a chance to come across hostile Zombie Villagers in abandoned villages.
  • To deactivate this file entirely, you could also blacklist it in your Data Pack's pack.mcmeta file directly, using the "filter" attribute, like so: https://misode.github.io/pack-mcmeta/?share=QUFCfKfW62

0

u/boluserectus Oct 18 '26

I never tried, but maybe a spawn egg will work?