mojira.dev
MC-116783

@s Command Blocks doesn´t work

I tried to create a command with @s to teleport the player that triggered the redstone signal, but nothing happens! The command block says the "entity @s cannot be found". I triggered the redstone signal with a pressure plate. Even if I put the pressure plate on the command block, the same error message occurs. It´s unimportant how I trigger the command block (Buttons, Lever, Pressure Plates), it never works!

Comments 3

You need to use /execute in order to use @s in a command block, as /execute changes the sender, and a command block sendsr isn't allowed with @s.

Using a redstone signal to trigger a command block does NOT set you as sender.

Can anyone please remove this article? Thank you

Tickets will not be removed.

Max Mustermann

(Unassigned)

Unconfirmed

Minecraft 17w17b

Retrieved