-5

is there a command that kills all horses and nothing else

marked as duplicate by Frank, MBraedley, senpai, Studoku, Gigazelle Feb 21 '15 at 23:00

This question was marked as an exact duplicate of an existing question.

  • Please don't post the same question multiple times. They'll just end up getting closed. – MBraedley Feb 21 '15 at 17:43
  • sorry its just no one did a good answer – alixey999 Feb 21 '15 at 17:44
  • 4
    then, @alixey999, that means one of three things. Either your question is not of a good enough quality, it has a duplicate with a working answer somewhere else, or you have not waited long enough. – Shadow Z. Feb 21 '15 at 18:40
  • 2
    Please stop changing you question completely please, it'll just confuse people. – Arperum Feb 22 '15 at 13:53
  • 1
    Once you've gotten answers to your question, it's extremely rude to change it to something else. I have rolled it back so that you don't invalidate your answers. – Frank Feb 22 '15 at 14:29
4

To kill all horses and nothing else, as your question currently asks, use this command:

/kill @e[type=EntityHorse]
0

In 1.8, @e was added. @p targets the closest player, @a targets all players, @r targets a random player, and @e targets all entities. Entities in Minecraft include things like all mobs, primed TNT, XP Orbs, falling sand, items on the ground, etc. If you want to kill all entities, us /kill @e However, @e does take arguments to specify what you want to kill. You do this with a [type=] argument. If you want to kill every zombie in the world, use /kill @e[type=Zombie] In your case, you want to kill all horses, so you'd use the command /kill @e[type=EntityHorse]. This can be applied to any entity in a world that you want to kill.

Not the answer you're looking for? Browse other questions tagged or ask your own question.