mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
added {eatable} group to food items and tooltip HP info
This commit is contained in:
@ -13,10 +13,10 @@ minetest.register_craftitem("farming:garlic_clove", {
|
||||
|
||||
-- garlic bulb
|
||||
minetest.register_craftitem("farming:garlic", {
|
||||
description = S("Garlic"),
|
||||
description = S("Garlic") .. " (♥1)",
|
||||
inventory_image = "crops_garlic.png",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food_garlic = 1, flammable = 3, compostability = 55}
|
||||
groups = {food_garlic = 1, flammable = 3, compostability = 55, eatable = 1}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
Reference in New Issue
Block a user