Kill command keeps killing me
I'm trying to kill all Iron Golems around me, and I thought "Simple, this command should be enough!"
/kill @e[type=IronGolem,r=100]
Whenever I run that, it just kills myself though. What have I got wrong with the command? Or is it an issue because I'm in 1.7.10 (for mods)?
Best Answer
The version you are using causes this.
The @e target selector was added in 1.8.0, therefore you can't do this in 1.7.10.
You can view the wiki post about version 1.8 here.
I googled a bit in hope to find a mod that allows killing all mobs in a specific type for 1.7.10, but I was unable to find any.
Pictures about "Kill command keeps killing me"



How do you get a command block to stop killing you?
properties should have disabled command blocks, so it cannot run anymore. If not, go into server. properties and turn off command blocks. When you have broken it, close the server with /stop in the console and drag the world back to Minecraft!How much damage does the KILL command do?
The damage dealt by /kill is changed from 1,000 to 3.4\xd71038. Added (player|entity) argument to /kill .How do you stop a repeating command block?
Go into your world settings. Scroll down to the cheats section and you should see "Command Blocks enabled" or something like that. Flick that off and the command block should stop. If you don't want your chat to be spammed like that, type /gamerule commandblockoutput false .How do you kill everything but yourself in Minecraft?
As stated above, you will just need to type /kill @e to kill everything in the game, including yourself. If you want to prevent yourself from killing additional entities make sure to exclude yourself and other entities from the command by typing \u201ctype=! player\u201d after you type @e.Skyrim - Delphine Attacking You Glitch/Bug Fix
More answers regarding kill command keeps killing me
Answer 2
CoFH Core actually does what you want for 1.7.10.
The command is /cofh killall [entity].
Answer 3
/kill @e[type=VillagerGolem] should work.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Vijay Putra, Brett Sayles, Elijah O'Donnell, Brett Sayles
