From d19c8b815dc137ea4c19e5f5a54c40693059b455 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Fri, 19 Jul 2013 19:50:33 +0200 Subject: Add set_breath and get_breath to lua API. --- doc/lua_api.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/lua_api.txt') 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 -- cgit v1.2.3