promotional bannermobile promotional banner
premium banner
Library which allows you to create custom lightning recipes

Description

Lightning Recipes

 

This library doesn't add any new crafting recipes after downloading!

 

The library allows you to add new custom recipes.

The recipe will be activated after the lightning will strike a lightning rod.

If block under it has any recipe bound to it in .json file, it will change to target block.

(It's similar to how copper blocks change after strike in vanilla minecraft)

 

To add a new recipe, you need to create a datapack, in which you will add

recipe_name.json file under /data /lightning_recipes/recipes/ location.

 

Example test_recipe.json:

{

    "type": "lightning_recipes:lightning_recipe",
    "input": {
        "item": "minecraft:grass_block"
     },
    "output": "minecraft:diamond_block"
}

In input you can also add a block tag to make it work on all blocks with selected tag, for example:

{
    "type": "lightning_recipes:lightning_recipe",
    "input": {
        "tag": "minecraft:logs"
    },
    "output": "minecraft:cobblestone"
}

 

Feel free to use that library in your modpack or by your own!

Mod repository: https://github.com/makubas/lightning-recipes