I am making a flat adventure/Survival map which is meant to be played for maybe a year or two and is made to make the game harder.
In the map when you spawn you have a big shop which is setted up with custom villagers using a online generator. There are 2 types of villagers one that sells items and one that buys items. Keep in mind the currency is emeralds.
But the problem is that zombie villagers are able to spawn within the world and I have only intended that the only way to achieve emeralds is by trading with the villagers within the shop.
I want some way to make them despawn or teleporting them to the void.
Keep in mind im not able to remove normal zombies due to that an important item within the shop is zombie flesh.