mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Update documentation to reflect player constant values (#15308)
Co-authored-by: grorp <grorp@posteo.de>
This commit is contained in:
parent
cb6c8eb2f0
commit
6ead789509
1 changed files with 6 additions and 4 deletions
|
@ -9106,12 +9106,14 @@ Player properties need to be saved manually.
|
||||||
```lua
|
```lua
|
||||||
{
|
{
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
-- Defines the maximum and default HP of the entity
|
-- Defines the maximum and default HP of the object.
|
||||||
-- For Lua entities the maximum is not enforced.
|
-- For Lua entities, the maximum is not enforced.
|
||||||
-- For players this defaults to `core.PLAYER_MAX_HP_DEFAULT`.
|
-- For players, this defaults to `core.PLAYER_MAX_HP_DEFAULT` (20).
|
||||||
|
-- For Lua entities, the default is 10.
|
||||||
|
|
||||||
breath_max = 0,
|
breath_max = 0,
|
||||||
-- For players only. Defaults to `core.PLAYER_MAX_BREATH_DEFAULT`.
|
-- For players only. Defines the maximum amount of "breath" for the player.
|
||||||
|
-- Defaults to `core.PLAYER_MAX_BREATH_DEFAULT` (10).
|
||||||
|
|
||||||
zoom_fov = 0.0,
|
zoom_fov = 0.0,
|
||||||
-- For players only. Zoom FOV in degrees.
|
-- For players only. Zoom FOV in degrees.
|
||||||
|
|
Loading…
Add table
Reference in a new issue