Run these from an operator’s chat, a command block, or a function file. Stopwatch and Fetchprofile are newer commands — check availability on your Minecraft version.

How to Use the Trigger Command Generator

  1. Type the objective name you set up as a trigger-type scoreboard objective, e.g. my_trigger.
  2. Choose a mode: plain Trigger just increments the value by 1, Add adds a chosen amount, or Set assigns an exact value.
  3. For Add or Set, type the number to add or assign.
  4. Copy the generated /trigger command into a sign, a button’s command output, or give it directly to players – unlike most commands, /trigger is allowed for non-operator players by default.

Command Syntax Reference

/trigger <objective>
/trigger <objective> add <value>
/trigger <objective> set <value>

/trigger is the one command ordinary players (not just operators) are allowed to run against their own score, and only against objectives whose criterion is specifically set to trigger via /scoreboard objectives add my_trigger trigger. Plain /trigger my_trigger increments the caller’s own score on that objective by 1. /trigger my_trigger add 5 adds 5 instead, and /trigger my_trigger set 10 overwrites it to exactly 10. A data pack function usually watches for the objective changing (or checks it each tick) and reacts – resetting the value back to 0 afterward so the player can trigger it again.

Frequently Asked Questions

Why does /trigger need a special “trigger” criterion instead of any objective?

It’s a deliberate permission boundary: Minecraft only lets non-operator players modify their own score on objectives explicitly created with the trigger criterion. This lets map makers safely expose a specific, limited action (like “press this button”) to players without opening up broader scoreboard or command access.

Can a player use /trigger on someone else’s score?

No – /trigger only ever affects the executing player’s own score on that objective. There’s no target selector argument; it’s inherently self-scoped.

Do I need to reset the trigger value myself?

Yes. /trigger just changes the number – nothing resets it automatically. A typical setup uses a repeating command block or function that checks the objective, runs a reaction when it’s non-zero, and then runs /scoreboard players set @a my_trigger 0 so the same player can trigger it again later.

Is /trigger the standard way to make player-activated buttons and levers in adventure maps?

Yes – because it’s one of the only commands enabled for non-operators by default, it’s the conventional building block for command-block-driven interactions like dialogue choices, puzzle buttons, and shop menus in custom maps.

Related Tools