diff --git a/desserts.lua b/desserts.lua index bc79f28..f4c73ed 100644 --- a/desserts.lua +++ b/desserts.lua @@ -97,6 +97,7 @@ minetest.register_craftitem("mtfoods:strawberry_shortcake", { --}) -- Crafting -- +local ing = mtfoods.ingredients minetest.register_craft({ output = "mtfoods:dandelion_milk 2", diff --git a/drinks.lua b/drinks.lua index 29d4ec9..cdb6373 100644 --- a/drinks.lua +++ b/drinks.lua @@ -1,3 +1,5 @@ +local ing = mtfoods.ingredients + -- Flute Glass -- minetest.register_craftitem("mtfoods:glass_flute", { description = "Glass Flute", diff --git a/foods.lua b/foods.lua index 04a0d07..fbfdc42 100644 --- a/foods.lua +++ b/foods.lua @@ -1,6 +1,7 @@ -- Foods -- --MLT-- +local ing = mtfoods.ingredients minetest.register_craftitem( "mtfoods:mlt_burger", { description = "MLT (Mutton, Lettuce, Tomato)", diff --git a/init.lua b/init.lua index de5204a..966bc5b 100644 --- a/init.lua +++ b/init.lua @@ -1,13 +1,14 @@ --MTFoods-- --By: Philipbenr-- --Licence: GPLv3-- +mtfoods = {} local orange_ing = "farming_plus:orange" if minetest.get_modpath("ethereal") then orange_ing = "ethereal:orange" end -ing = { +mtfoods.ingredients = { orange = orange_ing, apple = "default:apple", meat = "mobs:meat", @@ -26,7 +27,7 @@ ing = { -- Add support for the food mod's ingredient list if minetest.get_modpath("food") then - ing = { + mtfoods.ingredients = { orange = "group:food_orange", apple = "default:apple", meat = "group:food_meat",