๐Ÿณ
Recipes
In order to create a recipe for your items in your namespace you have to create a special section in one of your .yml files (or on each one, you decide how you want to organize the plugin).

Example 3x3 recipe

1
info:
2
namespace: myitems
3
recipes:
4
crafting_table:
5
deadmau5_hat:
6
permission: myitems.deadmau5_hat
7
enabled: true
8
pattern:
9
- BXB
10
- XBX
11
- XXX
12
ingredients:
13
B: LIGHT_BLUE_WOOL
14
result:
15
item: myitems:deadmau5_hat
16
amount: 1
Copied!
As you can see I created the recipes section in the .yml file, this section can contain each type of recipe. In this example I created a crafting_table recipe called deadmau5_hat

Example 2x2 recipe

1
taco:
2
permission: itemsadder.taco
3
enabled: true
4
pattern:
5
- XXX
6
- XSC
7
- XPB
8
ingredients:
9
B: itemsadder:baguette
10
C: itemsadder:sliced_roast_beef
11
P: itemsadder:potato_sticks
12
S: itemsadder:lettuce
Copied!
You must set first line to XXX, and every ingredient on the bottom right.
You can create multiple patterns per recipe, just make sure that the attribute starts with 'pattern' text. For example pattern_2.
1
turquoise_sword:
2
permission: itemsadder.turquoise_sword
3
enabled: true
4
pattern:
5
- XRX
6
- XRX
7
- XSX
8
pattern_2:
9
- XXX
10
- XRX
11
- XSX
12
ingredients:
13
R: itemsadder:turquoise
14
S: STICK
15
result:
16
item: itemsadder:turquoise_sword
17
amount: 1
Copied!
Last modified 4mo ago
Copy link
Edit on GitHub