subtract method

Score subtract([
  1. int val = 1
])

subtracts a value from the score

Implementation

Score subtract([int val = 1]) {
  return addCommandRet(
    Command(
      'scoreboard players remove ${toString()} $val',
    ),
  );
}