
/trigger
Sets a trigger scoreboard objective (usable without cheats). Its basic form is /trigger <objective>; it has 3 syntax forms and 2 arguments. Permission: Everyone.
/trigger syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/trigger <objective>/trigger <objective> add <value>/trigger <objective> set <value>/trigger examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/trigger menu set 1- Sets your "menu" score to 1. Players without cheats can run it once a map maker enables the trigger objective for them.
/trigger arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<objective> | Scoreboard objective name | — |
<value> | Whole number | — |
Sets a trigger scoreboard objective (usable without cheats). It has 3 syntax forms and can be run by: Everyone.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/trigger FAQ (Java 26.3)
What does /trigger do in Minecraft?
Sets a trigger scoreboard objective (usable without cheats).
What is the syntax of /trigger?
The basic form is /trigger <objective>. All forms are listed above.
What is an example of /trigger?
/trigger menu set 1 — Sets your "menu" score to 1. Players without cheats can run it once a map maker enables the trigger objective for them.
Do you need cheats for /trigger?
No, every player can use it.