"Get energy of block at x:X y:Y x:Z on side Any Side" not working

Started by DrDarkness99 on

Topic category: Help with MCreator software

Last seen on 20:33, 18. Jun 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
"Get energy of block at x:X y:Y x:Z on side Any Side" not working
Mon, 06/14/2021 - 20:49 (edited)

Hi!

I am working on creating a machine (CNC) that will take in a blank circuit and core of some type (both custom items) and output that core's type of circuit. The recipe part is not an issue, but rather my integration with FE. I know the block entity has FE in it because I have it set to spawn with 2000, and I also have a text component in the GUI that reads <energy> and it's reading correctly. AND ON TOP OF THAT. I went through the trouble of creating a functioning power bar. All of that works properly and is returning 2000. My problem lies in the recipe reading the power level.

 

I have created a few troubleshooting procedures. First, I seperated all of the requirements for the resipe to go through and the power was the only one that was hanging it up. (yes, the power in the block is more than the power required by the recipe). I then decided to send myself a message every tick from the block telling me how much power it has. Welp, it says 0... most of the time.

 

Every time I exit out of the GUI, the last message says 2000. I included a screenshot of it to show you in game and I will also include a screenshot of the procedure. Any help would be great guys. Thank you!

 

Procedure Screenshot

 

Game Screenshot

Edited by DrDarkness99 on Mon, 06/14/2021 - 20:49
Last seen on 20:33, 18. Jun 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
FOLLOW UP: I found out that…
Tue, 06/15/2021 - 04:18

FOLLOW UP: I found out that the final reading is coming from when I close the GUI. The procedure is located in (GUI Procedure Triggers) in both the (While GUI is open tick) and (When this GUI is closed). It seems to work fine when the GUI is closed, but not when it is currently open. I also created an additional procedure to see if it was an error with my coding. The other procedure just sent a message of the current power. Same result.

Last seen on 19:35, 22. Mar 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Every tick local variable is…
Tue, 06/15/2021 - 22:25

Every tick local variable is reset. Try using NBT only.