From 77198100f3bfa57de2d616bee3d2dfd3a48c02a9 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 12 Mar 2018 16:45:15 +0000 Subject: added food groups to make items more compatible with other mods --- pumpkin.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pumpkin.lua') diff --git a/pumpkin.lua b/pumpkin.lua index 8bff778..488767f 100644 --- a/pumpkin.lua +++ b/pumpkin.lua @@ -14,7 +14,7 @@ minetest.register_node("farming:pumpkin", { "farming_pumpkin_side.png" }, groups = { - choppy = 1, oddly_breakable_by_hand = 1, + food_pumpkin = 1, choppy = 1, oddly_breakable_by_hand = 1, flammable = 2, plant = 1 }, drop = { @@ -29,6 +29,7 @@ minetest.register_node("farming:pumpkin", { minetest.register_craftitem("farming:pumpkin_slice", { description = S("Pumpkin Slice"), inventory_image = "farming_pumpkin_slice.png", + groups = {food_pumpkin_slice = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "farming:pumpkin_1") end, -- cgit v1.2.3