Commands/trigger

Modifies a scoreboard objective with a "trigger" criterion. Allows non-operator players to modify their own scoreboard objectives under tightly controlled conditions. Often used to let players activate systems controlled by data packs or command blocks.

Syntax

 * Adds  to the current value of.


 * Adds  to the current value of.


 * Sets the value of  to.

Arguments

 * An enabled scoreboard objective with the "trigger" criterion.


 * Specifies the value to be set to or added to the objective.

History
Befehl/trigger 命令/trigger