The Meaning of Life, the Universe, and Everything.
Join Date:
1/8/2015
Posts:
54
Location:
Ohio
Minecraft:
AlexanderA72
Xbox:
AlexanderA72
Member Details
In the new 1.8 update, Minecraft now allows you to kill specific entities with /kill @e command. I am aware that I can do /kill @e[type=(entity)] but I want to know how to kill two specific entities. I am also aware that I can kill everything BUT one entity with /kill @e[type=!(entity)] . I've tried a lot of things to kill two specific entities but nothing seems to work :(! I've tried things like /kill @e[type=Player,Arrow] , /kill @e[type=Player&Arrow] , /kill @e[type=Player+Arrow] , etc. but I can't figure it out. Please help me find out how to do this and if there isn't a way, please tell me. Thanks. BTW this is my first forum post, but I have commented on someone else's post once. I made an account just for this question so it would mean a LOT if you guys could help me! I plan to become a frequent forum poster! Anyways, hopefully you guys can help!
I didn't realize it took so long to upload new threads! ! maybe it's just my internet? It says there was an error but still uploaded XD
Just use two separate commands. Currently there is no way to include more than one entity type in a single command, so using 2 separate ones is the easiest solution.
You will have to use two commands, one for each type of entity you wish to kill.
Alternatively, you could assign each type a scoreboard, then kill every entity with that score. Of course, that will use multiple commands as well.
The problem with doing this is that if I use 2 separate commands, then I can't kill everything but 2 entities, which is what I'm trying to do. I wanted to make it so it kills everything but the Player and Arrows, but if I do this with 2 separate commands on a clock, then it would kill the Player in the Arrow command block, and kill the Arrow in the Player command block. The only other way that I know of that I could do this would be if I assigned scoreboard values to entities, which doesn't work on arrows. I have decided to do things to get around having use the /kill command on my server, but thanks for the help everyone!
I didn't realize it took so long to upload new threads!
Minecraft is life
Approved by Shrek: ☑
Alternatively, you could assign each type a scoreboard, then kill every entity with that score. Of course, that will use multiple commands as well.
Putting the CENDENT back in transcendent!
The problem with doing this is that if I use 2 separate commands, then I can't kill everything but 2 entities, which is what I'm trying to do. I wanted to make it so it kills everything but the Player and Arrows, but if I do this with 2 separate commands on a clock, then it would kill the Player in the Arrow command block, and kill the Arrow in the Player command block. The only other way that I know of that I could do this would be if I assigned scoreboard values to entities, which doesn't work on arrows. I have decided to do things to get around having use the /kill command on my server, but thanks for the help everyone!
Minecraft is life
Approved by Shrek: ☑
Oh, I didn't know that! It still doesn't matter because I've already found another way to do what I was trying to do, but thanks for the help anyways!
Minecraft is life
Approved by Shrek: ☑