* Upvote this comment if this is a good quality post that fits the purpose of r/Minecraft
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
MinecraftPlayer7992026-01-03 02:14
You can’t use "@s" in a command block, since it targets yourself. That works in chat, but not in a command block. For a command block, assuming you want it to target the closest player, you have to use "@p" instead of "@s".
Shack6912026-01-03 02:33
You are telling the command block to run a command on itself, which it can’t do since it doesn’t have a self. @s only works if a player is executing it either via the execute command or via chat.
What you’re looking for is @p which is the nearest player to the execution location.
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)
What you’re looking for is @p which is the nearest player to the execution location.