/trigger

EveryoneJava 26.3

Sets a trigger scoreboard objective (usable without cheats). Its basic form is /trigger <objective>; it has 3 syntax forms and 2 arguments. Permission: Everyone.

Who can use it
Everyone
Syntax forms
3
Arguments
2

/trigger syntax

Game data

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

/trigger arguments
ArgumentExpectsLimits
<objective>Scoreboard objective name—
<value>Whole number—

Other commands

Data: Minecraft Java Edition 26.3 game files. How we source this

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.

Report an Issue

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