mojira.dev
MC-232974

X and Z coordinates do not match "targeted block" X and Z coordinates, off by one, -0 appears as -1

X and Z coordinates do not match "targeted block" X and Z coordinates, off by one -0 appears as -1

What I expected to happen was...:
I expected that the target block  I am standing on to match X and Z coordinates, while being equal to my Y coordinate minus 1.

What actually happened was...:
The X and Z coordinate do not match up, my "position" doesn't equal the "targeted block" coordinate values, always off by one. It appears to start at the -0, which, according to the "targeted block" coordinates appear as -1 instead.

Steps to Reproduce:
1. start by creating a new world in creative mode, superflat, redstone ready.
2. I'm not sure, sorry, I didn't notice the error until much later, massive changes made to within a 200x20x200 volume area
3. after a few saves and reloads and even changing the thumbnail once, I noticed that the bug started manifesting.

Linked issues

Comments 4

This is intended behavior, as the actual XYZ coordinates start in the corner of the block, no t the center. The block position is the block in the northwest position from the corner.

it works as intended. Rounding DOWN your "position" to get the block's coordinates

Thank you for your report!
We're tracking this issue in MC-36602, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

William Justin Knox

(Unassigned)

Unconfirmed

1.17.1

Retrieved