Can scoreboard triggers be disabled?
You can't directly disable scoreboard triggers, but you can instead trick Minecraft into thinking that the player used /trigger
, using /execute
.
execute as @p trigger myObjective add 0
This command will disable the trigger of the nearest player. Because the /trigger
is being executed by the nearest player, this makes Minecraft think that they use their trigger.