-4

This question already has an answer here:

I was trying to make a world where arrows, if shot at a player, will destroy items, but keep the player alive.

However when I use the command /kill @e[type=!Player], the arrows will be destroyed.

marked as duplicate by Ivo Coumans, Wondercricket, Virusbomb, Malco, arghtype Apr 15 at 17:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    What game are you talking about? You should add more information to your question, otherwise no one will be able to answer it. – Adeese May 23 '15 at 12:38
0

Run this command first:

/scoreboard objectives add noKill dummy

Run these on a clock:

/scoreboard players set @e noKill 1
/scoreboard players set @e[type=Player] noKill 0
/scoreboard players set @e[type=Arrow] noKill 0

Now kill all entities with a noKill score that is not 0:

/kill @e[score_noKill_min = 1]

Comment if this doesn't work, but it works for me.

  • really thx,it works :) – jeffrey1607 May 24 '15 at 14:25
  • wait it did work but now not anymore hmmm :/ – jeffrey1607 May 24 '15 at 14:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.