Setscore

Description

Modifies the scoreboard-objective value of a fake player name. Works like the Modify Score mechanic, but is only capable of performing the set-action.

Attributes

This mechanic inherits every inheritable attribute of the ModifyScore mechanic

  • The action attribute is set at SET and cannot be modified

Examples

This example will set the score of a player named "Bob" for the objective "TestScore", even if that player doesn't exist on the server.
It will create the objective if it does not currently exist.

  Skills:
  - setscore{o=TestScore;e=Bob;v=1} ~onInteract 

Updated Aug 19, 2026