How to create a reward GUI
Creating a rewards gui is simple, just create a new yml file in the UltraCollections/rewards
folder and use the template provided in this page. With what you've learned from How the GUI system works, you know that you need to define a item icon in the stucture for the item to show up. So follow these steps:
Instructions
Create yml
Fill it with the template
We've defined a "I" in the structure, now go in-game and hold your rewards item and run this command:
/collections setreward <reward_file> <reward_name> <item_icon>
The
reward_file
is the file you just made WITHOUT THE .YML, so a dirt_reward.yml would bedirt_reward
The
reward_name
is just a key lets set it tohelmet
for now.Now the
item_icon
, as we already have anI
in the stucture, lets useI
.Here is your final command:
/collections setreward dirt_reward helmet I
Now the item is added to the config file and in the GUI in-game.