Skip to content

RecipeRegistry

KS edited this page Feb 19, 2018 · 2 revisions

LambdaLib2 provides a new way to register your recipes. Use RecipeRegistry in crafting package, and get rid of annoying json files.

Format of Recipe File

Shapeless Recipe

shapeless(output) {
    [input]
}

Shaped Recipe

For unmirrored recipes:

shaped(output) {
    [inputA, inputB, inputC]
    [inputD, inputE, inputF]
    [inputG, inputH, inputI]
}

For mirrored recipes:

shaped_s(output) {
    [inputA, inputB, inputC]
    [inputD, inputE, inputF]
    [inputG, inputH, inputI]
}

You can use nil for blank slots and change the height and width of input area.

For example,

shaped(output) {
    [inputA, nil, inputC]
    [inputD, inputE]
}

Smelting Recipe

smelting(output)[xp] {
    [input]
}

xp is a float.

Others

For every slot of output or input:

  • @orename Use OreDictionary name.
  • $mappedname Use mapped name of objects. To map an object, use map method in RecipeRegistry.
  • modid:name Use ResourceLocation. If modid is not set, it will use the default setting minecraft:.

To change the amount of items in itemstacks, use name*amount.

To set the meta of items, use name#meta.

To set both amount and meta, use name#meta*amount.

Clone this wiki locally