Custom Potion Workshop Crafting Recipes - DaFuqs/Spectrum GitHub Wiki
The Potion Workshop can not only be used to brew Potions, but can also be used as a provider for all kinds of recipes, using the recipe type described on this page. Spectrum utilizes this type of recipe to make crafting of its liquids easier and more efficient, but you can get creative.
Properties
Entry | Type | Default | Description |
---|---|---|---|
group | string | empty | A string that represents a recipe group. Recipes with a common group will only trigger a single unlock popup, if multiple are unlocked at once. Add a localization string "recipeGroup.spectrum.<<your_group_string>>" so the toast popup is properly localized |
secret | boolean | false | If true, the recipe will never be listed in recipe listing mods, like REI |
required_advancement | advancement_identifier | empty | The advancement a player needs to have to be able to craft this recipe. Spectrum will automatically show a toast to the player when this advancement has been unlocked and reached the set tier |
ingredient1 | ingredient | Brewing ingredient. For most potions you should use "minecraft:nether_wart" | |
ingredient2 | ingredient | Brewing ingredient | |
ingredient3 | ingredient | Brewing Ingredient. If it is a Potion with negative efect you should use "minecraft:fermented_spider_eye" | |
base_ingredient | ingredient | The item identifier used in the filling slot. Usually you want to use "minecraft:bottle" here | |
use_up_base_ingredient | boolean | true | If the item in the "base_item" slot will get consumed |
required_experience | int | 0 | The amount of experience drained from the first Experience Provider (like a Knowledge Gem) in the ingredients. |
time | int | 200 | The crafting time in ticks |
color | int | 12595288 (pink) | The color the potion should use |
result | item_stack | Output item stack, supports NBT |
Example: Creating Liquid Crystal
Using Pigments and Sparklestone to create Buckets of Liquid Crystal
{
"type": "spectrum:potion_workshop_crafting",
"base_ingredient": {
"item": "minecraft:bucket"
},
"use_up_base_ingredient": true,
"color": 11972050,
"ingredient1": {
"item": "spectrum:pink_pigment"
},
"ingredient2": {
"item": "spectrum:yellow_pigment"
},
"ingredient3": {
"item": "spectrum:sparklestone_gem"
},
"result" : {
"item": "spectrum:liquid_crystal_bucket"
}
}
Example: Creating Lava
The creation of Lava by utilising a Wet Lava Sponge. The Wet Lava Sponge will not get used up.
{
"type": "spectrum:potion_workshop_crafting",
"base_ingredient": {
"item": "spectrum:wet_lava_sponge"
},
"use_up_base_ingredient": false,
"color": 13387304,
"ingredient1": {
"item": "minecraft:bucket"
},
"ingredient2": {
"item": "minecraft:magma_block"
},
"ingredient3": {
"item": "spectrum:orange_pigment"
},
"result" : {
"item": "minecraft:lava_bucket"
}
}