From 6816560f3476c44292f634633f750bd43fc93727 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 11 May 2018 13:02:26 +0200 Subject: [PATCH] Recipes_support.lua added. --- init.lua | 1 + recipes.lua | 101 -------------------------------------------- recipes_support.lua | 99 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+), 101 deletions(-) create mode 100644 recipes_support.lua diff --git a/init.lua b/init.lua index b9c09db..d50485c 100644 --- a/init.lua +++ b/init.lua @@ -68,6 +68,7 @@ dofile(modpath .. "/items.lua") dofile(modpath .. "/fuels.lua") dofile(modpath .. "/recipes.lua") dofile(modpath .. "/recipes_cook.lua") +dofile(modpath .. "/recipes_support.lua") -- ******************************************* -- ***** Technic-Support ***** diff --git a/recipes.lua b/recipes.lua index 8f29df0..b3fbe7c 100644 --- a/recipes.lua +++ b/recipes.lua @@ -263,104 +263,3 @@ minetest.register_craft({ {"group:food_rice", "cucina_vegana:bowl"}, } }) - - --- ******************************************* --- ** Recipe differences ** --- ******************************************* - -if(cucina_vegana_farming_default) then - - minetest.register_craft({ - output = "cucina_vegana:lettuce_oil", - recipe = { {"cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce"}, - {"cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce"}, - {"", "vessels:glass_bottle", ""} - } - }) - -else - - minetest.register_craft({ - output = "cucina_vegana:lettuce_oil", - recipe = { {"cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed"}, - {"cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed"}, - {"", "vessels:glass_bottle", ""} - } - }) - -end - --- ******************************************* --- ** Additional Recipes with other Mods ** --- ******************************************* - -if minetest.get_modpath("mobs") then - - minetest.register_craft({ - output = "mobs:meat_raw", - recipe = { - {"cucina_vegana:tofu", "cucina_vegana:tofu", "cucina_vegana:tofu"} - } - }) - - minetest.register_craft({ - output = "mobs:chicken_raw", - recipe = { - {"", "", "cucina_vegana:tofu"}, - {"", "cucina_vegana:tofu", ""}, - {"cucina_vegana:tofu", "", ""}, - } - }) - -end -- if mobs - -if minetest.get_modpath("animalmaterials") then - - minetest.register_craft({ - output = "animalmaterials:milk", - recipe = { - {"cucina_vegana:milk", "cucina_vegana:milk", "cucina_vegana:milk"}, - {"", "vessels:glass_bottle", ""} - }, - replacements = {{"cucina_vegana:milk", "vessels:drinking_glass"}} - }) - -end -- if animalmaterials - -if minetest.get_modpath("fishing") then - - minetest.register_craft({ - type = "shapeless", - output = "fishing:sushi", - recipe = {"fishing:fish_raw","group:food_rice","flowers:seaweed"}, - - replacements = {{"group:food_rice", "cucina_vegana:bowl"}} - }) - - minetest.register_craft({ - type = "shapeless", - output = "fishing:sushi", - recipe = {"fishing:fish_raw","group:food_rice","seaplants:kelpgreen"}, - replacements = {{"group:food_rice", "cucina_vegana:bowl"}} - - }) - - minetest.register_craft({ - type = "shapeless", - output = "fishing:sushi", - recipe = {"group:food_fish","group:food_rice","flowers:seaweed"}, - - replacements = {{"group:food_rice", "cucina_vegana:bowl"}} - }) - - minetest.register_craft({ - type = "shapeless", - output = "fishing:sushi", - recipe = {"group:food_fish","group:food_rice","seaplants:kelpgreen"}, - replacements = {{"group:food_rice", "cucina_vegana:bowl"}} - - }) - -end - diff --git a/recipes_support.lua b/recipes_support.lua new file mode 100644 index 0000000..013b6ff --- /dev/null +++ b/recipes_support.lua @@ -0,0 +1,99 @@ +-- ******************************************* +-- ** Recipe differences ** +-- ******************************************* + +if(cucina_vegana_farming_default) then + + minetest.register_craft({ + output = "cucina_vegana:lettuce_oil", + recipe = { {"cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce"}, + {"cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce", "cucina_vegana:seed_lettuce"}, + {"", "vessels:glass_bottle", ""} + } + }) + +else + + minetest.register_craft({ + output = "cucina_vegana:lettuce_oil", + recipe = { {"cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed"}, + {"cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed", "cucina_vegana:lettuce_seed"}, + {"", "vessels:glass_bottle", ""} + } + }) + +end + +-- ******************************************* +-- ** Additional Recipes with other Mods ** +-- ******************************************* + +if minetest.get_modpath("mobs") then + + minetest.register_craft({ + output = "mobs:meat_raw", + recipe = { + {"cucina_vegana:tofu", "cucina_vegana:tofu", "cucina_vegana:tofu"} + } + }) + + minetest.register_craft({ + output = "mobs:chicken_raw", + recipe = { + {"", "", "cucina_vegana:tofu"}, + {"", "cucina_vegana:tofu", ""}, + {"cucina_vegana:tofu", "", ""}, + } + }) + +end -- if mobs + +if minetest.get_modpath("animalmaterials") then + + minetest.register_craft({ + output = "animalmaterials:milk", + recipe = { + {"cucina_vegana:milk", "cucina_vegana:milk", "cucina_vegana:milk"}, + {"", "vessels:glass_bottle", ""} + }, + replacements = {{"cucina_vegana:milk", "vessels:drinking_glass"}} + }) + +end -- if animalmaterials + +if minetest.get_modpath("fishing") then + + minetest.register_craft({ + type = "shapeless", + output = "fishing:sushi", + recipe = {"fishing:fish_raw","group:food_rice","flowers:seaweed"}, + + replacements = {{"group:food_rice", "cucina_vegana:bowl"}} + }) + + minetest.register_craft({ + type = "shapeless", + output = "fishing:sushi", + recipe = {"fishing:fish_raw","group:food_rice","seaplants:kelpgreen"}, + replacements = {{"group:food_rice", "cucina_vegana:bowl"}} + + }) + + minetest.register_craft({ + type = "shapeless", + output = "fishing:sushi", + recipe = {"group:food_fish","group:food_rice","flowers:seaweed"}, + + replacements = {{"group:food_rice", "cucina_vegana:bowl"}} + }) + + minetest.register_craft({ + type = "shapeless", + output = "fishing:sushi", + recipe = {"group:food_fish","group:food_rice","seaplants:kelpgreen"}, + replacements = {{"group:food_rice", "cucina_vegana:bowl"}} + + }) + +end +