Difference between revisions of "Template:treedef"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Undo revision 3124 by Hybrid Dog (talk))
Line 2: Line 2:
 
<pre>
 
<pre>
 
treedef = {
 
treedef = {
axiom = |{{{axiom}}},
+
axiom = {{{axiom}}},
rules_a = |{{{rules_a}}},
+
rules_a = {{{rules_a}}},
rules_b = |{{{rules_b}}},
+
rules_b = {{{rules_b}}},
rules_c = |{{{rules_c}}},
+
rules_c = {{{rules_c}}},
rules_d = |{{{rules_d}}},
+
rules_d = {{{rules_d}}},
trunk = |{{{trunk}}},
+
trunk = {{{trunk}}},
leaves = |{{{leaves}}},
+
leaves = {{{leaves}}},
leaves2 = |{{{leaves2}}},
+
leaves2 = {{{leaves2}}},
leaves2_chance = |{{{leaves2_chance}}},
+
leaves2_chance = {{{leaves2_chance}}},
angle = |{{{angle}}},
+
angle = {{{angle}}},
iterations = |{{{iterations}}},
+
iterations = {{{iterations}}},
random_level = |{{{random_level|0}}},
+
random_level = {{{random_level|0}}},
trunk_type = |{{{random_level|"single"}}},
+
trunk_type = {{{random_level|"single"}}},
thin_branches = |{{{thin_branches|true}}},
+
thin_branches = {{{thin_branches|true}}},
fruit_chance = |{{{fruit_chance}}},
+
fruit_chance = {{{fruit_chance}}},
fruit = |{{{fruit}}},
+
fruit = {{{fruit}}},
seed = |{{{seed}}},
+
seed = {{{seed}}},
 
}
 
}
 
</pre>
 
</pre>

Revision as of 18:38, 30 June 2015

Definition

treedef = {
	axiom = {{{axiom}}},
	rules_a = {{{rules_a}}},
	rules_b = {{{rules_b}}},
	rules_c = {{{rules_c}}},
	rules_d = {{{rules_d}}},
	trunk = {{{trunk}}},
	leaves = {{{leaves}}},
	leaves2 = {{{leaves2}}},
	leaves2_chance = {{{leaves2_chance}}},
	angle = {{{angle}}},
	iterations = {{{iterations}}},
	random_level = {{{random_level|0}}},
	trunk_type = {{{random_level|"single"}}},
	thin_branches = {{{thin_branches|true}}},
	fruit_chance = {{{fruit_chance}}},
	fruit = {{{fruit}}},
	seed = {{{seed}}},
}