How do I use /kill to kill Mooshrooms with a specific name and within a certain radius?
I've been working on a machine and require the command to kill all Mooshrooms with a certain name and in a specific radius. I have tried:
/kill @e[type=Mooshroom,r=(radius),name=(name)]
/kill @e[type=Mushroom_Cow,r=(radius),name=(name)]
/kill @e[type=Mushroom_cow,r=(radius),name=(name)]
/kill @e[type=MushroomCow,r=(radius),name=(name)]
And none work. The command /kill @e[type=MushroomCow] seems to work in chat, but not in command blocks.
Now, I don't actually mind about the name too much, so if anyone could tell me the command to just kill Mooshrooms within a certain radius, that would be great thanks!
Best Answer
The following command, which you have given in your question, should work:
/kill @e[type=MushroomCow,r=(radius),name=(name)]
If it does not, then it is not the command itself causing the problem. Make sure that:
- You are correctly typing/copying the command
- You are replacing
(radius)and(name)with an integer number and string without spaces respectively, e.g:/kill @e[type=MushroomCow,r=10,name=Dave] - The entities you are trying to target are within 10 blocks of the command block, have the name you are entering, and are MushroomCows.
- The MushroomCows have proper UUIDs (should only be a problem if they're summoned in and you've messed with it)
Pictures about "How do I use /kill to kill Mooshrooms with a specific name and within a certain radius?"



How do you kill entities in a certain area in Minecraft?
If you want to kill a specific type of mob, use the parameter \u201c @e[type=<mob_type> \u201d. For example, \u201c /kill @e[type=skeleton] \u201d kills all skeletons.How do you kill certain mobs in a certain area?
Kill a Type of Mob You can also use the /kill command to kill a particular type of mob. For example, if you are creating an adventure map in a superflat world, you might not want all of the slimes everywhere. Type the command in the chat window and press the Enter key to run the command.How do you kill a specific item in Minecraft with commands?
In the most recent update of Minecraft, it's as simple as this command: /kill @e[type=item,name="gold ingot"] .What is the command to kill a specific mobs?
Minecraft kill command And to kill a certain type of mob, \u201c/kill @e[type=mobType]\u201d.How To Kill Certain Entities In Minecraft
More answers regarding how do I use /kill to kill Mooshrooms with a specific name and within a certain radius?
Answer 2
I'm pretty sure that the commands /kill @e[type=(Custom Name Here)] or /kill @e[name=(Custom Name Here)] might work.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Brett Sayles, Elijah O'Donnell, Brett Sayles, Antony Trivet
