From 1567bc9dffb4aac67cdf377ba764e54cd5a89239 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Wed, 8 Jul 2015 09:43:59 +0100 Subject: [PATCH] Update lua_api.html --- lua_api.html | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/lua_api.html b/lua_api.html index 1b8a979..f106404 100644 --- a/lua_api.html +++ b/lua_api.html @@ -151,6 +151,8 @@ layout: default
  • size[<W>,<H>,<fixed_size>]
  • list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;]
  • list[<inventory location>;<list name>;<X>,<Y>;<W>,<H>;<starting item index>]
  • +
  • listring[<inventory location>;<list name>]
  • +
  • listring[]
  • listcolors[<slot_bg_normal>;<slot_bg_hover>]
  • listcolors[<slot_bg_normal>;<slot_bg_hover>;<slot_border>]
  • listcolors[<slot_bg_normal>;<slot_bg_hover>;<slot_border>;<tooltip_bgcolor>;<tooltip_fontcolor>]
  • @@ -327,7 +329,7 @@ source code patches to http://www.minetest.net/
  • Developer Wiki: http://dev.minetest.net/
  • -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

    +This page was last updated 08/July/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

    @@ -1476,6 +1478,19 @@ list[current_player;craftpreview;7,1;1,1;] +

    listring[<inventory location>;<list name>]

    + +

    listring[]

    +

    listcolors[<slot_bg_normal>;<slot_bg_hover>]

    +
  • minetest.register_on_player_hpchange(func(player, hp_change), modifier) +
  • minetest.register_on_respawnplayer(func(ObjectRef))
  • minetest.find_nodes_in_area(minp, maxp, nodenames): returns a list of positions
  • @@ -2479,6 +2504,8 @@ and minetest.auth_reload call the authetification handler.

    { stack1, stack2, stack3, stack4, stack 5, stack 6, stack 7, stack 8, stack 9 }
  • output.item = ItemStack, if unsuccessful: empty ItemStack
  • output.time = a number, if unsuccessful: 0
  • +
  • output.replacements = list of ItemStacks that couldn't be placed in + decremented_input.items
  • decremented_input = like input
  • @@ -2990,8 +3017,8 @@ Can be gotten via minetest.get_node_timer(pos).

  • set_wielded_item(item): replaces the wielded item, returns true if successful
  • set_armor_groups({group1=rating, group2=rating, ...})
  • get_armor_groups(): returns a table with the armor group ratings
  • -
  • set_animation({x=1,y=1}, frame_speed=15, frame_blend=0)
  • -
  • get_animation(): returns range, frame_speed and frame_blend
  • +
  • set_animation({x=1,y=1}, frame_speed=15, frame_blend=0, frame_loop=true)
  • +
  • get_animation(): returns range, frame_speed, frame_blend and frame_loop
  • set_attach(parent, bone, position, rotation)