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

Linked issues

Attachments

Comments 4

This report is invalid because your game is modified

I've now verified this using the vanilla game, so it wasn't a fabric issue. I've updated the bug report accordingly.

Then recreate this issue if you're able to reproduce in Vanilla.

@unknown, there's no need to create a new report if this report hasn't been resolved yet.

Powell Whitaker

Erik Broes

Confirmed

Low

Commands, Data Packs

precision-loss

20w46a

21w20a

Retrieved