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)
9core.CONTENT_UNKNOWN = 125
10core.CONTENT_AIR     = 126
11core.CONTENT_IGNORE  = 127
12
13-- emerge.h
14-- Block emerge status constants (for use with core.emerge_area)
15core.EMERGE_CANCELLED   = 0
16core.EMERGE_ERRORED     = 1
17core.EMERGE_FROM_MEMORY = 2
18core.EMERGE_FROM_DISK   = 3
19core.EMERGE_GENERATED   = 4
20
21-- constants.h
22-- Size of mapblocks in nodes
23core.MAP_BLOCKSIZE = 16
24-- Default maximal HP of a player
25core.PLAYER_MAX_HP_DEFAULT = 20
26-- Default maximal breath of a player
27core.PLAYER_MAX_BREATH_DEFAULT = 10
28
29-- light.h
30-- Maximum value for node 'light_source' parameter
31core.LIGHT_MAX = 14
32