Custom Enchanter Recipes - DaFuqs/Spectrum GitHub Wiki
The Enchanter requires a structure with 8 Item Bowls, making the input 9 items, with a tenth item to supply experience for those recipes (usually a Knowledge Gem). The output is a single output stack.
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 see this recipe. Spectrum will automatically show a toast to the player when this advancement has been unlocked and reached the set tier |
ingredients | ingredient list of 9 entries | A list of 9 ingredients. The first ingredient will have to be placed on the Enchanter itself, the other 8 will be placed clockwise on the surrounding Item Bowls | |
time | int | 200 | Time in ticks this recipe takes to craft |
required_experience | float | 0 | The amount of experience that needs to be stored and removed from the Knowledge Gem |
disable_yield_and_efficiency_upgrades | boolean | false | When true, yield and efficiency upgrades do not affect the output of this recipe. Defaults to false |
copy_nbt | boolean | false | When true, copes the nbt custom name, enchants, ...) of the first item in the recipe |
result | item_stack | Output item stack, supports NBT |
Example 1: Creating an enchanted book with Autosmelt.
{
"type": "spectrum:enchanter",
"time": 300,
"required_experience": 100,
"ingredients": [
{
"item": "minecraft:book"
},
{
"item": "spectrum:orange_pigment"
},
{
"item": "spectrum:orange_pigment"
},
{
"item": "minecraft:lava_bucket"
},
{
"item": "spectrum:stratine_gem"
},
{
"item": "spectrum:orange_pigment"
},
{
"item": "spectrum:orange_pigment"
},
{
"item": "minecraft:lava_bucket"
},
{
"item": "spectrum:stratine_gem"
}
],
"result": {
"item": "minecraft:enchanted_book",
"nbt": "{StoredEnchantments: [{id: \"spectrum:autosmelt\", lvl: 1s}]}"
},
"required_advancement": "spectrum:unlocks/enchantments/autosmelt"
}