From 337e79c656a12bcf0dac4b25d5f0e021188e383a Mon Sep 17 00:00:00 2001 From: kwolekr Date: Tue, 31 Mar 2015 23:27:19 -0400 Subject: ObjDefManager, Mapgen SAPI: Huge refactoring - General code cleanup - Unified object creation and loading - Specifying objects in APIs is now orthogonal (i.e. anything can take an ID, name string, or the raw table definition (and automatically registers if present --- doc/lua_api.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 19d4f1672..5daaaa91d 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3195,6 +3195,7 @@ Definition tables biomes = {"Oceanside", "Hills", "Plains"}, -- ^ List of biomes in which this decoration occurs. Occurs in all biomes if this is omitted, -- ^ and ignored if the Mapgen being used does not support biomes. + -- ^ Can be a list of (or a single) biome names, IDs, or definitions. y_min = -31000 y_max = 31000 -- ^ Minimum and maximum `y` positions these decorations can be generated at. @@ -3221,6 +3222,7 @@ Definition tables schematic = "foobar.mts", -- ^ If schematic is a string, it is the filepath relative to the current working directory of the -- ^ specified Minetest schematic file. + -- ^ - OR -, could be the ID of a previously registered schematic -- ^ - OR -, could instead be a table containing two mandatory fields, size and data, -- ^ and an optional table yslice_prob: schematic = { -- cgit v1.2.3