From 8d455da48ac1706b446b5892b8fcbea0c3d1f484 Mon Sep 17 00:00:00 2001 From: Le_Docteur Date: Sun, 26 Jul 2015 15:22:40 +0200 Subject: [PATCH] Make default:mg_cherry_sapling visible and breakable. Drops default:cherry_sapling. --- minetestforfun_game/mods/default/trees.lua | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/minetestforfun_game/mods/default/trees.lua b/minetestforfun_game/mods/default/trees.lua index 87c53f96..2119385d 100755 --- a/minetestforfun_game/mods/default/trees.lua +++ b/minetestforfun_game/mods/default/trees.lua @@ -346,10 +346,20 @@ end minetest.register_node("default:mg_cherry_sapling", { description = "Impossible to get node.", - drawtype = "airlike", + visual_scale = 1.0, + inventory_image = "default_cherry_sapling.png", + wield_image = "default_cherry_sapling.png", + drawtype = "plantlike", paramtype = "light", - tiles = {"xfences_space.png"}, - groups = {not_in_creative_inventory=1}, + tiles = {"default_cherry_sapling.png"}, + walkable = false, + selection_box = { + type = "fixed", + fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3} + }, + groups = {snappy=2, dig_immediate=3, not_in_creative_inventory=1, attached_node=1}, + drop = "default:cherry_sapling", + sounds = default.node_sound_leaves_defaults(), }) local c_mg_cherry_sapling = minetest.get_content_id("default:mg_cherry_sapling")