How do I stop Zombie Villagers from spawning or Zombies

Solution 1:

You will have to label zombies based on their IsVillager byte tag and then run commands based on the label.

1.8

Objective to use.

/scoreboard objectives add ZombieVillager dummy

Commands to run in numerical order.

  1. Set the "ZombieVillager" score to 1 for zombies with IsVillager set to 1.

    /scoreboard players set @e[type=Zombie] ZombieVillager 1 {IsVillager:1b}
    
  2. Teleport those zombies to the void.

    /tp @e[type=Zombie,score_ZombieVillager_min=1] ~ -64 ~
    

1.9

Commands to run in numerical order.

  1. Apply "ZombieVillager" label for zombies with IsVillager set to 1.

    /scoreboard players tag @e[type=Zombie,tag=!ZombieVillager] add ZombieVillager {IsVillager:1b}
    
  2. Teleport those zombies to the void.

    /tp @e[type=Zombie,tag=ZombieVillager] ~ -64 ~