forked from mtcontrib/farming
add food_berry group
This commit is contained in:
parent
3dbc6bd141
commit
d7965c1784
@ -173,4 +173,4 @@ if minetest.get_modpath("bushes_classic") then
|
|||||||
minetest.register_alias("bushes:raspberry", "farming:raspberries")
|
minetest.register_alias("bushes:raspberry", "farming:raspberries")
|
||||||
end
|
end
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
@ -5,7 +5,7 @@ local S = farming.intllib
|
|||||||
minetest.register_craftitem("farming:blueberries", {
|
minetest.register_craftitem("farming:blueberries", {
|
||||||
description = S("Blueberries"),
|
description = S("Blueberries"),
|
||||||
inventory_image = "farming_blueberries.png",
|
inventory_image = "farming_blueberries.png",
|
||||||
groups = {food_blueberries = 1, flammable = 2},
|
groups = {food_blueberries = 1, food_berry = 1, flammable = 2},
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:blueberry_1")
|
return farming.place_seed(itemstack, placer, pointed_thing, "farming:blueberry_1")
|
||||||
end,
|
end,
|
||||||
|
@ -5,7 +5,7 @@ local S = farming.intllib
|
|||||||
minetest.register_craftitem("farming:raspberries", {
|
minetest.register_craftitem("farming:raspberries", {
|
||||||
description = S("Raspberries"),
|
description = S("Raspberries"),
|
||||||
inventory_image = "farming_raspberries.png",
|
inventory_image = "farming_raspberries.png",
|
||||||
groups = {food_raspberries = 1, flammable = 2},
|
groups = {food_raspberries = 1, food_berry = 1, flammable = 2},
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
return farming.place_seed(itemstack, placer, pointed_thing, "farming:raspberry_1")
|
return farming.place_seed(itemstack, placer, pointed_thing, "farming:raspberry_1")
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user