add hunger_ng support

This commit is contained in:
FaceDeer
2020-11-30 19:42:00 -07:00
parent fc2bc52203
commit f5954dfdc5
4 changed files with 12 additions and 3 deletions

View File

@ -12,7 +12,8 @@ local register_cooking_recipes = function(def)
sound = def.simple.sound,
on_use = minetest.item_eat(4),
groups = {food = 4},
})
_hunger_ng = {satiates = 4},
})
minetest.register_craftitem("df_farming:"..item.."_medium_meal", {
description = def.medium.name,
_doc_items_longdesc = df_farming.doc.medium_meal_desc,
@ -21,6 +22,7 @@ local register_cooking_recipes = function(def)
sound = def.medium.sound,
on_use = minetest.item_eat(6),
groups = {food = 6},
_hunger_ng = {satiates = 6},
})
minetest.register_craftitem("df_farming:"..item.."_complex_meal", {
description = def.complex.name,
@ -30,8 +32,9 @@ local register_cooking_recipes = function(def)
sound = def.complex.sound,
on_use = minetest.item_eat(8),
groups = {food = 8},
_hunger_ng = {satiates = 8},
})
minetest.register_alias("dfcaverns:"..item.."_biscuit", "df_farming:"..item.."_simple_meal")
minetest.register_alias("dfcaverns:"..item.."_stew", "df_farming:"..item.."_medium_meal")
minetest.register_alias("dfcaverns:"..item.."_roast", "df_farming:"..item.."_complex_meal")
@ -59,7 +62,6 @@ local register_cooking_recipes = function(def)
})
end
--{
-- prefix =,
-- item =,