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)

    + +
  • +
  • +

    minetest.register_decoration(decoration definition)

    + +
  • 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() @@ -2669,31 +2685,39 @@ end

    Global tables