34477e6aae166c80f3c3324cf2d7276f7efb91d5
[oweals/minetest.git] / builtin / builtin.lua
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
8 -- Initialize some very basic things
9 print = minetest.debug
10 math.randomseed(os.time())
11 os.setlocale("C", "numeric")
12
13 -- Load other files
14 local modpath = minetest.get_modpath("__builtin")
15 dofile(modpath.."/serialize.lua")
16 dofile(modpath.."/misc_helpers.lua")
17 dofile(modpath.."/item.lua")
18 dofile(modpath.."/misc_register.lua")
19 dofile(modpath.."/item_entity.lua")
20 dofile(modpath.."/deprecated.lua")
21 dofile(modpath.."/misc.lua")
22 dofile(modpath.."/privileges.lua")
23 dofile(modpath.."/auth.lua")
24 dofile(modpath.."/chatcommands.lua")
25 dofile(modpath.."/static_spawn.lua")
26 dofile(modpath.."/detached_inventory.lua")
27 dofile(modpath.."/falling.lua")
28 dofile(modpath.."/features.lua")
29 dofile(modpath.."/voxelarea.lua")
30 dofile(modpath.."/vector.lua")