constants.lua 747 B

12345678910111213141516171819202122232425262728293031
  1. -- Minetest: builtin/constants.lua
  2. --
  3. -- Constants values for use with the Lua API
  4. --
  5. -- mapnode.h
  6. -- Built-in Content IDs (for use with VoxelManip API)
  7. core.CONTENT_UNKNOWN = 125
  8. core.CONTENT_AIR = 126
  9. core.CONTENT_IGNORE = 127
  10. -- emerge.h
  11. -- Block emerge status constants (for use with core.emerge_area)
  12. core.EMERGE_CANCELLED = 0
  13. core.EMERGE_ERRORED = 1
  14. core.EMERGE_FROM_MEMORY = 2
  15. core.EMERGE_FROM_DISK = 3
  16. core.EMERGE_GENERATED = 4
  17. -- constants.h
  18. -- Size of mapblocks in nodes
  19. core.MAP_BLOCKSIZE = 16
  20. -- Default maximal HP of a player
  21. core.PLAYER_MAX_HP_DEFAULT = 20
  22. -- Default maximal breath of a player
  23. core.PLAYER_MAX_BREATH_DEFAULT = 10
  24. -- light.h
  25. -- Maximum value for node 'light_source' parameter
  26. core.LIGHT_MAX = 14