forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 71
Custom Recipes
JasperLorelai edited this page Aug 21, 2023
·
18 revisions
Custom recipes can be defined in the general.yml file or any spell file. The main configuration looks like this:
recipes:
randomKey:
# (Recipe configuration section)
# type: | Option | Description |
|---|---|
type |
Valid types: shaped, shapeless, furnace, smoking, campfire, blasting, stonecutting, and smithing. |
result |
Magic Item |
quantity |
Quantity of the result. |
group |
A string. This can be used to group recipes in the Recipe Book. For example, all dye recipes are grouped. |
namespace-key |
This key is a string which makes the recipe unique from all other recipes. It has to be lowercase. |
| Option | Description |
|---|---|
shape |
Recipe shape is a string list. It should have 3 string elements, every 3 characters long. It's representing a 3x3 shape. Take a look below for an example. |
ingredients |
Map of the ingredients. Key-value pair, where the key is a shape character, and the value is a material. Unmapped characters usually represent air. |
Example:
shape:
- "I#I"
- "III"
- "III"
ingredients:
I: iron_ingot| Option | Description |
|---|---|
ingredients |
A string list of materials. |
This represents smoking, campfire and blasting recipes.
| Option | Description |
|---|---|
ingredient |
A material. |
experience |
Number of experience points to reward. |
cooking-time |
Server ticks duration. |
| Option | Description |
|---|---|
ingredient |
A material. |
| Option | Description |
|---|---|
base |
A material. |
addition |
A material. |