Difference between revisions of "Template:treedef"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Undo revision 3124 by Hybrid Dog (talk))
Line 1: Line 1:
 
=== Definition ===
 
=== Definition ===
<pre>
+
<syntaxhighlight lang="lua">
 
treedef = {
 
treedef = {
 
axiom = {{{axiom}}},
 
axiom = {{{axiom}}},
Line 20: Line 20:
 
seed = {{{seed}}},
 
seed = {{{seed}}},
 
}
 
}
</pre>
+
</syntaxhighlight>
 
<noinclude>
 
<noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 15:55, 1 July 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}}},
}