Better Commands
Better Commands
  • Home
  • Commands
    • /ability
    • /bc
    • /clear
    • /clearspawnpoint
    • /damage
    • /enchant
    • /execute
    • /forceenchant
    • /gamemode
    • /gamerule
    • /give
    • /kill
    • /me
    • /msg
    • /old
    • /playsound
    • /remove
    • /say
    • /scoreboard
    • /setblock
    • /spawnpoint
    • /summon
    • /team
    • /teammsg
    • /teleport
    • /time
    • /trigger
  • Target Selectors
  • Data types
  • Entity Aliases
  • Scoreboard
Powered by GitBook
On this page
  • Syntax
  • Arguments
  • History
Edit on GitHub
  1. Commands

/trigger

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

Previous/timeNextTarget Selectors

Last updated 1 year ago

Changes the executor player's score in a scoreboard objective with a "trigger" criterion, and un-enabled 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>.

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>

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

Number