Auto Crafting Settings¶
The heart of StackCraft is the craft: section. This is where you map ingredients to final products.
The Structure¶
craft:
[RESULT_ITEM_FORMAT]:
required_all: [true|false]
ingredient:
- [INGREDIENT_1_FORMAT]
- [INGREDIENT_2_FORMAT]
RESULT_ITEM_FORMAT: The item the player will receive. See Item Formats for syntax.required_all:- If
true, the player must have every item listed in theingredientlist in their inventory to perform the craft. - If
falseor missing, the player can use any one of the items in theingredientlist to craft the result.
- If
ingredient: A list of required item formats and amounts.
[!WARNING] Crucial Step: Simply adding a recipe in the
craft:section is not enough. For the auto-craft to actually work, you must add the[RESULT_ITEM_FORMAT]to thecontainlist of atogglegroup! See Toggle Commands for more details.
Example: Any Ingredient Works¶
Convert either 64 Vanilla Coal OR 64 Vanilla Coal Blocks into 1 Custom MMOItem Coal.
Example: All Ingredients Required¶
Combine 1 Sword Blade, 1 Sword Hilt, and 1 Magic Gem to create an Epic Sword.