Minecraft:Commands/trigger
More actions
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Template:Exclusive Template:Infobox command
Changes the executor player's score in a Minecraft:scoreboard objective with a "trigger" criterion, and un-enables 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
1to 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.
- Template:Arg desc
- Specifies the value to be set to or added to the objective.
- Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table
History
Minecraft:de:Befehl/trigger Minecraft:es:Comandos/trigger Minecraft:ja:コマンド/trigger Minecraft:pt:Comandos/trigger Minecraft:ru:Команды консоли/trigger Minecraft:zh:命令/trigger