From 87316b50837e82d22a7cc21b5e583f47f00b1be5 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 29 May 2015 10:25:35 +0100 Subject: Code Tidy (thanks HybridDog) --- leaves.lua | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'leaves.lua') diff --git a/leaves.lua b/leaves.lua index c120d60..08a16b3 100644 --- a/leaves.lua +++ b/leaves.lua @@ -74,16 +74,11 @@ minetest.register_node("ethereal:redwood_leaves", { }) -- Default Apple Tree Leaves -minetest.register_node(":default:leaves", { - description = "Leaves", +minetest.override_item("default:leaves", { drawtype = leaftype, visual_scale = 1.2, - tiles = {"default_leaves.png"}, inventory_image = "default_leaves.png", - paramtype = "light", walkable = false, - waving = 1, - groups = {snappy=3, leafdecay=3, leaves=1, flammable=2}, drop = { max_items = 1, items = { @@ -91,8 +86,6 @@ minetest.register_node(":default:leaves", { { items = {"default:leaves"}} } }, - sounds = default.node_sound_leaves_defaults(), - after_place_node = default.after_place_leaves, }) -- Default Orange Tree Leaves @@ -118,16 +111,11 @@ minetest.register_node("ethereal:orange_leaves", { }) -- Default Jungle Tree Leaves -minetest.register_node(":default:jungleleaves", { - description = "Jungle Leaves", +minetest.override_item("default:jungleleaves", { drawtype = leaftype, visual_scale = 1.2, - tiles = {"default_jungleleaves.png"}, inventory_image = "default_jungleleaves.png", - paramtype = "light", walkable = false, - waving = 1, - groups = {snappy=3, leafdecay=3, leaves=1, flammable=2}, drop = { max_items = 1, items = { @@ -135,8 +123,6 @@ minetest.register_node(":default:jungleleaves", { { items = {"default:jungleleaves"}} } }, - sounds = default.node_sound_leaves_defaults(), - after_place_node = default.after_place_leaves, }) -- Default Banana Tree Leaves -- cgit v1.2.3