From 11dbcc5bca5383ed8502b1e4d9bbdfe34992bb27 Mon Sep 17 00:00:00 2001
From: rubenwardy
Date: Fri, 9 Jan 2015 18:54:25 +0000
Subject: [PATCH] Lua API: update
---
lua_api.html | 38 +++++++++++++++++++++++++++++++-------
1 file changed, 31 insertions(+), 7 deletions(-)
diff --git a/lua_api.html b/lua_api.html
index 1bf93f8..d5fe994 100644
--- a/lua_api.html
+++ b/lua_api.html
@@ -664,6 +664,18 @@ the global minetest.registered_*
tables.
added to minetest.registered_items[name]
+
+minetest.register_ore(ore definition)
+
+- added to
minetest.registered_ores
+
+
+
+minetest.register_decoration(decoration definition)
+
+- added to
minetest.registered_decorations
+
+
Note that in some cases you will stumble upon things that are not contained
in these tables (e.g. when a mod has been removed). Always check for
@@ -2169,6 +2181,10 @@ and minetest.auth_reload
call the authetification handler.
should be applied to the default config or current active config
+minetest.generate_ores(vm)
+Generate all registered ores within the VoxelManip specified by vm
.
+minetest.generate_decorations(vm)
+Generate all registered decorations within the VoxelManip specified by vm
.
minetest.clear_objects()
- clear all objects in the environments
@@ -2669,31 +2685,39 @@ end
Global tables
minetest.registered_items
-- List of registered items, indexed by name
+- Map of registered items, indexed by name
minetest.registered_nodes
-- List of registered node definitions, indexed by name
+- Map of registered node definitions, indexed by name
minetest.registered_craftitems
-- List of registered craft item definitions, indexed by name
+- Map of registered craft item definitions, indexed by name
minetest.registered_tools
-- List of registered tool definitions, indexed by name
+- Map of registered tool definitions, indexed by name
minetest.registered_entities
-- List of registered entity prototypes, indexed by name
+- Map of registered entity prototypes, indexed by name
minetest.object_refs
-- List of object references, indexed by active object id
+- Map of object references, indexed by active object id
minetest.luaentities
-- List of Lua entities, indexed by active object id
+- Map of Lua entities, indexed by active object id
+
+
+minetest.registered_ores
+- List of registered ore definitions.
+
+
+minetest.registered_decorations
+- List of registered decoration definitions.