[SOLVED] Custom GUI Procedure not working even when assigned to button press or update tick

Started by Hellfax on

Topic category: Help with MCreator software

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[SOLVED] Custom GUI Procedure not working even when assigned to button press or update tick
Tue, 05/26/2020 - 16:33 (edited)

I have the procesdure here, am I doing anything wrong? Its binded to both update tick, the button, and when slot 0 changes. I also tried doing when update tick and when slot 0 changes on their own, removing the procedure from the other triggers, but nothing happened. I'm certain there's something wrong with my procedure, can anyone help me?

GUIprocedure

Edited by Hellfax on Tue, 05/26/2020 - 16:33
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It could be that you are…
Tue, 05/26/2020 - 13:39

It could be that you are checking if that purple thing is in the second slot, but your output item is the green thing. Also there is a procedure block that's just called "empty item" in the "Minecraft" menu or whatever it's called. Use that instead of checking for an Air Block.

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Still not working, I changed…
Tue, 05/26/2020 - 13:58

Still not working, I changed what you told me and I even put in empty itemstack.

e

Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I guess, check if your block…
Tue, 05/26/2020 - 16:00

I guess, check if your block has Tile Entity enabled? It's on the 2dn-to-last menu. If you do, or that doesn't work, try switching the procedure to use "currently open GUI" blocks instead of "block at x y z" blocks. They are in the GUI tab,

Joined Jun 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It actually worked! Thanks…
Tue, 05/26/2020 - 16:15

It actually worked! Thanks so much! 

Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wanted to jump in here…
Sun, 12/11/2022 - 23:18

I wanted to jump in here almost 2 years later because I was having the same problem and came across this post (and a few others). I tried everything here and the other posts, but alas, it didn't work for my project. There IS hope! I did get it working.

I ended up having to do 2 things:
1. Make a completely new procedure class/mod element. For safe measures, I rebuilt all the code from scratch. (Luckily it wasn't a big procedure :P )
2. Make a totally new button for the gui. It can still have the same text, but just make a new one. Now select your new procedure you made for the button and (fingers crossed) it will hopefully work this time. 

I tested it with a print string in the console and a send chat to all players node.

P.S. To be fully transparent, I was using the MCreator EAP 2022.2 b31711 snapshot when I encountered this problem. I was making a 1.16.5 mod, and this snapshot was the most updated option. I wanted to test this in the newest MCreator 2022.3(current at time of writing) as well just to make sure it wasn't an old bug, and ironically I had the same problem. I was also able to apply the fix I mentioned above and it worked.

Hope this helped!