Ajout des mods nalc_bakedclay, nalc_nether et nalc_diet.

This commit is contained in:
sys4-fr
2018-09-30 12:07:04 +02:00
parent 9c26201bfc
commit e333fde4a8
6 changed files with 142 additions and 0 deletions

30
nalc_diet/init.lua Normal file
View File

@ -0,0 +1,30 @@
local function overwrite(name, hunger_change, replace_with_item, poisen, heal)
local tab = minetest.registered_items[name]
if not tab then
return
end
tab.on_use = diet.item_eat(hunger_change, replace_with_item, poisen, heal)
end
if minetest.get_modpath("farming") and farming.mod == "redo" then
-- Strawberries fix
overwrite("ethereal:strawberry", 1)
overwrite("farming_plus:strawberry_item", 1)
-- Banana
overwrite("ethereal:banana", 2)
overwrite("ethereal:orange", 4)
-- Support with farming_redo >= 1.29
if tonumber(farming.version) >= 1.29 then
overwrite("farming:chili_pepper", 2)
overwrite("farming:chili_bowl", 8)
overwrite("farming:porridge", 6)
end
end
if minetest.get_modpath("mtfoods") then
overwrite("mtfoods:boston_cream", 5)
end
minetest.log("action", "[nalc_diet] loaded.")