1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-07-03 00:30:39 +02:00

added {eatable} group to food items and tooltip HP info

This commit is contained in:
tenplus1
2024-07-26 13:56:45 +01:00
parent 2f7031e717
commit e2ec7d707e
41 changed files with 240 additions and 184 deletions

View File

@ -3,9 +3,11 @@ local S = farming.translate
-- eggplant
minetest.register_craftitem("farming:eggplant", {
description = S("Eggplant"),
description = S("Eggplant") .. " (♥3)",
inventory_image = "farming_eggplant.png",
groups = {compostability = 48, seed = 2, food_eggplant = 1, flammable = 2},
groups = {
compostability = 48, seed = 2, food_eggplant = 1, flammable = 2, eatable = 3
},
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:eggplant_1")
end,