1

[FIXED] Kill Items, but not armorstands!

34486SCI's Avatar 34486SCI3/4/18 1:25 pm
1 emeralds 245 4
3/4/2018 3:14 pm
BartTheBart's Avatar BartTheBart
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's Avatar
34486SCI
Level 2 : Apprentice Farmer
1

Create an account or sign in to comment.

4

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome