Get Name of button in gui on click

Started by Dashy22 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Get Name of button in gui on click

Hello i just wanted to know how to get the name of a button when it is clicked through a procedure.

I want to know because i want to use 1 procedure to handle multiple buttons, if there is another way to do this than tell me please

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if you don't mind locking…
Sun, 09/07/2025 - 05:55

if you don't mind locking the procedure and gui, you can pass the button id

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
oh you might not actually…
Sun, 09/07/2025 - 05:56

oh you might not actually have to lock the procedure