setToSmallest method

Score setToSmallest(
  1. Score score
)

compares two scores and sets the smallest to this one

Implementation

Score setToSmallest(Score score) {
  return addCommandRet(
    Command(
      'scoreboard players operation ${isSmaller(score).getString()}',
    ),
  );
}