How to create a procedure for a button in the interface?

Started by Andrey Volynkin on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create a procedure for a button in the interface?

I wanted to create a procedure in my modification so that the button closes the interface. But I didn't see this link there and I didn't succeed, please tell me how to do this procedure for my mod on version 2023.2

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
to make a button make a…
Wed, 08/09/2023 - 21:20

to make a button make a procedure when clicked, make a new procedure (the one you wan to button to do), then go back to the GUI with the button, edit the button (double-click) and then you go press the button next to the "do:" and select your procedure, if you want the procedure to make the button close the interface, use the "close and open GUI for event/target entity" procedure, i hope this helps you!