Lightning Recipes
Important note: This library does not add any new crafting recipes after installation!
This library provides the ability to create custom recipes activated by lightning strikes. When lightning hits a lightning rod, the block underneath it is checked for a linked recipe in the .json file. If a recipe is found, the block transforms into the target block.
This works similarly to how copper blocks change after being struck by lightning in vanilla Minecraft.
How to add a new recipe
To create a new recipe, you need to create a datapack and add a recipe_name.json file at the path /data/lightning_recipes/recipes/.
Example test_recipe.json:
{
"type": "lightning_recipes:lightning_recipe",
"input": {
"item": "minecraft:grass_block"
},
"output": "minecraft:diamond_block"
}
In the "input" field, you can also specify a block tag to make the recipe work with all blocks having the selected tag:
{
"type": "lightning_recipes:lightning_recipe",
"input": {
"tag": "minecraft:logs"
},
"output": "minecraft:cobblestone"
}
You are free to use this library in your modpacks or for personal use!