I want to make a command block to make sure that anything that spawns in a village, dies, except players and villagers. Please help me.


Since 1.13 you can use multiple of the same argument in one selector:

/kill @e[type=!player,type=!villager]

Not the answer you're looking for? Browse other questions tagged or ask your own question.