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:
@ -3,10 +3,11 @@ local S = farming.translate
|
||||
|
||||
-- Strawberry (can also be planted as seed)
|
||||
minetest.register_craftitem(":ethereal:strawberry", {
|
||||
description = S("Strawberry"),
|
||||
description = S("Strawberry") .. " (♥1)",
|
||||
inventory_image = "ethereal_strawberry.png",
|
||||
groups = {
|
||||
compostability = 48, seed = 2, food_strawberry = 1, food_berry = 1, flammable = 2
|
||||
compostability = 48, seed = 2, food_strawberry = 1, food_berry = 1,
|
||||
flammable = 2, eatable = 1
|
||||
},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1")
|
||||
|
Reference in New Issue
Block a user