(FIXED) block at x y z not being correct when testing for energy in gui update tick

Started by gorgin on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 22:29, 26. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(FIXED) block at x y z not being correct when testing for energy in gui update tick
Wed, 06/26/2024 - 22:30 (edited)

I am testing if the block at x, y, z has a certain amount of energy. Nothing happens, but if I remove the testing for if the block at x, y, z has enough energy it works.

 

Edit:

It works if you are in the block, so I think it is testing your x, y, z

 

SOLUTION:

Set local number variables for x, y, and z with the blocks:

   "Look X position of Event/TargetEntity with raytrace distance 5 fluid mode None block mode Outline"

   "Look Y position..."

   "Look Z position... "

respectively

replace all x, y, and z blocks with the local variables

 

Though if you move after you've opened the gui it won't work, but most of the time you shouldn't have moved so it should be fine.

Edited by gorgin on Wed, 06/26/2024 - 22:30
Last seen on 16:51, 26. Jun 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you clarify what is…
Wed, 06/26/2024 - 01:57

could you clarify what is triggering the procedure? sometimes just xyz blocks don't work, so please clarify

Last seen on 22:29, 26. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
could you clarify what is…
Wed, 06/26/2024 - 03:05

could you clarify what is triggering the procedure? sometimes just xyz blocks don't work, so please clarify

the "While this GUI is open tick" of the block's gui