constants.lua 711 B

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