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

From Minetest Developer Wiki
Jump to navigation Jump to search
(“Subgames” were renamed to “games”)
(add mapgen templates)
 
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