Mojira Archive
MC-274462

Loss of precision in value_check condition

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".

Unresolved

ccJerrycc

2024-07-16, 09:01 AM

2024-09-12, 09:59 AM

2

2

Confirmed

Low

Platform

Commands, Data Packs

1.21, 1.21.1

-