An item can have multiple recipes attached to it of any type, allowing items to be crafted in more than 1 way.
Available Recipe Types
-
SHAPELESS
- A shapeless recipe -
SHAPED
- A recipe that requires a certain shape -
FURNACE
- In a Furnace -
CAMPFIRE
- In a Campfire -
BLASTING
- In a Blast Furnace -
SMOKING
- In a Smoker -
STONECUTTING
- In a stonecutter -
SMITHING
- In a smithing table -
BREWING
- Brewed in a brewing stand
Leftover Items
Shaped
and Shapeless
Works only for If you want to have items leftover inside the crafting grid after a recipe is completed you can add theIngredientsLeftover
option. This will work in the same way crafting with a bucket of milk will leave the empty bucket in the grid. You can use any item including Mythic items. In the below example an empty bucket will be left in the crafting grid once the item is crafted.
TestRecipe:
Id: GOLD_NUGGET
Display: 'Test Recipe Item'
Recipes:
SHAPELESS:
Type: SHAPELESS
Amount: 1
IngredientsLeftover:
- bucket
Ingredients:
- water_bucket
- apple
Conditions
Shaped
and Shapeless
Works only for You can check against a set of Conditions that must be met in order for the player to be able to craft the item
TestRecipe:
Id: GOLD_NUGGET
Display: 'Test Recipe'
Recipes:
NIGHT:
Type: SHAPED
Conditions:
- night
Ingredients:
- FEATHER | AIR
- AIR | FEATHER
CraftSkills
Shaped
and Shapeless
Works only for Allows the player to execute a skill once the associated item is crafted.
The <skill.var.crafts>
placeholder can be used to fetch the amount of items crafted.
ThiccItem:
Recipes:
Recipe:
Type: SHAPELESS
Ingredients:
- slime_ball
- honey_bottle
CraftSkills:
- lightning @self
Example Crafting Configuration
Here is an example of an item with multiple recipes attached to it.
TestRecipe:
Id: GOLD_NUGGET
Model: 5
Display: 'Test Recipe Item'
Recipes:
FURNACE:
Type: FURNACE
Amount: 1
CookingTime: 120
Experience: 5
Ingredient: diamond
SHAPED_1:
Type: SHAPED
Amount: 1
Ingredients:
- apple | air
- air | apple
BREWER_1:
Type: BREWING
Amount: 1
Ingredient: apple
InputItem: diamond
SHAPELESS_1:
Type: SHAPELESS
Amount: 1
Ingredients:
- apple
- apple
- diamond
- TestRecipe