execute @p ^^^10 kill @p
When I type the command "@p" in the command block, I get "Syntax error: "@p": at "execute >>@p<< ^^^10 kill" is invalid" in the execution result. I don't think there is any syntax error, but is this a bug?
This sentence is translated using a translation site, so I apologize if it sounds funny!
Comments 4
I was trying to create a command to kill the nearest player from 10 blocks away.
My apologies for the lack of explanation.
You probably need to use at and as with /execute to get the desired result. For example:/execute *as* @p *at* @s ^ ^ ^ 10 kill @p
Also, please do not mark reports as Private unless they contain an exploit. Never share personal information on this bug tracker.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please explain what you are attempting to do with the command?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki