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 --
|
||||
local ing = mtfoods.ingredients
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mtfoods:dandelion_milk 2",
|
||||
|
@ -1,3 +1,5 @@
|
||||
local ing = mtfoods.ingredients
|
||||
|
||||
-- Flute Glass --
|
||||
minetest.register_craftitem("mtfoods:glass_flute", {
|
||||
description = "Glass Flute",
|
||||
|
@ -1,6 +1,7 @@
|
||||
-- Foods --
|
||||
|
||||
--MLT--
|
||||
local ing = mtfoods.ingredients
|
||||
|
||||
minetest.register_craftitem( "mtfoods:mlt_burger", {
|
||||
description = "MLT (Mutton, Lettuce, Tomato)",
|
||||
|
5
init.lua
5
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",
|
||||
|
Loading…
Reference in New Issue
Block a user