/trigger
no op neededPlayers/trigger is the one way a non-operator can change a score. Pair it with a clickable /tellraw message and you have a menu that ordinary players can drive, with a repeating command block reacting to the value.
Command1 to fix
8
- Objective is required.
Press C to copy
Objective is required.
optional
Examples
- Player picks option 2
/trigger menu_choice set 2
Common questions about /trigger
›How do I set a trigger up?
Create an objective with the trigger criterion, then run /scoreboard players enable @a <objective>. Players can use it once per enable, so re-enable it after each use.
›Why does it say the objective is not enabled?
Triggers are disabled again after each use. Re-run /scoreboard players enable for that player and objective.