(MCreator 2024.3) GUI giving wrong coordinates to functions

Started by alttest255671 on

Topic category: Troubleshooting, bugs, and solutions

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(MCreator 2024.3) GUI giving wrong coordinates to functions

Steps to replicate:

-Create GUI element with an input slot

-Create procedure that returns true/false, and prints x, y and z dependencies

-Set procedure into the GUI slot's "Disable Insert Condition"

-Bind GUI to block

-Enter client, place block (note down coords of placement), attempt to insert into slot

Intended behavior:

-Coordinates x, y, z of the block are printed out to console

Observed behavior:

-x and y coordinates are completely off without a clear trend

-z coordinate is correct

-This issue messes up any logic that needs to happen with insertion into a slot

-Not tied to workspace, instance of client, instance of MCreator, or boot cycle of the computer

--Result from real test: Placed block at (-48, 83, -40) -> Output: (80, 33, -40)

Current workarounds:

-None