I basically want to make me and my friend constantly get pulled to eachother (like magnets) so the way i see i could do it is by checking for a players position and then moving them towards the cords of the other player, if there's any other solution to this please let me know!
I basically want to make me and my friend constantly get pulled to eachother (like magnets) so the way i see i could do it is by checking for a players position and then moving them towards the cords of the other player, if there's any other solution to this please let me know!
/execute as @e[tag=player1] facing entity @e[name=player2] eyes run tp @s ^ ^ ^2
/execute as @e[tag=player2] facing entity @e[name=player1] eyes run tp @s ^ ^ ^2
You can use the name of the players, or tag them. This gets funky when you're too close to eachother! (~2x the distance)
To edit the distance, change the last number above.
You can put these commands on a clock.
~Blue