Is there a way to still have zombie villagers from zombie spawners in 1.17? [duplicate]

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 commands or something I tried this command /setblock ~ ~ ~ spawner{SpawnPotentials:[{Entity:{id:"zombie"},Weight:19},{Entity:{id:"zombie_villager"},Weight:1}]} and it says could not sit the block is there something wrong? I'm playing on 1.17

9

1 Answer

Your command may be outdated. I used a command generator such as MCStacker to generate a working command for 1.17:

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

You Might Also Like