diff options
author | sys4-fr <sys4@free.fr> | 2016-07-29 16:49:46 +0200 |
---|---|---|
committer | sys4-fr <sys4@free.fr> | 2016-07-29 16:49:46 +0200 |
commit | 93ea79653f416ada90159f90431ab36dc0d55a01 (patch) | |
tree | 634409fda343350fe3acdb6ff4c1cfcc5e12bb2d | |
parent | 9eed044387103efd294d542e8fdcc07d2732fe1c (diff) |
Update support of farming redo and mobs redo
Add support of ethereal
-rw-r--r-- | food_basic/init.lua | 6 | ||||
-rw-r--r-- | food_basic/support.lua | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/food_basic/init.lua b/food_basic/init.lua index 9f035d4..f00048d 100644 --- a/food_basic/init.lua +++ b/food_basic/init.lua @@ -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] diff --git a/food_basic/support.lua b/food_basic/support.lua index 4f4366c..13019a2 100644 --- a/food_basic/support.lua +++ b/food_basic/support.lua @@ -16,7 +16,13 @@ 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("strawberry", "ethereal:strawberry") +food.support("orange", { + "farming_plus:orange_item", + "ethereal:orange" +}) +food.disable_if("ethereal", "orange") + food.support("potato", { "docfarming:potato", "veggies:potato", @@ -68,6 +74,8 @@ if farming and farming.mod == "redo" then food.support("dark_chocolate", "farming:chocolate_dark") food.support("sugar", "farming:sugar") food.support("cup", "farming:drinking_cup") + food.support("rhubarb", "farming:rhubarb") + food.support("blueberry", "farming:blueberries") food.disable_if("farming", "baked_potato") else food.support("wheat", "farming:wheat") @@ -81,3 +89,6 @@ if minetest.get_modpath("mtfoods") then food.support("rhubarb", "farming_plus:rhubarb_item") end +if minetest.get_modpath("mobs") and mobs.mod == "redo" then + food.support("chicken", "mobs:chicken_cooked") +end |