Sorry if this isn't the right place to post this, but I'm attempting to set a command where if a certain player steps on certain coordinates, it teleports them to a certain spot. I cannot for the life of me figure it out. Here's what I have:
execute if entity (playername) positioned -956 65 -179 run tp (playername) 500 500 500
I think it would be better to tell you what your command is before give you the solution.
Run tp (playername) 500 500 500 if there is a entity (playername), and this command is execute in the coordinate -956 65 -179.
If the command is execute as @p positioned 0 0 0 run summon armor_stand ~ ~ ~,
This means let the nearest player as the executor, using 0 0 0 instead of whatever this player's position is, then summon an armor_stand. The armor stand will be summon at 0 0 0, not player's position.
"positioned" is one of the execute's sub command, not part of the "if" sub command.
Now you see what it does, moving on.
I'm not quite familiar with xyz argument, but this should be what you are looking for.
execute as @a[x=-956,y=65,z=-179] run teleport @s 500 500 500