summaryrefslogtreecommitdiff
path: root/tree_models.lua
diff options
context:
space:
mode:
authorroot <root@linuxworks.belug.de>2016-08-27 10:16:44 +0200
committerroot <root@linuxworks.belug.de>2016-08-27 10:16:44 +0200
commit17b386ec9de0a8e0143a99046bfd5ac537cfef62 (patch)
tree6ae7e463e6be408f9b7551aca54f77bb0f9c1710 /tree_models.lua
parent7663d6a1670fcfc624e57cad29368e48f5434d59 (diff)
parent471a11f92dcdf9f78ce25268fbcaaa627907b257 (diff)
Merge branch 'master' of https://github.com/minetest-mods/moretrees
Diffstat (limited to 'tree_models.lua')
-rw-r--r--tree_models.lua73
1 files changed, 67 insertions, 6 deletions
diff --git a/tree_models.lua b/tree_models.lua
index 3443057..9372fe9 100644
--- a/tree_models.lua
+++ b/tree_models.lua
@@ -43,6 +43,37 @@ moretrees.oak_model={
fruit_chance=3,
}
+moretrees.poplar_model={
+ axiom="TTTaaBCCCCCCCCCCCcccBBB[[f]&&G++f++Gf++Gf++Gf++G--]G[[f]&&G++f++Gf++Gf++Gf++G--]Gff",
+ rules_a="T",
+ rules_b="[[T]&&G++f++ff++ff++ff++f--]G",
+ rules_c="[[T]&&G++f++ff++ff++ff++f--G++[d]G[d]G++G[d]G[d]G[d]G++G[d]G[d]G[d]G++G[d]G[d]G[d]G++G[d]G]G",
+ rules_d="f",
+ trunk="air",
+ trunk="moretrees:poplar_trunk",
+ leaves="moretrees:poplar_leaves",
+ angle=45,
+ iterations=0,
+ random_level=0,
+ trunk_type="single",
+ thin_branches=false,
+}
+
+moretrees.poplar_small_model={
+ axiom="TT[T]BCCCCccBBff",
+ rules_a="T",
+ rules_b="[[f]&&G++f++Gf++Gf++Gf++G--]G",
+ rules_c="[[T]&&G++f++[d]Gf++[d]Gf++[d]Gf++[d]G--]G",
+ rules_d="f",
+ trunk="moretrees:poplar_trunk",
+ leaves="moretrees:poplar_leaves",
+ angle=45,
+ iterations=0,
+ random_level=0,
+ trunk_type="single",
+ thin_branches=false,
+}
+
moretrees.sequoia_model={
axiom="FFFFFFFFFFddccA///cccFddcFA///ddFcFA/cFFddFcdBddd/A/ccdcddd/ccAddddcFBcccAccFdFcFBcccc/BFdFFcFFdcccc/B",
rules_a="[&&&GGF[++^FFdd][--&Fddd]//Fdd[+^Fd][--&Fdd]]////[&&&GGF[++^FFdd][--&Fddd]//Fdd[+^Fd][--&Fdd]]////[&&&GGF[++^FFdd][--&Fddd]//Fdd[+^Fd][--&Fdd]]",
@@ -88,8 +119,13 @@ moretrees.birch_model2={
thin_branches=true
}
+-- Coconuts can't be generated as fruit, because there is no support for the
+-- special fruit trunks that allow coconuts to regrow at the correct position
+-- in the tree.
+-- So, a placeholder fruit trunk is spawned. An ABM will convert it to the final
+-- fruit trunk, and generate the actual coconuts.
moretrees.palm_model={
- axiom="FFcccccc&FFFFFddd[^&&&GR][^///&&&GR][^//////&&&GR][^***&&&GR]FA//A//A//A//A//A",
+ axiom="FFcccccc&FFFFFdddRA//A//A//A//A//A",
rules_a="[&fb&bbb[++f--&ffff&ff][--f++&ffff&ff]&ffff&bbbb&b]",
rules_b="f",
rules_c="/",
@@ -101,7 +137,32 @@ moretrees.palm_model={
random_level=0,
trunk_type="single",
thin_branches=true,
- fruit="moretrees:coconut",
+ fruit="moretrees:palm_fruit_trunk_gen",
+ fruit_chance=0
+}
+
+-- Dates can't be generated as fruit, because there is no support for the
+-- special (male and female) fruit trunks that allow dates to regrow at the
+-- correct position in the tree.
+-- So, a generic fruit trunk is spawned. An ABM will convert it to a male
+-- or female fruit trunk, and generate the actual dates.
+moretrees.date_palm_model={
+ axiom="TTTTddddddddddccccccccccRT[TGGGGT]"..
+ "ccccc[&&a]ccccc[&&a]ccccc[&&a]ccccc[&&a]ccccc[&&a]ccccc[&&a]"..
+ "GGccccc[&a]ccccc[&a]ccccc[&a]ccccc[&a]ccccc[&a]ccccc[&a]"..
+ "GGccccc[a]ccccc[a]ccccc[a]ccccc[a]ccccc[a]ccccc[a]",
+ rules_a="Gffb&bbb[++f--&ffff&ff][--f++&ffff&ff]&ff&ff&bb&bb&bb",
+ rules_b="f",
+ rules_c="/",
+ rules_d="F",
+ trunk="moretrees:date_palm_trunk",
+ leaves="moretrees:date_palm_leaves",
+ angle=18,
+ iterations=1,
+ random_level=0,
+ trunk_type="single",
+ thin_branches=false,
+ fruit="moretrees:date_palm_fruit_trunk",
fruit_chance=0
}
@@ -138,20 +199,20 @@ moretrees.spruce_model2={
fruit_chance=8
}
-moretrees.pine_model={
+moretrees.cedar_model={
axiom="FFFFFcccdddB///cFdFB////cFdFB///cFdFB///cFdFA///cFdFA///cFdFB[FF]f",
rules_a="[&&&TTTT[++^TFdd][--&TFd]//Tdd[+^Fd][--&Fdd]]",
rules_b="[&&&TTT[++^Fdd][--&Fdd]//dd[+^d][--&Fd]]",
rules_c="/",
rules_d="F",
- trunk="default:pine_tree",
- leaves="default:pine_needles",
+ trunk="moretrees:cedar_trunk",
+ leaves="moretrees:cedar_leaves",
angle=30,
iterations=2,
random_level=0,
trunk_type="single",
thin_branches=true,
- fruit="moretrees:pine_cone",
+ fruit="moretrees:cedar_cone",
fruit_chance=8
}