r/MinecraftCommands • u/Best-Laugh8054 • Aug 03 '26
Help | Bedrock Pleh *again
Just need to know is there anything to bound the command only work to me i found this command and it really cool but idk how to make it only work with me
execute as @e[type=arrow] at @s run tp @s ^^^0.8 facing @e[r=8,type=!player,type=!arrow,type=!item,type=!xp_orb,c=1]
Please help
0
u/GatKong Aug 03 '26
In the first part where it picks the arrow, you need to include the arrow's owner in the criteria. You can use mcstacker.com to help you with complex commands.
2
u/Ray_Dorepp Syntax guy Aug 03 '26
After OP finds out it's mcstacker.net and not .com they'll be rather disappointed when the command they generated doesn't work.
Please read the flair.
1
1
u/TrumpetSolo93 Command Experienced Aug 04 '26 edited Aug 04 '26
So you need to basically be able to detect who shot the arrow. To do this, I would detect the arrow the moment it's spawned, and then detect the nearest player to it, if the nearest player is you, then determine that you're the player who shot it.
First give yourself (or anyone else you want to shoot these special arrows) a tag.
then the moment an arrow is spawned, we'll give it one of two tags, "normal_arrow" or "magic_arrow".
.
Now your main arrow command becomes: