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: Difference between revisions

From SAS Gaming Wiki
History: typo
 
SyncBot (talk | contribs)
Remove broken links to missing pages
Line 6: Line 6:
}}
}}


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 [[Minecraft:Data pack|data packs]] or [[Minecraft:Command Block|command blocks]].
Changes the executor player's score in a 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 [[Minecraft:Command Block|command blocks]].


==Syntax==
==Syntax==
Line 57: Line 57:
{{Navbox commands}}
{{Navbox commands}}


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

Revision as of 15:45, 9 April 2026

Template:Exclusive Template:Infobox command

Changes the executor player's score in a 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

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