diff --git a/mods/farming/init.lua b/mods/farming/init.lua index f942cfb..b689c90 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -154,14 +154,25 @@ local box = { minetest.override_item("default:apple",{ drawtype = "nodebox", paramtype = "light", - node_box = box, - selection_box = box, tiles = { -- +Y, -Y, +X, -X, +Z, -Z - "apple_bottom.png^apple_top_overlay.png", - "apple_bottom.png", - "apple_side.png", - "apple_side.png", - "apple_side.png", - "apple_side.png", + "apple_bottom.png^apple_top_overlay.png", + "apple_bottom.png", + "apple_side.png", + "apple_side.png", + "apple_side.png", + "apple_side.png", }, + node_box = box, + inventory_image = "default_apple.png", + sunlight_propagates = true, + walkable = false, + is_ground_content = false, + selection_box = box, + groups = {fleshy = 3, dig_immediate = 3, flammable = 2, leafdecay = 3, leafdecay_drop = 1}, + on_use = minetest.item_eat(2), + sounds = default.node_sound_leaves_defaults(), + after_place_node = function(pos, placer, itemstack) + minetest.set_node(pos, {name = "default:apple", param2 = 1}) + end, }) +