How to create a collection
Its pretty easy to create a collection. Navigate to UltraCollections/collections
and in the collections folder, simply create a new yml, for example, dirt.yml. Then, paste the code below in it, you can modify this as to your needs.
category
The category is important as that is where this collection will show up.
maxLevel
You need to set the
maxLevel
to the max level of the collection, this must match the xpRequirements section aswell!
giveXP
This is the amount of xp that will be given when the block is broken or picked up
collectionExecutor
executorType
There are 2 executor types,
BY_BLOCK_BREAK
andBY_PICKUP_ITEM
. If the executor isBY_BLOCK_BREAK
, the player will gain collection xp when breaking the block, and if itsBY_PICKUP_ITEM
, the player will gain collection xp by picking up the item defined.
itemstack
This itemstack can be modified in the config, or just go ingame and run the
/collections setitem <collection>
command when holding the item, and this will automatically update.
leaderboard
This is where you change the style/design of how the leaderboard looks.
commandRewards
You can configure command rewards here for each level, these will be executed when people level up to that level. You can make console or player execute them by adding either
PLAYER
orCONSOLE
before the command.
xpRequirements
This is the XP required to level up to each level.
Structure and ingredients
Structure and ingredients are explained in How the GUI system works
levels
Here you can configure different levels
The rewards section is what is shown for level up message and in the GUI
Locked, unlocked and current item are the items for the level, there are these 3 so that you can fully customize them.
Actions are explained in How the GUI system works
Once you know all this, you can make the process faster by using our collections creator: https://pogmc.net/ultracollections/collection_creator.php
dirt.yml
Last updated