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

>, <, and >< outputs Successful when no operation occurs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w26c, Minecraft 14w27b
    • None
    • Unconfirmed

      When using the operation command, if you use the operation >, <, or ><. Even though the execute will only execute if the operation is successful, the SuccessCount is always true if the operation was successful. By doing this, there is still no easy way to detect if a value is less than a value. CommandStats also outputs a value of 1

      How to reproduce:
      /scoreboard objectives add Test dummy
      /scoreboard players set LessScore Test 1
      /scoreboard players set MoreScore Test 10
      /scoreboard players operation MoreScore Test > LessScore Test

      Output: Operation applied successfully, but the amount of one has not been added to LessScore. Ensure a comparator is attached to see that no matter what happens, a redstone signal is outputed.

      If this was intended, think about making it a feature. You would be able to easily test of a score is less than or equal to another score and then if it is, run other commands. The only way to do this currently is to actually use the comparator for its original use by putting one input on one side, and the other on the other side.

            searge [Mojang] Searge (Michael Stoyke)
            djimusic Dakotah Intriglia
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: