I'm cloning blocks in the x direction -1 at a time. I want to keep all players on these blocks with them so I teleport the player -1 relative to their current Pos[0]
or X.
This works for me when the function is run from a repeating command block calling a datapack function as follows.
clone ~-9 ~-1 ~-2 ~63 ~5 ~2 ~-10 ~-1 ~-2 replace force
execute at @p run tp @p ~-1 ~ ~
As I'm executing the command @p
However this will not work for others. I do have a scoreboard to tell if a player is on the blocks so I can execute another function based on that scoreboard from this function. However I have tried multiple combos to get the other players in multiplayer mode to move -1 block in the x direction to no avail but I do move.
at @p
→as @a at @s