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
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
How would I go about making that into a command?
And also, the command block is triggered whenever the player shoots a target.
oh, thats slightly more complicated then...
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
Im not sure if you can get the shooter of an arrow with a command. You can do it with plugins tho..
Any plugins for 1.19.2 forge?
ok
is it possible with the vanilla game>?
A few links about arrows and owners:
https://old.reddit.com/r/MinecraftCommands/comments/j7st31/arrow_owner/
https://old.reddit.com/r/MinecraftCommands/comments/hmj99t/owner_nbt_on_arrows/
https://old.reddit.com/r/MinecraftCommands/comments/kmk8gw/detecting_who_shot_an_arrow/
They all say one thing in common: projectiles have an
Owner
NBT tag. And this specific post seems to have a method: https://old.reddit.com/r/MinecraftCommands/comments/r0h6s8/detect_for_arrows_shot_by_a_certain_player/hlvrg25/reddit
r/MinecraftCommands - Comment by u/Thinentertainment74 on βDetect f...
2 votes and 4 comments so far on Reddit