Minecraft:Commands/trigger: Difference between revisions
More actions
→History: typo |
Remove broken links to missing pages |
||
| Line 6: | Line 6: | ||
}} | }} | ||
Changes the executor player's score in a | 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}} | ||
de:Befehl/trigger | |||
es:Comandos/trigger | |||
ja:コマンド/trigger | |||
pt:Comandos/trigger | |||
ru:Команды консоли/trigger | |||
zh:命令/trigger | |||
Revision as of 15:45, 9 April 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
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
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
de:Befehl/trigger es:Comandos/trigger ja:コマンド/trigger pt:Comandos/trigger ru:Команды консоли/trigger zh:命令/trigger