/trigger Command in Minecraft Java Edition

Trigger Scoreboard Objectives with the Trigger Command

Java EditionLogic & Scoreboard

The /trigger command lets you change the value of a scoreboard objective in Minecraft Java Edition. You can run the command with just the objective name, add a number to it, or set it to a specific whole number.

Players and map makers often use this command to interact with custom map features, menus, and scoreboard systems through simple chat commands.

Syntax (Java 26.3, 3 forms)

  1. /trigger <objective>
  2. /trigger <objective> add <value>
  3. /trigger <objective> set <value>

The forms you will use most

/trigger <objective>
Activates the chosen scoreboard objective without specifying an extra number.
/trigger <objective> add <value>
Adds a positive or negative whole number to the specified scoreboard objective.
/trigger <objective> set <value>
Changes the score of the specified objective to an exact whole number.

Arguments

ArgumentTypeWhat it means
<objective>objectiveThe exact name of the scoreboard objective you want to modify.
<value>whole numberA whole number, such as 5 or -3, that is added to or set for the objective.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition does not have a command named /trigger, as this feature is only available in Java Edition.

FAQ

Is the /trigger command available in Minecraft Bedrock Edition?

No, Bedrock Edition does not have a command with the name /trigger.

Can I use negative numbers with the /trigger command?

Yes, the <value> argument accepts any whole number, including negative numbers like -3.

Which versions of Minecraft Java Edition have the /trigger command?

The /trigger command has been available in every Java Edition release from 1.13 up to version 26.3.

Related commands

/bossbar/data/execute/function/random/return/schedule/scoreboard/tag/team