5

I'm halfway through building a villager cure station from a zombie spawner however since 1.11 zombie villagers don't spawn there anymore...

Is there still a way to maybe change this feature back through the use of a datapack or something?

I'm playing on 1.14.1 Pre-release.

0

1 Answer 1

3

A spawner can choose between entities from an arbitrarily big set that you specify.

For example if you want 95% of entities from a spawner to be zombies and 5% to be zombie villagers, you can use this command:

/setblock ~ ~ ~ spawner{SpawnPotentials:[{Entity:{id:"zombie"},Weight:19},{Entity:{id:"zombie_villager"},Weight:1}]}

This isn't quite the same behaviour as it used to have in old versions, for example I'm pretty sure that it's slower, but you can adjust all the parameters you find here (archive) however you like.

(Omitting the Weight parameters gives 100% of the spawn probability to the first entity type.)

3
  • I've been testing it and I'm not getting any zombie villagers. Here is a screenshot of the nbt data of the spawner: imgur.com/a/aPAQP7j As you can see it also has a spawnData entry, is this a problem?
    – BRHSM
    May 11, 2019 at 12:40
  • Nevermind a villager just spawned. however I feel like it's less than 5% at this point.
    – BRHSM
    May 11, 2019 at 12:47
  • 5% is one in 20, it takes a while. I also tested it, it really does take a while, especially because the spawning is slower than for normal spawners, if you don't specify anything in that regard, but after about 10-15 spawns, I got a regular zombie villager and a baby zombie villager at once. May 11, 2019 at 15:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .