0

I want user to run some command when clicking a sign. The current usual solution is using scoreboard trigger and detect players with a given score, which is nothing wrong if the sign is easily reachable and there's no necessity to bypass it; However the assumption may not always hold true, and players may trigger the command via chat instead of sign.

How can I make players have to use the sign to run the command?

3
  • 1
    Umm... Thanks for this info, I guess. But what's your question? Jun 7, 2018 at 17:57
  • 3
    @Fabian They want to know how to make a command run when a player clicks on a sign, without players being able to cheat it with /trigger in chat.
    – SirBenet
    Jun 7, 2018 at 18:58
  • It's totally fine if scoreboard is used, I just want user have to click the sign, not directly use command
    – l4m2
    Jun 7, 2018 at 23:54

2 Answers 2

1

Unlike in books and tellraw, clickevents on signs can run op commands even if the player clicking the sign normally can't.

The sign clickevent can therefore run your commands directly (e.g: with a /function), or scoreboard players set a dummy score that is tested elsewhere.

0

You can use that :

Sign Generator

It's on minecraft.tools, you can write text of sign and enter command that run when the Minecraft user will click on. Generate the command and give you the sign on your Minecraft.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .