Difference between revisions of "L-system tree examples/Template"

From Minetest Developer Wiki
Jump to navigation Jump to search
m (Remove comment about minetest_game)
(add mapgen templates)
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
== Title of your L-system tree ==
 
== Title of your L-system tree ==
 
=== Profile ===
 
=== Profile ===
* '''Subgame used''': <!-- insert the name of the subgame where you can use the tree. -->
+
* '''Game used''': <!-- insert the name of the game where you can use the tree. -->
 
* '''Additional mods''':
 
* '''Additional mods''':
 
<!--
 
<!--
Replace this comment with a list of all additional mods this treedef may need. This excludes all mods already part of the subgame. Mods should be specified in the format “<Human-readable mod name> [<internal mod name>]”. Example usage:
+
Replace this comment with a list of all additional mods this treedef may need. This excludes all mods already part of the game. Mods should be specified in the format “<Human-readable mod name> [<internal mod name>]”. Example usage:
  
 
* '''Additional mods''':
 
* '''Additional mods''':
Line 14: Line 14:
 
If there are no additional mods, write:
 
If there are no additional mods, write:
  
* '''Additional mods''': ''none''
+
* '''Additional mods''': ''None''
 
-->
 
-->
  
Line 22: Line 22:
 
axiom = --[[ your axiom here ]],
 
axiom = --[[ your axiom here ]],
 
rules_a = --[[ your rule set A here]],
 
rules_a = --[[ your rule set A here]],
 +
trunk = "mapgen_trunk",
 +
leaves = "mapgen_leaves",
 +
leaves2 = "mapgen_jungleleaves",
 +
fruit = "mapgen_apple",
 
--[[ add/remove other fields as needed. Only use Lua syntax! ]]
 
--[[ add/remove other fields as needed. Only use Lua syntax! ]]
 
}
 
}

Latest revision as of 18:19, 17 May 2018

Note: View the source code of this page (and delete this line of text when you're finished)!

Title of your L-system tree

Profile

  • Game used:
  • Additional mods:

Definition

treedef = {
	axiom = --[[ your axiom here ]],
	rules_a = --[[ your rule set A here]],
	trunk = "mapgen_trunk",
	leaves = "mapgen_leaves",
	leaves2 = "mapgen_jungleleaves",
	fruit = "mapgen_apple",
	--[[ add/remove other fields as needed. Only use Lua syntax! ]]
}

Screenshot

Additional notes