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 made by operators or mapmakers.

Arguments

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


 * – Adds  to the current value of.
 * – Sets the value of  to.
 * If neither of them argument is used, the effect is the same as if  had been entered.

Result
Fails if the arguments are not specified correctly, if  does not have the "trigger" criteria, or if   has not been enabled for the player who executed the command.

On success, the value of  is changed and   is un-enabled for the player that executed the command.

History
Befehl/trigger