Crafting stations enable players to easily craft specific items using crafting recipes, which require ingredients and conditions. When opening a crafting station, players can see information about the station recipes, including the recipe conditions (permissions, levels), ingredients and output, and navigate through them using the pagination system.
You can make a player open a crafting station GUI by using the following command: /mi stations open {player} {station-id}. You can check the list of available crafting stations by using /mi stations list.
Creating a new crafting station
Crafting stations are saved in the /MMOItems/crafting-stations folder. Every YML file in that folder corresponds to a crafting station, therefore you can create a crafting station by creating a new YML file. Be careful when choosing the file name, because it corresponds to the ID you will be using as reference when opening a GUI to a player via the command as explained previously.
Configurating a crafting station
# Name which will be displayed
# when opening the station
name: 'Arcane Forge (#page#/#max#)'
# Configure GUI items here
items:
fill:
material: PINK_STAINED_GLASS_PANE
name: '&a'
no-recipe:
material: GRAY_DYE
name: '&a'
Every crafting station needs some basic information provided in the station config file, including the name
option which corresponds to the GUI name. The items
config section is used to change some of the GUI items. The fill
item is the item used to fill remaining GUI slots around the recipe items. The no-recipe
item is used to fill GUI recipe slots when there are no recipes. The previous config therefore displays that: