This question already has an answer here:
- How Can I Butcher Animals en Masse? 8 answers
I like to play Minecraft and the bats are annoying and tried doing
/kill @e [type = bat] then I pressed enter and all entities were killed. It ruined my world! How do I target the all of bats and ONLY the bats without killing anything else?