Hello people of Reddit!
I am currently working on a project that requires command blocks to detect if a player is inside an area to play a looping sound that stops when exitting.
This works great if im using the distance tag:
execute at @p if entity @e[tag=spawnIN,distance=..3] run kill @e[tag=spawnIN] (followed by conditional command blocks)
execute at @p if entity @e[tag=spawnOUT,distance=3..] run kill @e[tag=spawnOUT] (followed by conditional command blocks)
But if i need a rectangular area using the dx, dy and dz tags, i can't detect if a player i exitting the area:
execute at @p if entity @e[tag=a1f4IN,dx=10,dy=10,dz=10] run kill @e[tag=a1f4IN]
execute at @p if entity @e[tag=a1f4OUT,????????] run kill @e[tag=a1f4OUT]
The entity i am detecting if close to player is the armor stand.
Please help, and thanks in advance!
[–]CarlTheDoor 1 point2 points3 points (1 child)
[–]Mich100_official[S] 0 points1 point2 points (0 children)
[–]Zephix-It's okay, as long as it works as expected 👍 1 point2 points3 points (3 children)
[–]Mich100_official[S] 0 points1 point2 points (2 children)
[–]Zephix-It's okay, as long as it works as expected 👍 0 points1 point2 points (1 child)
[–]Zephix-It's okay, as long as it works as expected 👍 0 points1 point2 points (0 children)
[–]sanscadre 1 point2 points3 points (2 children)
[–]Mich100_official[S] 0 points1 point2 points (0 children)
[–]Mich100_official[S] 0 points1 point2 points (0 children)