The Meaning of Life, the Universe, and Everything.
Join Date:
8/23/2019
Posts:
70
Location:
Wukanda
Minecraft:
NateVA
Member Details
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?
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:
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?
Entity context is properly set to the armorstand, and as the armorstand, detecting if there is a player nearby.
This command should work. Is the command the exact same in multiplayer?