forked from mtcontrib/food
Merge pull request #29 from sys4-fr/master
Multiple improvements and add new supported mods
This commit is contained in:
commit
54e7fa3b81
@ -98,7 +98,7 @@ function minetest.register_node(name, def)
|
||||
end
|
||||
|
||||
function food.strip_name(name)
|
||||
res = name:gsub('%"', '')
|
||||
local res = name:gsub('%"', '')
|
||||
if res:sub(1, 1) == ":" then
|
||||
res = res:sub(2, #res)
|
||||
--table.concat{res:sub(1, 1-1), "", res:sub(1+1)}
|
||||
|
@ -1,8 +1,10 @@
|
||||
food
|
||||
animalmaterials?
|
||||
bushes?
|
||||
bushes_classic?
|
||||
default?
|
||||
docfarming?
|
||||
ethereal?
|
||||
farming?
|
||||
farming_plus?
|
||||
intllib?
|
||||
@ -11,6 +13,7 @@ jkfarming?
|
||||
my_mobs?
|
||||
mobs?
|
||||
mobfcooking?
|
||||
mtfoods?
|
||||
plantlib?
|
||||
veggies?
|
||||
vessels?
|
||||
|
@ -95,9 +95,13 @@ food.module("pasta_bake", function()
|
||||
end)
|
||||
|
||||
-- Register Soups
|
||||
local chicken = "meat"
|
||||
if minetest.get_modpath("mobs") and mobs.mod == "redo" then
|
||||
chicken = "chicken"
|
||||
end
|
||||
local soups = {
|
||||
{"tomato", "tomato"},
|
||||
{"chicken", "meat"}
|
||||
{"chicken", chicken}
|
||||
}
|
||||
for i=1, #soups do
|
||||
local flav = soups[i]
|
||||
|
@ -16,7 +16,12 @@ food.support("cocoa", "farming_plus:cocoa_bean")
|
||||
food.support("cup", "vessels:drinking_glass")
|
||||
food.support("cactus", "default:cactus")
|
||||
food.support("apple", "default:apple")
|
||||
food.support("orange", "farming_plus:orange_item")
|
||||
food.support("orange", {
|
||||
"farming_plus:orange_item",
|
||||
"ethereal:orange"
|
||||
})
|
||||
food.disable_if("ethereal", "orange")
|
||||
|
||||
food.support("potato", {
|
||||
"docfarming:potato",
|
||||
"veggies:potato",
|
||||
@ -36,7 +41,8 @@ food.support("milk", {
|
||||
"animalmaterials:milk",
|
||||
"my_mobs:milk_glass_cup",
|
||||
"jkanimals:bucket_milk",
|
||||
"mobs:bucket_milk"
|
||||
"mobs:bucket_milk",
|
||||
"mtfoods:dandelion_milk"
|
||||
})
|
||||
food.support("egg", {
|
||||
"animalmaterials:egg",
|
||||
@ -55,7 +61,8 @@ food.support("meat", {
|
||||
})
|
||||
food.support("sugar", {
|
||||
"jkfarming:sugar",
|
||||
"bushes:sugar"
|
||||
"bushes:sugar",
|
||||
"mtfoods:sugar"
|
||||
})
|
||||
|
||||
if farming and farming.mod == "redo" then
|
||||
@ -74,10 +81,6 @@ else
|
||||
food.support("flour", "farming:flour")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("mtfoods") then
|
||||
food.support("strawberry", "farming_plus:strawberry_item")
|
||||
food.support("strawberry", "plantlib:strawberry")
|
||||
food.support("strawberry", "bushes:strawberry")
|
||||
food.support("rhubarb", "farming_plus:rhubarb_item")
|
||||
if minetest.get_modpath("mobs") and mobs.mod == "redo" then
|
||||
food.support("chicken", "mobs:chicken_cooked")
|
||||
end
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 250 B |
Loading…
Reference in New Issue
Block a user