minetest.spawn tree

Description

 * — position
 * — treedef

Spawns an L-system tree at position, using the tree definition.

See Introduction to L-system trees for a description of L-system trees.

Example
This code adds the chat command "/spawn_tree" to spawn an apple tree with its origin at the current position of the player, assuming that Minetest Game is used:

The resulting tree may look like this: