Topic category: Help with MCreator software
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!
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.
Every tick local variable is reset. Try using NBT only.