Recipe Types - Mithion/Mana-And-Artifice GitHub Wiki
M&A offers several custom recipe types, all of which are datapackable.
Common Recipe Properties
All M&A recipes support a common set of properties.
tier: The required tier to make the recipe. Just a number, 1-5.
faction: The faction required to make the recipe. Needs to be a fully-qualified resource location, e.g., "mna:undead"
byproducts: Optional byproducts that recipes create when run. This is an array, with each element being comprised of the following properties:
- item: A single item to output.
- tag: A tag of several items to roll on. If a roll is successful, a single item from the tag will be selected if a roll is successful. You cannot set an item and a tag at the same time; the tag will be prioritized over an item.
- chance: The chance a single byproduct will be rolled. Floating point percent, 0.0 -> 1.0.
- rolls: The number of times per completed recipe that byproducts are rolled and possibly generated.
A sample byproduct definition:
"byproducts": [
{
"tag": "mna:staves",
"chance": 0.1,
"rolls": 1
},
{
"item": "mna:vinteum_dust",
"chance": 0.1,
"rolls": 3
}
]
The way this would be interpreted is: "The recipe has a 10% chance to generate a random staff as a byproduct. The recipe has 3 rolls, each with a 10% chance to generate a vinteum dust."