Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-99508

scoreboard operation %= (modulo) not working correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.9.1 Pre-Release 3
    • None
    • Unconfirmed

      When trying to take modulus to a negative number it fails. I've only tested with 4 and -1.

      Steps to reproduce:
      1. Create scoreboard "name"
      2. Add target player "x" with negative score eg. -1 and selector player "y" with a positive score eg. 4
      3. /scoreboard players operation "x" "name" %= "y" "name"

      Result:
      Command succeeds, but x is not changed. In my case where target is -1 and selectors is 4, target should become 3.

            Unassigned Unassigned
            DK_Sprite Silas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: