diff --git a/lua_api.html b/lua_api.html index 4f0a2f0..1b8a979 100644 --- a/lua_api.html +++ b/lua_api.html @@ -327,7 +327,7 @@ source code patches to http://www.minetest.net/
  • Developer Wiki: http://dev.minetest.net/
  • -This page was last updated 27/May/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 01/June/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

    @@ -2285,6 +2285,7 @@ and minetest.auth_reload call the authetification handler.

  • The second parameter is a list of IDS of decorations which notification is requested for
  • +
  • get_gen_notify(): returns a flagstring and a table with the deco_ids
  • minetest.get_mapgen_object(objectname) @@ -2311,6 +2312,7 @@ and minetest.auth_reload call the authetification handler.

    should be applied to the default config or current active config
  • +
  • minetest.get_noiseparams(name): returns a table of the noiseparams for name
  • minetest.generate_ores(vm, pos1, pos2)
    LuaEntitySAO-only (no-op for other objects)
    @@ -3065,6 +3072,7 @@ Can be gotten via minetest.get_node_timer(pos).

  • +
  • get_physics_override(): returns the table given to set_physics_override
  • hud_add(hud definition): add a HUD element described by HUD def, returns ID number on success
  • hud_remove(id): remove the HUD element of the specified id
  • @@ -3087,14 +3095,17 @@ Can be gotten via minetest.get_node_timer(pos).

  • count: number of items, must be between 1 and 23
  • +
  • hud_get_hotbar_itemcount: returns number of visible items
  • hud_set_hotbar_image(texturename)
  • +
  • hud_get_hotbar_image: returns texturename
  • hud_set_hotbar_selected_image(texturename)
  • +
  • hud_get_hotbar_selected_image: returns texturename
  • hud_replace_builtin(name, hud_definition)
  • +
  • get_sky(): returns bgcolor, type and a table with the textures
  • override_day_night_ratio(ratio or nil)
  • +
  • get_day_night_ratio(): returns the ratio or nil if it isn't overridden
  • -

    set_local_animation(walk, dig, walk+dig, frame_speed=frame_speed)

    +

    set_local_animation(stand/idle, walk, dig, walk+dig, frame_speed=frame_speed)

    set animation for player model in third person view

    set_local_animation({x=0, y=79}, -- < stand/idle animation key frames
         {x=168, y=187}, -- < walk animation key frames
    @@ -3127,22 +3140,18 @@ Can be gotten via minetest.get_node_timer(pos).

    {x=200, y=219}, -- < walk+dig animation key frames frame_speed=30): -- < animation frame speed
    -
  • -
  • -

    set_eye_offset({x=0,y=0,z=0},{x=0,y=0,z=0}): defines offset value for camera per player

    -
  • -
  • get_nametag_attributes() -
  • -
  • set_nametag_attributes(attributes)