So im trying to make my own version of murder run and I figured out how to give thrown items abilities and how to kill them after. The only trap I have so far is a blindness trap but I discovered that if I have 5 on one map and go near one it kills all the traps. I tried changing @e to @s but it didn't kill any of the traps. I also tried adding a radius but again, it killed no traps. How can I change the command or add new ones that will only kill the entity I go near?
Commands in order:
/scoreboard players tag @e[type=Item] add BlindTrap {item:{id:"minecraft:Bedrock"},OnGround:1b}
So im trying to make my own version of murder run and I figured out how to give thrown items abilities and how to kill them after. The only trap I have so far is a blindness trap but I discovered that if I have 5 on one map and go near one it kills all the traps. I tried changing @e to @s but it didn't kill any of the traps. I also tried adding a radius but again, it killed no traps. How can I change the command or add new ones that will only kill the entity I go near?
Commands in order:
/scoreboard players tag @e[type=Item] add BlindTrap {item:{id:"minecraft:Bedrock"},OnGround:1b}
/execute @e[tag=BlindTrap] ~ ~ ~ effect @a[r=2] Blindness 5
/kill @e[tag=BlindTrap]
Nevermind, I found the solution. I had to change /kill to
/execute @p ~ ~ ~ kill @e[tag=BlindTrap,r=2]