Mojira Archive
MC-205680

minecraft:location_check predicate floating point imprecision

When using a location_check predicate near the world border, the position granularity is 2 blocks. As an example, I was checking whether the fluid at a position met the tag #minecraft:water. In a 1*1*2 square from -1 2 29999981 to -1 2 29999982, the predicate would behave as if it were checking the block at -1 2 29999982.

For the sake of completeness, I've attached the predicate I was using. The command used to check the predicate was `/execute if predicate datacore:dc_util/fluid/water`.

How to reproduce

  1. Add the attached data pack to the world
  2. Create the structure from the screenshot
  3. execute if predicate test:water
  4. "Test Passed"

Fixed

Powell Whitaker

[Mojang] Grum (Erik Broes)

2020-11-15, 06:05 AM

2023-10-25, 11:57 AM

2021-05-17, 12:17 PM

3

3

Confirmed

Low

Commands, Data Packs

precision-loss

20w46a

21w20a