Fix breath_bar scaling; delay breath_bar hiding by one second (#8271)
[oweals/minetest.git] / builtin / game / constants.lua
1 -- Minetest: builtin/constants.lua
2
3 --
4 -- Constants values for use with the Lua API
5 --
6
7 -- mapnode.h
8 -- Built-in Content IDs (for use with VoxelManip API)
9 core.CONTENT_UNKNOWN = 125
10 core.CONTENT_AIR     = 126
11 core.CONTENT_IGNORE  = 127
12
13 -- emerge.h
14 -- Block emerge status constants (for use with core.emerge_area)
15 core.EMERGE_CANCELLED   = 0
16 core.EMERGE_ERRORED     = 1
17 core.EMERGE_FROM_MEMORY = 2
18 core.EMERGE_FROM_DISK   = 3
19 core.EMERGE_GENERATED   = 4
20
21 -- constants.h
22 -- Size of mapblocks in nodes
23 core.MAP_BLOCKSIZE = 16
24 -- Default maximal HP of a player
25 core.PLAYER_MAX_HP_DEFAULT = 20
26 -- Default maximal breath of a player
27 core.PLAYER_MAX_BREATH_DEFAULT = 10
28
29 -- light.h
30 -- Maximum value for node 'light_source' parameter
31 core.LIGHT_MAX = 14