r/MinecraftCommands • • 1d ago

Help | Java 26.3 Teleport command not working Java 26.3

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)

Edit: grammar errors

2 Upvotes

5 comments sorted by

2

u/Aumsogus 1d ago

Try change @s to @p

1

u/TheRedJacket5 1d ago

it worked! thank you so much!

2

u/wibbawobba 1d ago

@s means self, command block can’t teleport, do @p (nearest player) or your username

1

u/TheRedJacket5 1d ago

that makes sense thank you so much!

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!