This repo provides example datapacks for coding GUIs using barrels, minecart chests, and ender chests! There are tons and tons of comments provided to help explain what each line of code does, and you can watch the youtube video to get a better idea of what each module / key component is meant to do.
The resource pack provides you with assets for building your own GUIs to use with the datapacks.
To make some UI's, simply add a folder under ui:menu with the name of your menu. Then add 1 folder per page of the menu, with each folder containing a "mask" and "open" function. Any item placed in the mask with custom data of ui_item.cmd will run that command, so in the demo the command to go to another page is just the "function ui:menu/(path to page)/open". The youtube video covers how to do this quite extensively.
Cloud Wolf 🔨 |
Misode 💡 |