add {eatable} group to food items and update infotext

This commit is contained in:
tenplus1
2024-07-26 14:49:21 +01:00
parent 3260afbad4
commit 9cd2974533
7 changed files with 30 additions and 30 deletions

View File

@ -104,18 +104,18 @@ mobs:alias_mob("mobs:pumba", "mobs_animal:pumba") -- compatibility
-- raw porkchop
minetest.register_craftitem(":mobs:pork_raw", {
description = S("Raw Porkchop"),
description = S("Raw Porkchop") .. " (♥4)",
inventory_image = "mobs_pork_raw.png",
on_use = minetest.item_eat(4),
groups = {food_meat_raw = 1, food_pork_raw = 1, flammable = 2}
groups = {food_meat_raw = 1, food_pork_raw = 1, flammable = 2, eatable = 4}
})
-- cooked porkchop
minetest.register_craftitem(":mobs:pork_cooked", {
description = S("Cooked Porkchop"),
description = S("Cooked Porkchop") .. " (♥8)",
inventory_image = "mobs_pork_cooked.png",
on_use = minetest.item_eat(8),
groups = {food_meat = 1, food_pork = 1, flammable = 2}
groups = {food_meat = 1, food_pork = 1, flammable = 2, eatable = 8}
})
minetest.register_craft({