-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]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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