#✅ | custom gui

1 messages · Page 1 of 1 (latest)

queen berry
#

How can I make it so that I open my custom menu with a button, what code is needed?
I looked at the Docs but didn't understand anything, I just want to open my menu using a button

iron monolithBOT
#

Need a bit more detail to help—are you asking how to create a custom GUI screen or how to open one via actions/commands?
If you haven’t already, check the Custom GUIs doc: Adding a new custom screen and opening it.

iron monolithBOT
# queen berry How can I make it so that I open my custom menu with a button, what code is need...

You don’t need code—just hook a button to the Open Screen or Custom GUI action.

  1. In your layout, right-click the button → Edit Action Script.
  2. Add the Open Screen or Custom GUI action.
  3. Set its value to your custom GUI’s identifier (copy it via the Debug Overlay → tap the identifier to copy while the screen is open).
  4. Save and test the button.

If you want to open it via command too, use /openguiscreen <identifier> (see the “Open GUIs by Command” section on that same doc).
More details here: Custom GUIs 😊

queen berry
#

where to enter the identifier

iron monolithBOT
# queen berry where to enter the identifier

When you add the Open Screen or Custom GUI action to the button, the identifier goes into the action value field.

  1. Right-click the button → Edit Action Script.
  2. Add the Open Screen or Custom GUI (opengui) action.
  3. When the action’s editor opens, paste the identifier into the Value input (it expects the screen’s identifier string).
  4. Save the script.

If you need the identifier, enable the debug overlay (Ctrl + Alt + D), open the screen, then click the identifier text to copy it.

queen berry
#

Can you draft some code to show what it would look like?

iron monolithBOT
# queen berry Can you draft some code to show what it would look like?

FancyMenu doesn’t use traditional code, but here’s how the action script entry looks:

Action: Open Screen or Custom GUI
Value: my_custom_gui_identifier

You create this by right-clicking the button → Edit Action Script → add opengui → paste your GUI identifier into the “Value” field (copy it via the debug overlay). That’s all there is to it. 💫

#

✅ | custom gui

#
Thread Marked as Solved

This support thread has been marked as solved by @queen berry.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!