mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
tidy code
This commit is contained in:
@ -10,7 +10,7 @@ local S = farming.translate
|
||||
minetest.register_craftitem("farming:potato", {
|
||||
description = S("Potato"),
|
||||
inventory_image = "farming_potato.png",
|
||||
groups = {compostability = 48, seed = 2, food_potato = 1, flammable = 2},
|
||||
groups = {compostability = 48, seed = 2, food_potato = 1},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:potato_1")
|
||||
end,
|
||||
@ -32,8 +32,7 @@ farming.add_eatable("farming:potato", 1)
|
||||
minetest.register_craftitem("farming:baked_potato", {
|
||||
description = S("Baked Potato"),
|
||||
inventory_image = "farming_baked_potato.png",
|
||||
on_use = minetest.item_eat(6),
|
||||
groups = {flammable = 2}
|
||||
on_use = minetest.item_eat(6)
|
||||
})
|
||||
|
||||
farming.add_eatable("farming:baked_potato", 6)
|
||||
@ -49,8 +48,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:potato_salad", {
|
||||
description = S("Cucumber and Potato Salad"),
|
||||
inventory_image = "farming_potato_salad.png",
|
||||
on_use = minetest.item_eat(10, "farming:bowl"),
|
||||
groups = {flammable = 2}
|
||||
on_use = minetest.item_eat(10, "farming:bowl")
|
||||
})
|
||||
|
||||
farming.add_eatable("farming:potato_salad", 10)
|
||||
|
Reference in New Issue
Block a user