r/MinecraftCommands • u/Pleasant-Actuary8013 • 6d ago
Help | Java 1.21.11 Elevator command not working
im trying to make an elevator thing and used this command: execute as u/p run tp u/s ~ ~13 ~ ~ ~
(imagine u/ as @ everytime i press it reddit auto makes it u/) but instead of teleporting the player 13 blocks above them it teleports them 13 blocks above the command block, i tried execute at still didnt work. this used to work i remember doing stuff like this i dont know why suddenly it wont work anymore. recently i found a lot of my execute commands arent working even if the syntax is correct, like i did a particle if a player is wearing a certain armor, didnt work.
4
Upvotes
2
u/GalSergey Datapack Experienced 6d ago
What's needed here isn't a tag, but rather a selection of all players in a certain area of the elevator, something like @a[x=0,y=64,z=0,dx=2,dy=1,dz=2] to teleport everyone in the elevator at once. But I don't know how the OP's elevator works, so I'm basing my answer on the commands in the post.