diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2017-09-15 12:18:47 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-09-15 12:18:47 +0200 |
commit | edbc533414b0ba991a82f8003d90924e1dc60d95 (patch) | |
tree | 9fe4c04bc35f345e9a62f1358fa5e0ad324938e9 /doc | |
parent | 7640749d68b87a62868840d34a665101861ca9c0 (diff) | |
download | minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.gz minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.tar.bz2 minetest-edbc533414b0ba991a82f8003d90924e1dc60d95.zip |
Customizeable max breath for players (#6411)
* Customizeable maximal breath for players
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index eac6f6697..de3927a74 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -3397,10 +3397,9 @@ This is basically a reference to a C++ `ServerActiveObject` * `get_breath()`: returns players breath * `set_breath(value)`: sets players breath * values: - * `0`: player is drowning, - * `1`-`10`: remaining number of bubbles - * `11`: bubbles bar is not shown - * See constant: `minetest.PLAYER_MAX_BREATH` + * `0`: player is drowning + * max: bubbles bar is not shown + * See Object Properties for more information * `set_attribute(attribute, value)`: * Sets an extra attribute with value on player. * `value` must be a string. @@ -4105,7 +4104,9 @@ Definition tables { hp_max = 1, - -- ^ For players, the maximal HP defaults to `minetest.PLAYER_MAX_HP_DEFAULT` + -- ^ For players: Defaults to `minetest.PLAYER_MAX_HP_DEFAULT` + breath_max = 0, + -- ^ For players only. Defaults to `minetest.PLAYER_MAX_BREATH_DEFAULT` physical = true, collide_with_objects = true, -- collide with other objects if physical = true weight = 5, |