forked from mtcontrib/plantlife_modpack
		
	left out a few commas in the API's tables (I want them to be easily
copied and pasted directly into one's code).
This commit is contained in:
		
							
								
								
									
										16
									
								
								API.txt
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								API.txt
									
									
									
									
									
								
							@@ -64,7 +64,7 @@ options={
 | 
				
			|||||||
	spawn_plants = something, -- [*] String or table; see below.
 | 
						spawn_plants = something, -- [*] String or table; see below.
 | 
				
			||||||
	spawn_delay = number,	-- same as sdelay, above.
 | 
						spawn_delay = number,	-- same as sdelay, above.
 | 
				
			||||||
	spawn_chance = number,	-- same as schance, above.
 | 
						spawn_chance = number,	-- same as schance, above.
 | 
				
			||||||
	spawn_surfaces = {table} -- List of node names on which the plants
 | 
						spawn_surfaces = {table}, -- List of node names on which the plants
 | 
				
			||||||
				-- should be spawned.  As with the single-
 | 
									-- should be spawned.  As with the single-
 | 
				
			||||||
				-- node "ssurface" option in the legacy API,
 | 
									-- node "ssurface" option in the legacy API,
 | 
				
			||||||
				-- you should not put stone, air, etc. here.
 | 
									-- you should not put stone, air, etc. here.
 | 
				
			||||||
@@ -75,7 +75,7 @@ options={
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	avoid_nodes = {table},	-- same meaning as savoid, above
 | 
						avoid_nodes = {table},	-- same meaning as savoid, above
 | 
				
			||||||
	avoid_radius = num,	-- same as sradius
 | 
						avoid_radius = num,	-- same as sradius
 | 
				
			||||||
	seed_diff = num		-- The Perlin seed difference value passed to
 | 
						seed_diff = num,	-- The Perlin seed difference value passed to
 | 
				
			||||||
				-- the minetest.env:get_perlin() function.
 | 
									-- the minetest.env:get_perlin() function.
 | 
				
			||||||
				-- Used along with the global Perlin controls
 | 
									-- Used along with the global Perlin controls
 | 
				
			||||||
				-- below to create the "biome" in which the
 | 
									-- below to create the "biome" in which the
 | 
				
			||||||
@@ -116,8 +116,8 @@ options={
 | 
				
			|||||||
				-- or any other pair of numbers in the 0 to 5 
 | 
									-- or any other pair of numbers in the 0 to 5 
 | 
				
			||||||
				-- range, as appropriate for the node you want
 | 
									-- range, as appropriate for the node you want
 | 
				
			||||||
				-- to spawn.
 | 
									-- to spawn.
 | 
				
			||||||
	verticals_list = {table} -- List of nodes that should be considered to
 | 
						verticals_list = {table}, -- List of nodes that should be considered
 | 
				
			||||||
				-- be natural walls.
 | 
									-- to be natural walls.
 | 
				
			||||||
	alt_wallnode = "string", -- If specified, this node will be 
 | 
						alt_wallnode = "string", -- If specified, this node will be 
 | 
				
			||||||
				-- substituted in place of the plant(s)
 | 
									-- substituted in place of the plant(s)
 | 
				
			||||||
				-- defined by spawn_plants above, if the spawn
 | 
									-- defined by spawn_plants above, if the spawn
 | 
				
			||||||
@@ -216,10 +216,10 @@ options={
 | 
				
			|||||||
				-- facedir function above, the values given to
 | 
									-- facedir function above, the values given to
 | 
				
			||||||
				-- the facedir parameter are for regular
 | 
									-- the facedir parameter are for regular
 | 
				
			||||||
				-- nodes, not wallmounted.
 | 
									-- nodes, not wallmounted.
 | 
				
			||||||
	spawn_replace_node = bool -- If set to true, the target node itself is
 | 
						spawn_replace_node = bool, -- If set to true, the target node itself
 | 
				
			||||||
				-- replaced by the spawned object.  Overrides
 | 
									-- is replaced by the spawned object.
 | 
				
			||||||
				-- the spawn_on_bottom and spawn_on_side
 | 
									-- Overrides the spawn_on_bottom and
 | 
				
			||||||
				-- settings.
 | 
									-- spawn_on_side settings.
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[*] spawn_plants must be either a table or a string.  If it's a table, the
 | 
					[*] spawn_plants must be either a table or a string.  If it's a table, the
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user