Vanilla Minecraft - Detect various /trigger outputs

Vanilla Minecraft - Detect various /trigger outputs - Bright colorful decorations in travel theme with cake and various sweets against map

On multiplayer in Minecraft, I am trying to detect when a player changes their score using /trigger. Here's an example scenario:

I create a new objective called "test." Then, I use /scoreboard players enable @a test, which lets everyone modify the objective. After which, I have a /tellraw command used on all players giving them four options to click. Each option corresponds to a different score the player gives themselves. For example, clicking on "test one" would make the player run /trigger test set 1, clicking on "test two" would make them run /trigger test set 2, and so on.

How would I be able to detect when a player set their objective to a specific number score, such as 3?






Pictures about "Vanilla Minecraft - Detect various /trigger outputs"

Vanilla Minecraft - Detect various /trigger outputs - Festive cake and desserts against colorful decorations
Vanilla Minecraft - Detect various /trigger outputs - Free stock photo of appetizer, bread, breakfast
Vanilla Minecraft - Detect various /trigger outputs - Free stock photo of appetizer, bread, chicken



How do you detect what a player is looking at in Minecraft?

You can use the /trigger command to create a trigger that sets or adds values to scoreboard objectives that trigger enabled in Minecraft....Definitions
  • objective is the name of the objective that will be set or add a value to.
  • setValue is the value to set the objective to.
  • addValue is the amount added to the objective.


  • How do you enable triggers in Minecraft?

    You can't directly disable scoreboard triggers, but you can instead trick Minecraft into thinking that the player used /trigger , using /execute . This command will disable the trigger of the nearest player.

    How do you disable triggers in Minecraft?

    What do you mean by trigger spawn? /trigger is a command non-OP players can use (often with click-action bits of text) that increase their score. Illustration: /trigger <score> will increase the score <score> of the entity executing the command by one.



    Creative Flight and Teleportation Pads in Vanilla Survival! | Origin Realms Guide




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Jonathan Borba, Jonathan Borba, Polina Tankilevitch, Polina Tankilevitch