Commands/trigger

Changes the executor player's score in a scoreboard objective with a "trigger" criterion, and un-enabled the objective for this player. 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==
trigger <objective>
: Adds 1 to the current value of <objective>.
trigger <objective> add <value>
: Adds <value> to the current value of <objective>.
trigger <objective> set <value>
: Sets the value of <objective> to <value>.
==Arguments==
: An enabled scoreboard objective with the "trigger" criterion.
: 
: Specifies the value to be set to or added to the objective.
: 
==Result==
== Output ==
== History ==
de:Befehl/trigger
es:Comandos/trigger
ja:コマンド/trigger
zh:命令/trigger