diff --git a/lua_api.html b/lua_api.html index 6d385e4..c44f911 100644 --- a/lua_api.html +++ b/lua_api.html @@ -5,6 +5,7 @@ layout: default
Content and functionality can be added to Minetest 0.4 by using Lua @@ -336,7 +340,7 @@ source code patches to http://www.minetest.net/
If you have any difficulty in understanding this, please read Programming in Lua.
minetest.get_node_timer(pos)
.
hud_get(id)
: gets the HUD element definition structure of the specified IDhud_set_flags(flags)
: sets specified HUD flags to true
/false
flags
: (is visible) hotbar
, healthbar
, crosshair
, wielditem
flags
: (is visible) hotbar
, healthbar
, crosshair
, wielditem
, minimap
true
/false
value of each flag to be set or unsetnil
, the flag is not modifiedminimap
modifies the client's permission to view the minimap -hud_get_flags()
: returns a table containing status of hud flags{ hotbar=true, healthbar=true, crosshair=true, wielditem=true, breathbar=true }
{ hotbar=true, healthbar=true, crosshair=true, wielditem=true, breathbar=true, minimap=true }
hud_set_hotbar_itemcount(count)
: sets number of items in builtin hotbar