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
- Add the attached data pack to the world
- Create the structure from the screenshot
execute if predicate test:water
"Test Passed"
2020-11-15, 06:05 AM
2023-10-25, 11:57 AM
2021-05-17, 12:17 PM
3
3