> For the complete documentation index, see [llms.txt](https://thepython10110.gitbook.io/better-commands/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thepython10110.gitbook.io/better-commands/commands/trigger.md).

# /trigger

Changes the executor player's score in a scoreboard objective with a "trigger" criterion

Changes the executor player's score in a scoreboard objective with a "trigger" criterion, and un-`enable`s 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 `1` to the current value of `<objective>`. If the executor has no score in that objective, sets it to 0 instead.

`trigger <objective> add <value>`

Adds `<value>` to the current value of `<objective>`.

`trigger <objective> set <value>`

Sets the value of `<objective>` to `<value>`.

## Arguments

`<objective>`: String

An enabled scoreboard objective with the "trigger" criterion.

It must be a single word containing only alphanumeric characters and underscores.

`<value>` [Number](/better-commands/data-types.md#number)

Specifies the value to be set to or added to the objective.

Must be a 32-bit integer number (from -99,999,999,999,999 to 100,000,000,000,000).

## History

| Version | Action           |
| ------- | ---------------- |
| v1.0    | Added `/trigger` |
