Inventory.yml Tutorial
Here you can modify all aspects of the inventories of EpicCraftingsPlus.
Inventories
There are different inventories on the plugin:
main: Main inventory opened using the /ecraft command. This inventory shows the categories.
category_<category>: You must create an inventory per category, replacing the
<category>
tag with the name of the category. For example,category_weapons_armor
represents the inventory for theweapons_armor
category, where all of the craftings from this category will appear. If you create a new category in the categories.yml file named"potions"
, then you must add a new inventory on the inventory.yml file calledcategory_potions
.crafting_menu: DEFAULT inventory that opens when a player selects a crafting to create. You can also create a crafting menu per category using the following name:
<category>_crafting_menu
If you have a category calledpotions
and you create an inventory calledpotions_crafting_menu
it means this inventory will replace the defaultcrafting_menu
for that category.bypass_cooldown_menu: Inventory that opens when a player right clicks a crafting to bypass its cooldown.
Inventories properties
Each inventory has 3 properties show below:
Slots
Defines the amount of slots this inventory will have. You can only use 9, 18, 27, 36, 45 or 54.
Title
Defines the title of this inventory.
Item Slot
Position of an item in the inventory. For a much simpler way of placing items on inventories you can use some formats:
Format 1
This will set an item on the slot 0.
Format 2
This will set the same item on slots 0, 8 and 16.
Format 3
This will set the same item from slots 0 to 8 (0, 1, 2, 3, 4, 5, 6, 7, 8)
Combining formats
This will set the same item on slots 0 to 7, 9, and 17 to 26.
Item Slots Properties
Item
Open Inventory
Add this option to open another inventory when the player clicks on this item.
You can use open_inventory: previous
to open the previous EpicCraftingsPlus inventory the player was in.
Click Actions
Click Commands
USE CLICK ACTIONS INSTEAD, THIS OPTION WILL BE REMOVED SOON.
Adds a list of commands to be executed from the console when clicking on the item. You can use the msg %player%
command to send a simple message to the player.
Not Show on Blocked Inventories
This is a special option. When enabled, this item will not appear in the inventory if the category is blocked. When is a category considered to be blocked?
When the player opens a categorized crafting place.
When opening a category to the player using /ecraft opencategory <player> <category> true
Not Show on Blocked Craftings
This is a special option. When enabled, this item will not appear in the inventory if the category is blocked. When is a category considered to be blocked?
When opening a crafting to the player using /ecraft opencraft <player> <category> true
Type
Custom Items
There are a lot of custom items which are necessary for the inventory to work. These custom items are specified under the "type"
option.
Category item
This item will be replaced with the category item from the categories.yml file. When the player clicks on it, the inventory from that category will open. Use the following format:
category:<category name>
Previous Page and Next Page
Previous Crafting and Next Crafting
When players click on this item, they will go to the previous/next crafting of the current category. This item needs to be on the crafting_menu
inventory.
Preview Crafting
This item represents the preview item for the crafting including some extra properties in the lore/description, like the cooldown if it applies. When players click on this item, the crafting inventory for this item will be opened. You don't need to specify an item, since it is the same as the crafting. This item requires to be on a category_<category>
inventory.
Final Crafting
This item represents the final crafting inside the crafting inventory, including a cooldown lore if applies. This item needs to be on the crafting_menu
inventory.
Required Item
This item represents one of the required items to craft the main item. This item needs to be on the crafting_menu
inventory.
No Required Items Item
This item will be placed ONLY if this crafting doesn't have required items. This item needs to be on the crafting_menu
inventory.
Click to Craft Item
Craft with Money Item
Bypass Cooldown Items
Last updated