Item Type Merge Adapter
The item type merge adapter allows recipes to change the type of the result stack depending on an ingredient.
This is useful for repair/transform recipes, and other similar recipes, where the type of the ingredient should determine the result type.
The ID of the merge adapter is customcrafting:item and acts similar to the other merge adapters, with the difference that it only ever uses the first targeted ingredient slot.
For example, you could create a recipe that converts swords into axes:
Code (YAML):
## hocon syntax!
target
{
mergeOptions
:
[
{
slots
:
[ 4
]
adapters
:
[
{
key
:
"customcrafting:item"
typeMappings
{ // Maps the sword types of the ingredient to a type for the result stack
wooden_sword = wooden_axe
stone_sword = stone_axe
iron_sword = iron_axe
golden_sword = golden_axe
diamond_sword = diamond_axe
}
}
]
}
]
}
For the recipe to work, it of course needs to allow all the different variants of items.
You can do that by shift + right-click on ingredient slots!
This is not meant to replace type specific recipes like for boats, doors, etc.
For those it is still required to create separate recipes, because this can only ever target a single ingredient!
Changelog
- #292 - Add Item Type Merge Adapter
- #288 - Fix Recipe Book Title Update Error Upon Reopening
- #290 - Fix Disappearing Ingredients When Using Recipe Book Recipe Completion
- #291 - Fix Invalid Ingredient slots in 1.19 Smithing Recipes
Full Changelog:
v4.16.8-beta.2...v4.16.8-beta.3