Recipes and Ingredients - SilentChaos512/Silent-Gear GitHub Wiki
Silent Gear expands the crafting system a bit with some new ingredient and recipe types.
Ingredient Types
This is an incomplete list of available ingredients. I have included only the ones that are useful for data packs.
silentgear:blueprint
Blueprints - Matches a blueprint, template, or a blueprint book with a matching blueprint selected. There are also tags for blueprints/templates, but they will not match blueprint books. This ingredient requires either a part type (for part blueprints), or a gear type (for gear blueprints).
Note that part types are namespaced and gear types are not. If you omit the namespace, it will assume it's silentgear
.
{
"type": "silentgear:blueprint",
"part_type": "silentgear:rod"
}
{
"type": "silentgear:blueprint",
"gear_type": "pickaxe"
}
silentgear:material
Material - Matches a material that supports a given part type and gear type. Gear type is optional and defaults to "tool", which matches everything but armor.
Material that supports part type "main" for tools (everything but armor):
{
"type": "silentgear:material",
"part_type": "silentgear:main"
}
Material that supports armor:
{
"type": "silentgear:material",
"part_type": "silentgear:main",
"gear_type": "armor"
}
silentgear:part_type
Part Type - Matches any item that corresponds to a part of the given type. You will find these in the recipes that create gear items. Using this ingredient type, you can modify recipes to require parts of any type. A list of part types can be found here.
Note that if that namespace is omitted, it defaults to silentgear
instead of minecraft
.
{
"type": "silentgear:part_type",
"part_type": "silentgear:rod"
}
silentgear:exclusion
Exclusion - Exclusion ingredients are used to match a tag, but excluding given items. This is useful for materials with child materials, like wood.
This ingredient may move to Silent Lib sometime in the future.
{
"type": "silentgear:exclusion",
"value": {
"tag": "minecraft:planks"
},
"exclusions": [
"minecraft:acacia_planks",
"minecraft:birch_planks",
"minecraft:dark_oak_planks",
"minecraft:jungle_planks",
"minecraft:oak_planks",
"minecraft:spruce_planks",
"silentgear:netherwood_planks",
"minecraft:crimson_planks",
"minecraft:warped_planks"
]
}
Recipe Types
silentgear:gear_crafting
Shapeless Gear Crafting - The recipe type used by most built-in gear recipes. The format is identical to vanilla shapeless recipes. Should be used with silentgear:part_type
and silentgear:material
ingredients, but other ingredient types can be used in addition to that.
Examples can be found here
silentgear:shaped_gear_crafting
Shaped Gear Crafting - The recipe type used by rough tool recipes, but could be used for normal gear recipes if you want to do so. The format is identical to vanilla shaped recipes. Should be used with silentgear:material
ingredients, but other ingredient types can be used in addition to that.
Examples can be found here