mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-07-16 07:20:27 +02:00
add hunger_ng support
This commit is contained in:
@ -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 =,
|
||||
|
Reference in New Issue
Block a user