forked from mtcontrib/mobs_animal
add {eatable} group to food items and update infotext
This commit is contained in:
4
rat.lua
4
rat.lua
@ -92,10 +92,10 @@ mobs:alias_mob("mobs:rat", "mobs_animal:rat") -- compatibility
|
||||
|
||||
-- cooked rat, yummy!
|
||||
minetest.register_craftitem(":mobs:rat_cooked", {
|
||||
description = S("Cooked Rat"),
|
||||
description = S("Cooked Rat") .. " (♥3)",
|
||||
inventory_image = "mobs_cooked_rat.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
groups = {food_rat = 1, flammable = 2}
|
||||
groups = {food_rat = 1, flammable = 2, eatable = 3}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
Reference in New Issue
Block a user