In-game Menu / GUI Creator

In-game Menu / GUI Creator 1.1

Denizen Version
1.2.5-b1779
I had a good number of inventory GUIs to create and decided to create this tool to help ease the pain of writing each item into each inventory script.

This lets you open a virtual inventory of varying sizes and drag & drop items into it to create GUIs as an alternative to the "slots:" arg in inventory script containers. You can also easily edit a menu and do so without any script updates or /ex reloads.

This is largely a SCRIPTER TOOL. Please do not give people permission to use this if they also do not have permission to edit scripts, as it can parse arbitrary tags for the menu titles.

I've found it very useful for playing around with the shapes of our GUIs, as well as for expanding GUIs when I want to add more items to them later on.

Some example menus I've created with this:
1668453247199.png
1668453395666.png


To create a menu, use /menu create (menu id). This will walk you through choosing a size and a title. Titles parse arbitrary tags; in the example above, I use tags to move a custom overlay into the correct position.

To use a menu you create, just make an inventory script of the same type and size with a data key of "menu: menu_id". When you open that inventory script, it will get automatically populated by the saved menu. You can also use other keys, such as "gui: true" in the inventory script and it will work as expected. You can listen to events for the inventory script just like any normal inventory script. An example:

YAML:
demo_menu:
  type: inventory
  inventory: chest
  gui: true
  size: 18
  data:
    menu: example_menu

demo_menu_events:
  type: world
  events:
    on player clicks my_custom_item in demo_menu:
    - narrate "An example"

"/ex inventory open d:demo_menu" will open the menu saved as "example_menu"
  • Like
Reactions: Funky
Author
Mergu
Downloads
509
Views
1,474
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Mergu

Share this resource