aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-07-19 19:50:33 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-20 20:34:11 +0200
commitd19c8b815dc137ea4c19e5f5a54c40693059b455 (patch)
treed52a03f8357a0c76c2c8df259572e089cf5852c7 /doc
parentab145c8827504b2b3c897c46e9e7df32cf6324a4 (diff)
downloadminetest-d19c8b815dc137ea4c19e5f5a54c40693059b455.tar.gz
minetest-d19c8b815dc137ea4c19e5f5a54c40693059b455.tar.bz2
minetest-d19c8b815dc137ea4c19e5f5a54c40693059b455.zip
Add set_breath and get_breath to lua API.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 74b3d3ba5..6a4d19838 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1547,6 +1547,11 @@ Player-only: (no-op for other objects)
- get_look_yaw(): yaw in radians (wraps around pretty randomly as of now)
- set_look_pitch(radians): sets look pitch
- set_look_yaw(radians): sets look yaw
+- get_breath() : returns players breath
+- set_breath(value) : sets players breath
+ values: 0 player is drowning,
+ 1-10 number of bubbles remain,
+ 11 bubbles bar is not shown
- set_inventory_formspec(formspec)
^ Redefine player's inventory form
^ Should usually be called in on_joinplayer