I want to identify where the player is looking so that whenever I summon particles they are in front of the player
here I had a good result, but without the subtraction in the x coordinate the particles are on top of the player and I want them to be at a certain distance from the player, but always in front, with the subtraction of the x coordinate the particles are behind the player when I move my head to the east
Code:
command /energyball:
trigger:
set {_location} to the head location of player
set {_x} to x-coordinate of {_location}
set {_y} to y-coordinate of {_location}
set {_z} to z-coordinate of {_location}
loop 100 times:
execute console command "/particle dragonbreath %{_x} - 2% %{_y}% %{_z}% 0.5 0.5 0.5 0 100 force"
wait 2 tick
here I had a good result, but without the subtraction in the x coordinate the particles are on top of the player and I want them to be at a certain distance from the player, but always in front, with the subtraction of the x coordinate the particles are behind the player when I move my head to the east