summaryrefslogtreecommitdiff
path: root/node_defs.lua
diff options
context:
space:
mode:
authorRogier <rogier777@gmail.com>2016-05-18 22:54:19 +0200
committerRogier <rogier777@gmail.com>2016-06-27 23:23:54 +0200
commitafab0692df2d99c36473568602d1cc4059aa2e65 (patch)
tree0da1e864c4dfad53e4f43dbe375cc342f51428c7 /node_defs.lua
parent9ced339ce5cbdc48a7d9417786585f6f9c968ce1 (diff)
Add date palm
Spawns in hot and dry desert, but requires water. This makes it a bit harder to find, but where found, it can be more abundant. If found in the middle of a desert, its presence indicates a water source below the surface. As an additional optional feature, dates (slowly) grow back after harvesting.
Diffstat (limited to 'node_defs.lua')
-rw-r--r--node_defs.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/node_defs.lua b/node_defs.lua
index 94b7ed0..791d339 100644
--- a/node_defs.lua
+++ b/node_defs.lua
@@ -9,6 +9,7 @@ moretrees.treelist = {
{"sequoia", "Giant Sequoia"},
{"birch", "Birch Tree"},
{"palm", "Palm Tree", "coconut", "Coconut", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 1.0 },
+ {"date_palm", "Date Palm Tree", "date_palm_fruit_trunk", "Date Palm Tree", {0, 0, 0, 0, 0, 0}, 0.0 },
{"spruce", "Spruce Tree", "spruce_cone", "Spruce Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
{"cedar", "Cedar Tree", "cedar_cone", "Cedar Cone", {-0.2, -0.5, -0.2, 0.2, 0, 0.2}, 0.8 },
{"willow", "Willow Tree"},
@@ -123,6 +124,8 @@ for i in ipairs(moretrees.treelist) do
if treename == "palm" then
droprarity = 20
decay = moretrees.palm_leafdecay_radius
+ elseif treename == "date_palm" then
+ decay = moretrees.palm_leafdecay_radius
end
local moretrees_leaves_inventory_image = nil
@@ -430,3 +433,5 @@ minetest.register_alias("moretrees:pine_sapling", "moretrees:cedar_sapling")
minetest.register_alias("moretrees:pine_leaves", "moretrees:cedar_leaves")
minetest.register_alias("moretrees:pine_cone", "moretrees:cedar_cone")
minetest.register_alias("moretrees:pine_nuts", "moretrees:cedar_nuts")
+
+minetest.register_alias("moretrees:dates", "moretrees:dates_f4")