-
Notifications
You must be signed in to change notification settings - Fork 5
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.
shapeless(output) {
[input]
}
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(output)[xp] {
[input]
}
xp
is a float.
For every slot of output or input:
-
@orename
UseOreDictionary
name. -
$mappedname
Use mapped name of objects. To map an object, usemap
method inRecipeRegistry
. -
modid:name
UseResourceLocation
. Ifmodid
is not set, it will use the default settingminecraft:
.
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
.