-1

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.

2

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

/kill @e[type=!player,type=!villager]
| improve this answer | |

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