... | @@ -6,3 +6,21 @@ You can make a player open a crafting station GUI by using the following command |
... | @@ -6,3 +6,21 @@ You can make a player open a crafting station GUI by using the following command |
|
## Creating a new crafting station
|
|
## 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.
|
|
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.
|
|
![](https://i.imgur.com/uaXobmx.png)
|
|
![](https://i.imgur.com/uaXobmx.png)
|
|
|
|
|
|
|
|
## 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:
|
|
|
|
![](https://i.imgur.com/nGXH8GG.png) |
|
|
|
\ No newline at end of file |