I want to kill multiple evil mobs that will ruin my world: zombies, babyzombies, zombievillagers, creepers and zombie pigmen. This is because of the wooden doors.

I had a command: /kill @e[r=100,type=Zombie,type=babyZombie,type=Creeper] but it will only kill the creepers. I put this in a command block with repeat and no redstone needed on.

It didn't work.

How can I get rid of these mobs with command block and NO mods?


First of all, babyZombie is not a valid type. Baby zombies are still just zombies.

But to answer the question, using multiple commands is the most straightforward way. Every target selector needs to match for the entity to be selected (and thus killed) and one entity can't be both a zombie and a creeper. In Java 1.12 you can't even use multiple of the same selector (You can in 1.13 or in Bedrock), but that won't help you here. Just use multiple commands.