summaryrefslogtreecommitdiff
path: root/leaves.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-07-25 16:45:29 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-07-25 16:45:29 +0100
commit170b62ecdeaae56c2c612f534d5c99593ccb10b1 (patch)
treee496d78772dc7ef061dd6b7c7980aff4443cca28 /leaves.lua
parentf37b81262aaa40445abddc8aa0a17f4801c9d68d (diff)
Tweaked and Tidied code
Diffstat (limited to 'leaves.lua')
-rw-r--r--leaves.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/leaves.lua b/leaves.lua
index 5ddc746..2b32c6d 100644
--- a/leaves.lua
+++ b/leaves.lua
@@ -32,9 +32,19 @@ minetest.register_node("ethereal:acacia_leaves", {
else
minetest.override_item("default:acacia_leaves", {
drawtype = leaftype,
+ tiles = {"moretrees_acacia_leaves.png"},
+ inventory_image = "moretrees_acacia_leaves.png",
visual_scale = 1.2,
+ walkable = false,
+ drop = {
+ max_items = 1,
+ items = {
+ {items = {"ethereal:acacia_sapling"}, rarity = 20},
+ {items = {"ethereal:acacia_leaves"}}
+ }
+ },
})
-print ("dont need ethereal's acacia leaves")
+minetest.register_alias("ethereal:acacia_leaves", "default:acacia_leaves")
end
-- Willow Twig
@@ -208,6 +218,7 @@ minetest.override_item("default:pine_needles", {
visual_scale = 1.2,
tiles = {"pine_leaves.png"},
inventory_image = "pine_leaves.png",
+ walkable = false,
drop = {
max_items = 1,
items = {