Difference between revisions of "Template:treedef"

From Minetest Developer Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
=== Definition ===
 
=== Definition ===
<syntaxhighlight lang="lua">
+
{{#tag:syntaxhighlight|
 
treedef = {
 
treedef = {
 
axiom = {{{axiom|?}}},
 
axiom = {{{axiom|?}}},
Line 20: Line 20:
 
seed = {{{seed}}},
 
seed = {{{seed}}},
 
}
 
}
</syntaxhighlight>
+
| lang=lua}}
 
<noinclude>
 
<noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 16:11, 4 July 2015

Definition

treedef = {
	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 = 0,
	trunk_type = "single",
	thin_branches = true,
	fruit_chance = {{{fruit_chance}}},
	fruit = {{{fruit}}},
	seed = {{{seed}}},
}