mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-12-24 17:40:19 +01:00
Minor tuning for pies vs. fruits
Raw fruit or sugar heals 1/2 heart. A raw pie heals 2 hearts. A cooked pie heals 3 hearts or it can be split into 6 slices. A slice of pie heals 1/2 heart. A basket of pies heals 9 hearts (and sadly, consumes the basket).
This commit is contained in:
parent
8238d0d9bf
commit
ac218e55b7
@ -29,7 +29,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
minetest.register_craftitem(":bushes:"..berry.."_pie_raw", {
|
||||
description = "Raw "..desc.." pie",
|
||||
inventory_image = "bushes_"..berry.."_pie_raw.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
|
||||
if berry ~= "mixed_berry" then
|
||||
@ -37,7 +37,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
description = desc,
|
||||
inventory_image = "bushes_"..berry..".png",
|
||||
groups = {berry = 1},
|
||||
on_use = minetest.item_eat(3),
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -54,7 +54,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
minetest.register_craftitem(":bushes:"..berry.."_pie_cooked", {
|
||||
description = "Cooked "..desc.." pie",
|
||||
inventory_image = "bushes_"..berry.."_pie_cooked.png",
|
||||
on_use = minetest.item_eat(4),
|
||||
on_use = minetest.item_eat(6),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -73,7 +73,7 @@ for i, berry in ipairs(bushes_classic.bushes) do
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "bushes:"..berry.."_pie_slice 4",
|
||||
output = "bushes:"..berry.."_pie_slice 6",
|
||||
recipe = {
|
||||
{ "bushes:"..berry.."_pie_cooked" },
|
||||
},
|
||||
|
@ -147,7 +147,7 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
|
||||
"bushes_basket_bottom.png",
|
||||
"bushes_basket_side.png"
|
||||
},
|
||||
on_use = minetest.item_eat(15),
|
||||
on_use = minetest.item_eat(18),
|
||||
groups = { dig_immediate = 3 },
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user