Add saturation value to food items
This commit is contained in:
parent
a300831614
commit
3291fcb054
14 changed files with 45 additions and 3 deletions
|
@ -125,6 +125,7 @@ minetest.register_craftitem("mcl_farming:beetroot_item", {
|
|||
on_place = minetest.item_eat(1),
|
||||
on_secondary_use = minetest.item_eat(1),
|
||||
groups = { food = 2, eatable = 1 },
|
||||
_mcl_saturation = 1.2,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:beetroot_soup", {
|
||||
|
@ -136,6 +137,7 @@ minetest.register_craftitem("mcl_farming:beetroot_soup", {
|
|||
on_place = minetest.item_eat(6, "mcl_core:bowl"),
|
||||
on_secondary_use = minetest.item_eat(6, "mcl_core:bowl"),
|
||||
groups = { food = 3, eatable = 6 },
|
||||
_mcl_saturation = 7.2,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -84,6 +84,7 @@ minetest.register_craftitem("mcl_farming:carrot_item", {
|
|||
_doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant the carrot. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it.",
|
||||
inventory_image = "farming_carrot.png",
|
||||
groups = { food = 2, eatable = 3 },
|
||||
_mcl_saturation = 3.6,
|
||||
on_secondary_use = minetest.item_eat(3),
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local new = mcl_farming:place_seed(itemstack, placer, pointed_thing, "mcl_farming:carrot_1")
|
||||
|
@ -102,6 +103,7 @@ minetest.register_craftitem("mcl_farming:carrot_item_gold", {
|
|||
on_place = minetest.item_eat(6),
|
||||
on_secondary_use = minetest.item_eat(6),
|
||||
groups = { brewitem = 1, food = 2, eatable = 6 },
|
||||
_mcl_saturation = 14.4,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -114,6 +114,7 @@ minetest.register_craftitem("mcl_farming:melon_item", {
|
|||
on_place = minetest.item_eat(2),
|
||||
on_secondary_use = minetest.item_eat(2),
|
||||
groups = { food = 2, eatable = 2 },
|
||||
_mcl_saturation = 1.2,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -85,6 +85,7 @@ minetest.register_craftitem("mcl_farming:potato_item", {
|
|||
_doc_items_usagehelp = "Hold it in your hand and rightclick to eat it. Place it on top of farmland to plant it. It grows in sunlight and grows faster on hydrated farmland. Rightclick an animal to feed it.",
|
||||
inventory_image = "farming_potato.png",
|
||||
groups = { food = 2, eatable = 1 },
|
||||
_mcl_saturation = 0.6,
|
||||
stack_max = 64,
|
||||
on_secondary_use = minetest.item_eat(1),
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
@ -105,6 +106,7 @@ minetest.register_craftitem("mcl_farming:potato_item_baked", {
|
|||
on_place = minetest.item_eat(6),
|
||||
on_secondary_use = minetest.item_eat(6),
|
||||
groups = { food = 2, eatable = 6 },
|
||||
_mcl_saturation = 6.0,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("mcl_farming:potato_item_poison", {
|
||||
|
@ -117,6 +119,7 @@ minetest.register_craftitem("mcl_farming:potato_item_poison", {
|
|||
on_place = minetest.item_eat(0),
|
||||
on_secondary_use = minetest.item_eat(0),
|
||||
groups = { food = 2, eatable = 0 },
|
||||
_mcl_saturation = 1.2,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -131,6 +131,7 @@ minetest.register_craftitem("mcl_farming:pumpkin_pie", {
|
|||
on_place = minetest.item_eat(8),
|
||||
on_secondary_use = minetest.item_eat(8),
|
||||
groups = { food = 2, eatable = 8 },
|
||||
_mcl_saturation = 4.8,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -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