constants.lua 607 B

123456789101112131415161718192021222324252627
  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. -- light.h
  21. -- Maximum value for node 'light_source' parameter
  22. core.LIGHT_MAX = 14