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

Loss of precision in value_check condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21
    • None
    • Confirmed
    • Commands, Data Packs
    • Low
    • Platform

      How to Reproduce

      Run the following commands:

      /execute if predicate {condition:value_check,value:16777216,range:16777216}

      -> Test passed

      /execute if predicate {condition:value_check,value:16777217,range:16777216}

      -> Test passed

      /execute if predicate {condition:value_check,value:16777218,range:16777216}

      -> Test failed

      Expected Behaviour

      The second output should be "Test failed".

      Observed Behaviour

      The second output is "Test passed".

            Unassigned Unassigned
            ccJerrycc ccJerrycc
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: