add {eatable} group to food items and update infotext

This commit is contained in:
tenplus1 2024-07-26 14:56:18 +01:00
parent 721390483d
commit bfba3c1e3c

View File

@ -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