1
[FIXED] Kill Items, but not armorstands!
How can I kill all items and mobs accept armorstands? I already have players excluded.
/kill @e[type=!Player] <--- That is running on a clock, but if I add a comma and then !armor_stand it won't do it, invalid sector.
If I add another cmd block to exclude armorstands, it kills players and overrides the player exclusion!
/kill @e[type=!Player] <--- That is running on a clock, but if I add a comma and then !armor_stand it won't do it, invalid sector.
If I add another cmd block to exclude armorstands, it kills players and overrides the player exclusion!
Create an account or sign in to comment.
4
2
Try adding a score to players and armor stands, then kill every entity without that score:
Example:
Type: /scoreboard objectives add Player dummy
then place a repeating command block with: /scoreboard players add @e Player 0
then place a chain command block with: /scoreboard players add @a Player 1
then place a chain command block with: /scoreboard players add @e[type=Armor_stand] Player 1
then place a chain command block with: /kill @e[score_Player=0]
all of them on always active, and the oder doesnt really matter, besides that the kill command should be last.
Example:
Type: /scoreboard objectives add Player dummy
then place a repeating command block with: /scoreboard players add @e Player 0
then place a chain command block with: /scoreboard players add @a Player 1
then place a chain command block with: /scoreboard players add @e[type=Armor_stand] Player 1
then place a chain command block with: /kill @e[score_Player=0]
all of them on always active, and the oder doesnt really matter, besides that the kill command should be last.
1
Worked! Thank you very much, this was simple and easy to understand! :)
1
:D np
2
Btw i do reccomend placing command blocks that give the score to stuff like paintings, minecarts, boats, item_frames and leash_knots. This is not neccesary, but otherwise you cant use any of those items