Player facing
Hi,
I'm creating a datapack that allows me to shoot guns in the direction the player is facing. This worked perfectly when in a command block, although, I've opted to move it to a datapack which has stopped commands from working as they should.
The command that ran in the command block was:
execute as @e[nbt={Tags:["pistolBullet"]}] at @s run tp @s ~ ~ ~ facing entity @pWhen moving to a datapack, it can't seem to get the player facing direction and just fires in one direction. I should also mention, this has to work on multiplayer with multiple players. Any help is greatly appreciated. Thanks!