From 7933e141761bcf0fe6271060e23ebff70d6c2a29 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 8 May 2015 18:55:17 +0100 Subject: [PATCH] Update lua_api.html --- lua_api.html | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/lua_api.html b/lua_api.html index e9b16ed..bea02a1 100644 --- a/lua_api.html +++ b/lua_api.html @@ -326,7 +326,7 @@ source code patches to http://www.minetest.net/
  • Developer Wiki: http://dev.minetest.net/
  • -This page was last updated 29/April/2015.
    See doc/lua_api.txt for the latest version (in plaintext).
    Generated using a Python script.

    Programming in Lua

    +This page was last updated 08/May/2015.
    See doc/lua_api.txt for the latest version (in plaintext).
    Generated using a Python script.

    Programming in Lua

    If you have any difficulty in understanding this, please read Programming in Lua.

    Startup

    @@ -2188,8 +2188,12 @@ and minetest.auth_reload call the authetification handler.

  • -

    minetest.get_meta(pos)

    +

    minetest.find_nodes_with_meta(pos1, pos2)

    +
  • +
  • minetest.get_meta(pos)
  • @@ -2647,17 +2651,10 @@ and minetest.auth_reload call the authetification handler.

  • "mts" - a string containing the binary MTS data used in the MTS file format
  • "lua" - a string containing Lua code representing the schematic in table format
  • options is a table containing the following optional parameters:
  • -
  • If use_comments is true and format is "lua", the Lua code generated will have (X, Z)
  • +
  • If lua_use_comments is true and format is "lua", the Lua code generated will have (X, Z)
  • position comments for every X row generated in the schematic data for easier reading.
  • -
  • If register_after_load is true, then schematic, if not yet loaded, will be registered
  • -
  • after loading and persist in memory.
  • -
  • node_resolve_method can be one of either "none", "direct", or "deferred" (default: "none")
  • -
  • This sets the way method by with node names are mapped to their content IDs, if loaded:
  • -
  • "none" performs no node resolution and preserves all node names from the schematic definition
  • -
  • "direct" performs an immediate lookup of content ID, given all the nodes that have been
  • -
  • registered up to this point in script execution
  • -
  • "deferred" pends node resolution until after the script registration phase has ended
  • -
  • In practice, it is recommended to use "none" in nearly all use cases.
  • +
  • If lua_num_indent_spaces is a nonzero number and format is "lua", the Lua code generated
  • +
  • will use that number of spaces as indentation instead of a tab character.