mirror of
https://github.com/Philipbenr/mtfoods.git
synced 2025-01-24 15:30:19 +01:00
replace global "ing" by more meaningful global mtfoods.ingredients variable
This commit is contained in:
parent
7893936328
commit
ae3eb42c9b
@ -97,6 +97,7 @@ minetest.register_craftitem("mtfoods:strawberry_shortcake", {
|
|||||||
--})
|
--})
|
||||||
|
|
||||||
-- Crafting --
|
-- Crafting --
|
||||||
|
local ing = mtfoods.ingredients
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "mtfoods:dandelion_milk 2",
|
output = "mtfoods:dandelion_milk 2",
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
local ing = mtfoods.ingredients
|
||||||
|
|
||||||
-- Flute Glass --
|
-- Flute Glass --
|
||||||
minetest.register_craftitem("mtfoods:glass_flute", {
|
minetest.register_craftitem("mtfoods:glass_flute", {
|
||||||
description = "Glass Flute",
|
description = "Glass Flute",
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
-- Foods --
|
-- Foods --
|
||||||
|
|
||||||
--MLT--
|
--MLT--
|
||||||
|
local ing = mtfoods.ingredients
|
||||||
|
|
||||||
minetest.register_craftitem( "mtfoods:mlt_burger", {
|
minetest.register_craftitem( "mtfoods:mlt_burger", {
|
||||||
description = "MLT (Mutton, Lettuce, Tomato)",
|
description = "MLT (Mutton, Lettuce, Tomato)",
|
||||||
|
5
init.lua
5
init.lua
@ -1,13 +1,14 @@
|
|||||||
--MTFoods--
|
--MTFoods--
|
||||||
--By: Philipbenr--
|
--By: Philipbenr--
|
||||||
--Licence: GPLv3--
|
--Licence: GPLv3--
|
||||||
|
mtfoods = {}
|
||||||
|
|
||||||
local orange_ing = "farming_plus:orange"
|
local orange_ing = "farming_plus:orange"
|
||||||
if minetest.get_modpath("ethereal") then
|
if minetest.get_modpath("ethereal") then
|
||||||
orange_ing = "ethereal:orange"
|
orange_ing = "ethereal:orange"
|
||||||
end
|
end
|
||||||
|
|
||||||
ing = {
|
mtfoods.ingredients = {
|
||||||
orange = orange_ing,
|
orange = orange_ing,
|
||||||
apple = "default:apple",
|
apple = "default:apple",
|
||||||
meat = "mobs:meat",
|
meat = "mobs:meat",
|
||||||
@ -26,7 +27,7 @@ ing = {
|
|||||||
|
|
||||||
-- Add support for the food mod's ingredient list
|
-- Add support for the food mod's ingredient list
|
||||||
if minetest.get_modpath("food") then
|
if minetest.get_modpath("food") then
|
||||||
ing = {
|
mtfoods.ingredients = {
|
||||||
orange = "group:food_orange",
|
orange = "group:food_orange",
|
||||||
apple = "default:apple",
|
apple = "default:apple",
|
||||||
meat = "group:food_meat",
|
meat = "group:food_meat",
|
||||||
|
Loading…
Reference in New Issue
Block a user