forked from mtcontrib/mobs_animal
add {eatable} group to food items and update infotext
This commit is contained in:
@ -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({
|
||||
|
Reference in New Issue
Block a user