1

[FIXED] Kill Items, but not armorstands!

34486SCI 3/4/18 1:25 pm
380
3/4/2018 3:14 pm
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!
Posted by
34486SCI
Level 3 : Apprentice Farmer
1

  Have something to say?

JoinSign in

4

BartTheBart
03/04/2018 2:14 pm
Level 9 : Apprentice System
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.
2
34486SCI
03/04/2018 3:11 pm
Level 3 : Apprentice Farmer
Worked! Thank you very much, this was simple and easy to understand! :)
1
BartTheBart
03/04/2018 3:14 pm
Level 9 : Apprentice System
:D np
1
BartTheBart
03/04/2018 2:17 pm
Level 9 : Apprentice System
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
2

Welcome