add {eatable} group to food items and update infotext
This commit is contained in:
parent
721390483d
commit
bfba3c1e3c
@ -78,10 +78,10 @@ nssm_craftitem("empty_evocation_bomb", "Empty Evocation Bomb")
|
||||
local function nssm_craftitem_eat(name, descr, gnam)
|
||||
|
||||
minetest.register_craftitem("nssm:" .. name, {
|
||||
description = S(descr),
|
||||
description = S(descr) .. " (♥" .. gnam .. ")",
|
||||
image = name .. ".png",
|
||||
on_use = minetest.item_eat(gnam),
|
||||
groups = {food_meat = 1, meat = 1, eatable = 1}
|
||||
groups = {food_meat = 1, meat = 1, eatable = gnam}
|
||||
})
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user