Teleport a player to his actual location in a function
I would to teleport a player to his actual location but if the command was executed the player was tp to an other location. See my command :
teleport @s ~ ~ ~ facing entity @e[type=item,nbt={Item:{tag:{Tags:["dice"]}}}, limit=1]