From 7987e66409ef60e738476e2754d3bb2106ca1ce1 Mon Sep 17 00:00:00 2001
From: rubenwardy 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.Table of Contents
+
+
+
Minetest Lua Modding API Reference 0.4.13
Introduction
See doc/lua_api.txt for the latest version (in plaintext).
Generated using a Python script.Programming in Lua
+This page was last updated 03/September/2015.
See doc/lua_api.txt for the latest version (in plaintext).
Generated using a Python script.Programming in Lua
Startup
@@ -3127,13 +3131,15 @@ Can be gotten via 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