• check_circle Functions
  • 11,900 views, 14 today
  • 674 downloads, 1 today
  • 42
  • 43
  • 18
Required Resource Pack
Prodige Gasy's Avatar Prodige Gasy
Level 47 : Master System
✧✦ GUI Maker+v1.0 ✦✧: Creating GUI menus has never been easier in vanilla Minecraft with this datapack. Once mastered, this tool allows you to work wonders!

❖ GUI Maker is a datapack that enables you to effortlessly create GUI menus. ❖

❃ Features ❃

⇨ Retrieves items from the inventory placed in the menu.
⇨ Add up to 100 pages.
⇨ Clickable items.
⇨ An example menu is included in the datapack! Execute the command /function gui:example

⚙ Tutorial ⚙

❂ Choose which item will open your menu ❂

✧ First, select the item that will open your desired menu. To trigger the menu, you need an item with the tag {gui:1b} and the tag main (optional, default 0). The main tag indicates the starting page of the menu.

❈ Example command:
/give @s nether_star{gui:1b,main:0b}

❂ Setting up a menu ❂

✧ Place a chest and add the items you desire. For each clickable item, give it a unique tag.

❈ Example item:
/give @p diamond{diamond:1b,ui:1b}

✧ Stand on top of the chest and add it to the menu as the main page using the following command:
/data modify storage gui:page pageId set from block coordinate Items

✦ Example Command:
/data modify storage gui:page 0 set from block ~ ~ ~ Items

❂ Click event inside the menu ❂

⇨ To go to a specific page when you click, add the tag target:id with the desired page ID.

Click to reveal
/give @p arrow{ui:1b,target:1b}

⚪ Make an item non-clickable by adding the tag: {null:1b}.

Make sure that every single item has the tag {ui:1b} ...

⇨ Now, open the datapack folder and follow the instructions.

Instructions :
📁 Open the datapack folder and go to "gui-lib/data/custom_gui/functions/click".

📝 Copy the first 2 lines of code in this file.

✏️ Replace the values in bold and italic. The function to execute is on the second line. Note that the function can contain any command you want to execute at the player's position when they interact with the menu. Example:

Suppose you have an item with the tag {grass:1b} representing a grass block. When the player clicks on this item in the GUI, the following command will be executed:

🔍 Command:
execute store success score #grass gui.click run clear @p grass_block{grass:1b} 1

This command checks if the player successfully clicked on the grass block with the specified tags.

Next, using the "if" statement, it checks if the player's score #grass gui.click matches 1 (which indicates a successful click). If true, it runs the following command:

🔍 Command:
execute if score #grass gui.click matches 1 run say You clicked on the grass block!
### This function is executed at @p as the menu ###


This command makes the menu say "You clicked on the grass block!" in the chat as a response to their successful interaction with the GUI.

Remember to customize the commands and tags based on your specific requirements and desired interactions in the GUI. Have fun creating your GUI menu! 🌟
CreditThis datapack uses the Entity Linker tool from @Cloud Wolf and uses JMC
CompatibilityMinecraft 1.16
toMinecraft 1.20

3 Update Logs

Update #3 : by Prodige Gasy 07/20/2023 11:09:11 amJul 20th, 2023

Modifications :
  • Menu setup section reorganized for better clarity and understanding.
  • Large menu optimization for improved performance and stability.
  • New system of page finding (+more…)
  • New system of storage
  • Minecarts (menu) uses a vector system to teleport.
Bug Fixes :
  • Item disappearing
  • Null item not working properly
  • Lag peak when changing pages

Create an account or sign in to comment.

09/10/2023 6:50 am
Level 1 : New Miner
Sdemonthys's Avatar
Hey ! Do you have any video explaining every thing ? or even a discord for people in need of help ? Would be glad to join it !
08/15/2023 4:50 am
Level 1 : New Network
Opajones's Avatar
Is this data pack compatible with multiplayer?
08/08/2023 8:10 pm
Level 1 : New Explorer
Maikerusama's Avatar
|||| || |||||CTRL + Q||||||||||
07/23/2023 5:09 pm
Level 18 : Journeyman Mountaineer
gamearc9's Avatar
So cool! How did you make the title in the thumbnail too?
Prodige Gasy
07/24/2023 3:22 am
Level 47 : Master System
Prodige Gasy's Avatar
Thanks! I'm using an online generator.
09/02/2023 4:29 pm
Level 18 : Journeyman Mountaineer
gamearc9's Avatar
Ah. Also the resource pack is awesome!
12/22/2022 4:54 am
Level 39 : Artisan Robot
Vam3n's Avatar
This is incredible!
08/17/2022 8:31 am
Level 1 : New Miner
Jeffrey131313's Avatar
I am using the original 1.19
08/17/2022 8:30 am
Level 1 : New Miner
Jeffrey131313's Avatar
I think you can use the scoreboard to check whether the player clicks
08/17/2022 12:50 am
Level 1 : New Miner
Jeffrey131313's Avatar
When there are players near me, two harvesters will appear, and one of them cannot be deleted automatically
Planet Minecraft


© 2010 - 2024