builtin.lua 1019 B

123456789101112131415161718192021222324252627282930313233343536
  1. --
  2. -- This file contains built-in stuff in Minetest implemented in Lua.
  3. --
  4. -- It is always loaded and executed after registration of the C API,
  5. -- before loading and running any mods.
  6. --
  7. -- Initialize some very basic things
  8. print = minetest.debug
  9. math.randomseed(os.time())
  10. os.setlocale("C", "numeric")
  11. local errorfct = error
  12. error = function(text)
  13. print(debug.traceback(""))
  14. errorfct(text)
  15. end
  16. -- Load other files
  17. local modpath = minetest.get_modpath("__builtin")
  18. dofile(modpath.."/serialize.lua")
  19. dofile(modpath.."/misc_helpers.lua")
  20. dofile(modpath.."/item.lua")
  21. dofile(modpath.."/misc_register.lua")
  22. dofile(modpath.."/item_entity.lua")
  23. dofile(modpath.."/deprecated.lua")
  24. dofile(modpath.."/misc.lua")
  25. dofile(modpath.."/privileges.lua")
  26. dofile(modpath.."/auth.lua")
  27. dofile(modpath.."/chatcommands.lua")
  28. dofile(modpath.."/static_spawn.lua")
  29. dofile(modpath.."/detached_inventory.lua")
  30. dofile(modpath.."/falling.lua")
  31. dofile(modpath.."/features.lua")
  32. dofile(modpath.."/voxelarea.lua")
  33. dofile(modpath.."/vector.lua")