Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/trigger

From SAS Gaming Wiki

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 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

Template:Argument

An enabled scoreboard objective with the "trigger" criterion.
Template:Arg desc

Template:Argument

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

Template:HistoryTable

Navigation

Template:Navbox commands

Minecraft:de:Befehl/trigger Minecraft:es:Comandos/trigger Minecraft:ja:コマンド/trigger Minecraft:pt:Comandos/trigger Minecraft:ru:Команды консоли/trigger Minecraft:zh:命令/trigger