Teleporting yourself (@s) with a command block. Any help?

Hi all! I am looking to teleport the player with a command block. I tried "/tp @s x y z" but appearently that doesn't work, since "@s" refers to the command block. And with how I have things set up, "@a" and "@p" won't really work. Is there a way I can do this? Either normally or with 1.19.2 Forge mods/data packs? Any help is appreciated! πŸ˜„
7 Replies
MrMcyeet
MrMcyeetβ€’2y ago
your best bet is probably just @p tbh itll do the person closest to the commandblock which, in most situations, will be the person clicking the button or just make a command that does what youre trying to do
CherryChip
CherryChipOPβ€’2y ago
How would I go about making that into a command? And also, the command block is triggered whenever the player shoots a target.
MrMcyeet
MrMcyeetβ€’2y ago
oh, thats slightly more complicated then...
CherryChip
CherryChipOPβ€’2y ago
The location I want the player to teleport to is a fixed location: the spawn location for the abandonded city in my server. Teleporting the player to a location whenever a target is shot. The location being my server's abandonded city section. shoot the target, then get tped Yes
itaquito
itaquitoβ€’2y ago
Im not sure if you can get the shooter of an arrow with a command. You can do it with plugins tho..
CherryChip
CherryChipOPβ€’2y ago
Any plugins for 1.19.2 forge? ok is it possible with the vanilla game>?

Did you find this page helpful?