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

@ -515,18 +515,18 @@ mobs:alias_mob("mobs:sheep", "mobs_animal:sheep_white") -- compatibility
-- raw mutton
minetest.register_craftitem(":mobs:mutton_raw", {
description = S("Raw Mutton"),
description = S("Raw Mutton") .. " (♥2)",
inventory_image = "mobs_mutton_raw.png",
on_use = minetest.item_eat(2),
groups = {food_meat_raw = 1, food_mutton_raw = 1, flammable = 2}
groups = {food_meat_raw = 1, food_mutton_raw = 1, flammable = 2, eatable = 2}
})
-- cooked mutton
minetest.register_craftitem(":mobs:mutton_cooked", {
description = S("Cooked Mutton"),
description = S("Cooked Mutton") .. " (♥6)",
inventory_image = "mobs_mutton_cooked.png",
on_use = minetest.item_eat(6),
groups = {food_meat = 1, food_mutton = 1, flammable = 2}
groups = {food_meat = 1, food_mutton = 1, flammable = 2, eatable = 6}
})
minetest.register_craft({