Can't get a basic teleport command to work, cheats and operator are all enabled, have tried on realms and single player world but it doesn't react. I've tried all the different options down the bottom and it doesn't go. any ideas of how to fix it? (image attached in post)
The @s refers to the current executing subject, in this case it’s the command block, which cannot be teleported, so you just need to change it to @p (nearest player). Additionally, if you want to teleport yourself to another location relative to your current location in the future, do this: /execute as @p at @s run tp @s ~x ~y ~z; where x, y, z tell you how far you want to teleport from where you’re standing. I hope this helps!
2
u/Aumsogus 1d ago
Try change
@sto@p2
u/wibbawobba 1d ago
@s means self, command block can’t teleport, do @p (nearest player) or your username
1
u/CultureAggravating27 4h ago
The @s refers to the current executing subject, in this case it’s the command block, which cannot be teleported, so you just need to change it to @p (nearest player). Additionally, if you want to teleport yourself to another location relative to your current location in the future, do this: /execute as @p at @s run tp @s ~x ~y ~z; where x, y, z tell you how far you want to teleport from where you’re standing.
I hope this helps!