Skip to main content

/trigger

Modifies a scoreboard objective of type 'trigger'. This command can be used by non-operator players, making it useful for custom maps and voting systems.

Category
Player
Permission Level
All Players
Version Added
1.8

Syntax

/trigger <objective> [add|set <value>]

Parameters

NameTypeRequiredDescription
objectiveobjectiveRequiredThe scoreboard objective to modify. Must be of the 'trigger' criteria type.
actionliteralOptionalEither 'add' or 'set'. Defaults to add 1 if omitted.
valueintegerOptionalThe value to add or set.

Examples

/trigger vote

Increments the 'vote' trigger objective by 1 for the executing player.

/trigger shop set 3

Sets the 'shop' trigger objective to 3 for the executing player.

/trigger warp add 5

Adds 5 to the 'warp' trigger objective.

Common Mistakes

Notes

Permission level 0 means all players can use this command. The trigger must be enabled for each player using /scoreboard players enable. After triggering, it is automatically disabled until re-enabled.

Related Commands

Need a Minecraft server?

Try these commands on Astroworld or host your own server.

Try Astroworld Hosting