Add saturation value to food items
This commit is contained in:
parent
a300831614
commit
3291fcb054
14 changed files with 45 additions and 3 deletions
|
@ -112,6 +112,7 @@ minetest.register_craftitem("mcl_farming:cookie", {
|
|||
_doc_items_longdesc = "This is a food item which can be eaten for 2 hunger points.",
|
||||
inventory_image = "farming_cookie.png",
|
||||
groups = {food=2, eatable=2},
|
||||
_mcl_saturation = 0.4,
|
||||
on_place = minetest.item_eat(2),
|
||||
on_secondary_use = minetest.item_eat(2),
|
||||
})
|
||||
|
@ -122,6 +123,7 @@ minetest.register_craftitem("mcl_farming:bread", {
|
|||
_doc_items_longdesc = "This is a food item which can be eaten for 5 hunger points.",
|
||||
inventory_image = "farming_bread.png",
|
||||
groups = {food=2, eatable=5},
|
||||
_mcl_saturation = 6.0,
|
||||
on_place = minetest.item_eat(5),
|
||||
on_secondary_use = minetest.item_eat(5),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue