mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2025-07-23 18:40:25 +02:00
use helper function for {eatable}
This commit is contained in:
6
rat.lua
6
rat.lua
@ -92,12 +92,14 @@ mobs:alias_mob("mobs:rat", "mobs_animal:rat") -- compatibility
|
||||
|
||||
-- cooked rat, yummy!
|
||||
minetest.register_craftitem(":mobs:rat_cooked", {
|
||||
description = S("Cooked Rat") .. " (♥3)",
|
||||
description = S("Cooked Rat"),
|
||||
inventory_image = "mobs_cooked_rat.png",
|
||||
on_use = minetest.item_eat(3),
|
||||
groups = {food_rat = 1, flammable = 2, eatable = 3}
|
||||
groups = {food_rat = 1}
|
||||
})
|
||||
|
||||
mobs.add_eatable("mobs:rat_cooked", 3)
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mobs:rat_cooked",
|
||||
|
Reference in New Issue
Block a user