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

tidy code

This commit is contained in:
tenplus1
2024-07-27 08:23:46 +01:00
parent 75e3f9fb42
commit b61998217d
39 changed files with 59 additions and 62 deletions

View File

@ -10,7 +10,7 @@ local S = farming.translate
minetest.register_craftitem("farming:tomato", {
description = S("Tomato"),
inventory_image = "farming_tomato.png",
groups = {compostability = 45, seed = 2, food_tomato = 1, flammable = 2},
groups = {compostability = 45, seed = 2, food_tomato = 1},
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "farming:tomato_1")
end,
@ -23,7 +23,7 @@ farming.add_eatable("farming:tomato", 4)
minetest.register_craftitem("farming:tomato_soup", {
description = S("Tomato Soup"),
inventory_image = "farming_tomato_soup.png",
groups = {flammable = 2, compostability = 65},
groups = {compostability = 65},
on_use = minetest.item_eat(8, "farming:bowl")
})