modulo method

Score modulo(
  1. Score score
)

sets this score to the remainder of the division

Implementation

Score modulo(Score score) {
  return addCommandRet(
    Command(
      'scoreboard players operation ${toString()} %= ${toString(entity: score.entity, score: score.score)}',
    ),
  );
}