builtin.lua 959 B

12345678910111213141516171819202122232425
  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. -- Load other files
  11. dofile(minetest.get_modpath("__builtin").."/serialize.lua")
  12. dofile(minetest.get_modpath("__builtin").."/misc_helpers.lua")
  13. dofile(minetest.get_modpath("__builtin").."/item.lua")
  14. dofile(minetest.get_modpath("__builtin").."/misc_register.lua")
  15. dofile(minetest.get_modpath("__builtin").."/item_entity.lua")
  16. dofile(minetest.get_modpath("__builtin").."/deprecated.lua")
  17. dofile(minetest.get_modpath("__builtin").."/misc.lua")
  18. dofile(minetest.get_modpath("__builtin").."/privileges.lua")
  19. dofile(minetest.get_modpath("__builtin").."/auth.lua")
  20. dofile(minetest.get_modpath("__builtin").."/chatcommands.lua")
  21. dofile(minetest.get_modpath("__builtin").."/static_spawn.lua")