is there a command that kills all horses and nothing else? [duplicate]
is there a command that kills all horses and nothing else
Best Answer
To kill all horses and nothing else, as your question currently asks, use this command:
/kill @e[type=EntityHorse]
Pictures about "is there a command that kills all horses and nothing else? [duplicate]"
![is there a command that kills all horses and nothing else? [duplicate] - is there a command that kills all horses and nothing else? [duplicate] -](/assets/images/is_there_a_command_that_kills_all_horses_and_nothing_else_duplicate_1.jpeg)
![is there a command that kills all horses and nothing else? [duplicate] - Pferde auf Weide in spanischer Sonne is there a command that kills all horses and nothing else? [duplicate] - Pferde auf Weide in spanischer Sonne](/assets/images/is_there_a_command_that_kills_all_horses_and_nothing_else_duplicate_2.jpeg)
![is there a command that kills all horses and nothing else? [duplicate] - Man in Black Jacket Carrying Black Backpack Walking on Green Grass Field is there a command that kills all horses and nothing else? [duplicate] - Man in Black Jacket Carrying Black Backpack Walking on Green Grass Field](/assets/images/is_there_a_command_that_kills_all_horses_and_nothing_else_duplicate_3.jpeg)
How do you kill all animals in one command?
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.What command do you use to kill all animals in Minecraft?
Kill Command In all Minecraft editions, the command for killing everything in the world is \u201c /kill <target> \u201d. Typing \u201c /kill \u201d any target in the console will destroy pretty much everything that can be removed, including the player.What does kill @P do?
The commandblocks have to be very close to the kill area. The @a will make sure that all that step on the kill block will die instead of just one if you went with @p. for example if 2 players simultaneously land on the kill block, @p will kill one that is closest while the other will survive.How to get rid of horses in Minecraft?
What you can do is get the mod "Single Player Commands", in this mod, you can use a command called /butcher which you can use to kill mobs within a specified radius. I would say use a small radius and kill the surrounding horses that are further away from the stable. After that you can manually kill the rest.Kill Command Explained
More answers regarding is there a command that kills all horses and nothing else? [duplicate]
Answer 2
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.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: @coldbeer, Dario Fernandez Ruz, Nikita Anders, Yaroslav Shuraev
