2011-11-30 22:52:02 +01: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 11:37:41 +02:00
|
|
|
-- Initialize some very basic things
|
2012-03-11 14:41:53 +01:00
|
|
|
print = minetest.debug
|
2012-01-21 00:11:44 +01:00
|
|
|
math.randomseed(os.time())
|
2013-02-18 10:58:55 +01:00
|
|
|
os.setlocale("C", "numeric")
|
2012-01-21 00:11:44 +01:00
|
|
|
|
2012-04-01 11:37:41 +02:00
|
|
|
-- Load other files
|
2012-06-06 23:03:42 +02:00
|
|
|
dofile(minetest.get_modpath("__builtin").."/serialize.lua")
|
2012-04-01 11:37:41 +02:00
|
|
|
dofile(minetest.get_modpath("__builtin").."/misc_helpers.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/item.lua")
|
|
|
|
dofile(minetest.get_modpath("__builtin").."/misc_register.lua")
|
2012-04-01 15:06:01 +02:00
|
|
|
dofile(minetest.get_modpath("__builtin").."/item_entity.lua")
|
2012-04-01 11:37:41 +02:00
|
|
|
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")
|
2012-04-09 22:29:55 +02:00
|
|
|
dofile(minetest.get_modpath("__builtin").."/static_spawn.lua")
|
2012-07-25 01:36:54 +02:00
|
|
|
dofile(minetest.get_modpath("__builtin").."/detached_inventory.lua")
|
2012-10-31 19:06:11 +01:00
|
|
|
dofile(minetest.get_modpath("__builtin").."/falling.lua")
|
2012-04-01 11:37:41 +02:00
|
|
|
|