LuaWorldGenerator

LuaWorldGenerator

class

World generator assembled from Lua defined biomes and heights

  • load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.

Fields

NameTypeDescription
biome_family BiomeFamily Biome family selecting the surface biome
height HeightGenerator Height generator for the terrain surface
Standard members (5)

These members are available on all classes of this kind.

LuaWorldGenerator.cast(object) Trying to cast Object into LuaWorldGenerator
LuaWorldGenerator.get_class() Return LuaWorldGenerator class object
LuaWorldGenerator.find(name) Looks LuaWorldGenerator up in db, nil when there is none
LuaWorldGenerator.get(name) Takes LuaWorldGenerator from db, reports a miss to the log
LuaWorldGenerator.reg(name, spec) load-only Register a new LuaWorldGenerator static object, or take the registered one of that name
Inherited from WorldGenerator (3)
  • ore_list Ore deposits this world places; its nearest tier is seeded around the spawn
  • stone_source Item a drill takes anywhere away from a deposit
  • water_source Fluid a pump takes anywhere away from a deposit
Inherited from Prototype (2)
Inherited from Object (1)