set method

Score set(
  1. int val
)

sets the score to a given value of int

Implementation

Score set(int val) {
  return addCommandRet(
    Command(
      'scoreboard players set ${toString()} $val',
    ),
  );
}