To start Minecraft villager trading, you need to find a village first. Villages are randomly generated structures that can spawn in various biomes, such as plains, savanna, taiga, desert, snowy
I made villagers fight back against zombies here is the single command "/execute @e[type=Villager] ~ ~ ~ /effect @e[type=Zombie,r=3] instant_health 1. Then make repeating redstone with a comparator not repeaters. And when zombies attack villagers they will deal damage to them. VILLAGERS STRIKE BACK!! There are two ways of spawning a Minecraft villager - through natural generation or by curing a zombie villager. Minecraft villagers naturally generate in NPC villages, which can randomly spawn in any of the Minecraft biomes, or in the basement of an igloo. Naturally spawned villagers can have any of the various Minecraft villager jobs.