2011-11-30 13:52:02 -08:00
|
|
|
--
|
|
|
|
-- This file contains built-in stuff in Minetest implemented in Lua.
|
|
|
|
--
|
|
|
|
-- It is always loaded and executed after registration of the C API,
|
|
|
|
-- before loading and running any mods.
|
|
|
|
--
|
|
|
|
|
2012-04-01 02:37:41 -07:00
|
|
|
-- Initialize some very basic things
|
2012-03-11 06:41:53 -07:00
|
|
|
print = minetest.debug
|
2012-01-20 15:11:44 -08:00
|
|
|
math.randomseed(os.time())
|
|
|
|
|
2012-04-01 02:37:41 -07:00
|
|
|
-- Load other files
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/misc_helpers.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/item.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/misc_register.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/deprecated.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/misc.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/privileges.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/auth.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/chatcommands.lua")
|
|
|
|
|