1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 14:50:52 +02:00

add helper function to add {eatable}

This commit is contained in:
tenplus1
2024-07-26 16:30:53 +01:00
parent 648bae7517
commit 75e3f9fb42
41 changed files with 387 additions and 205 deletions

View File

@ -46,12 +46,14 @@ minetest.register_craft({
-- rice flour and bread
minetest.register_craftitem("farming:rice_bread", {
description = S("Rice Bread") .. " (♥5)",
description = S("Rice Bread"),
inventory_image = "farming_rice_bread.png",
on_use = minetest.item_eat(5),
groups = {food_rice_bread = 1, flammable = 2, compostability = 65, eatable = 5}
groups = {food_rice_bread = 1, flammable = 2, compostability = 65}
})
farming.add_eatable("farming:rice_bread", 5)
minetest.register_craftitem("farming:rice_flour", {
description = S("Rice Flour"),
inventory_image = "farming_rice_flour.png",