The Meaning of Life, the Universe, and Everything.
I am creating a Laser tag map with my friends, so I created an armor stand with particles that constantly moves in the direction the player was originally facing. I need the armor stand to disappear after it has gone too far, but I am having trouble.
This is the command I came up with in a repeating and always active command block:
execute as @e[tag=shootLSR] at @s if entity @p[distance=35..] run kill @s
For some reason it dies when it reaches outside 35 blocks of the command block, I tested this on a single-player world and it worked. But now that it's in a multiplayer world it's not working. Any idea why?