mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-06-29 23:01:00 +02:00
tidy code
This commit is contained in:
@ -12,7 +12,7 @@ minetest.register_craftitem("farming:corn", {
|
||||
description = S("Corn"),
|
||||
inventory_image = "farming_corn.png",
|
||||
groups = {
|
||||
compostability = 45, seed = 2, food_corn = 1, flammable = 2
|
||||
compostability = 45, seed = 2, food_corn = 1
|
||||
},
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:corn_1")
|
||||
@ -26,7 +26,7 @@ farming.add_eatable("farming:corn", 3)
|
||||
minetest.register_craftitem("farming:corn_cob", {
|
||||
description = S("Corn on the Cob"),
|
||||
inventory_image = "farming_corn_cob.png",
|
||||
groups = {compostability = 65, food_corn_cooked = 1, flammable = 2},
|
||||
groups = {compostability = 65, food_corn_cooked = 1},
|
||||
on_use = minetest.item_eat(5)
|
||||
})
|
||||
|
||||
@ -43,7 +43,7 @@ minetest.register_craft({
|
||||
minetest.register_craftitem("farming:popcorn", {
|
||||
description = S("Popcorn"),
|
||||
inventory_image = "farming_popcorn.png",
|
||||
groups = {compostability = 55, food_popcorn = 1, flammable = 2},
|
||||
groups = {compostability = 55, food_popcorn = 1},
|
||||
on_use = minetest.item_eat(4)
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user