Adding Recipes - emilyploszaj/emi GitHub Wiki
Adding Recipes
Certain recipe categories support adding recipes via resource packs. Currently, only emi:world_interaction and emi:info support this. Any json file in assets/emi/recipe/additions/ is parsed as an additional recipe using the name of the type key.
Adding Info Recipes
Info recipes display a stack or stacks, and some text describing them. This can be what they are, how to use them, how to obtain them or anything else, really.
| Key | Value |
|---|---|
stacks |
A list of, or single stack to display. |
text |
A list of, or single translation key to display. The newline character \n can be used inside of the translations. |
Examples
Recipe:
{
"type": "emi:info",
"stacks": [
"item:minecraft:obsidian",
"item:minecraft:flint_and_steel"
],
"text": "emi.info.the_nether"
}
en_us.json
"emi.info.the_nether": "You can create a portal to The Nether using at least 10 obsidian and lighting it with a flint and steel.\nThe area inside the frame must be at least 2 blocks wide and 3 blocks tall.\nThe corners do not need to be obsidian."
Adding World Interaction Recipes
World interaction recipes show a way of interacting with the world to get some output, such as stripping logs with an axe, waxing copper, or even combining water and lava to make blocks. Typical recipes have the initial state on the left input, the item used on the right input, and the result from combining, using, or however else.
| Key | Value |
|---|---|
left |
A list of, or single stack to display as the left input. |
right |
A list of, or single stack to display as the right input. |
output |
A list of, or single stack to display as the output. |
Examples
The following would show a hypothetical recipe where placing a torch on a redstone block turns it into a redstone torch.
{
"type": "emi:world_interaction",
"left": "item:minecraft:torch",
"right": "item:minecraft:redstone_block",
"output": "item:minecraft:redstone_torch"
}