Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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?
/kill @e [type = bat]
Spaces aren't allowed between selectors and their arguments. It'll be killing @e and ignoring everything after the space. Try: