0

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!

2
  • 2
    There is no such thing as commands that work in chat but not in command blocks. Make sure that command blocks actually work by testing with something simple like /say test.
    – MrLemon
    Jun 8, 2015 at 9:18
  • Ok, thanks, so how do I actually kill Mooshrooms with a specific name?
    – APthree
    Jun 8, 2015 at 16:16

2 Answers 2

1

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)
0
1

I'm pretty sure that the commands /kill @e[type=(Custom Name Here)] or /kill @e[name=(Custom Name Here)] might work.

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .