44 lines
1.2 KiB
Lua
44 lines
1.2 KiB
Lua
Translate = minetest.get_translator("pyutest_core")
|
|
PyuTestCore = {
|
|
BLOCK_BREAKABLE_INSTANT = 6,
|
|
BLOCK_BREAKABLE_NORMAL = 5,
|
|
BLOCK_BREAKABLE_CHOPPY = 4,
|
|
BLOCK_BREAKABLE_MIDDLE = 3,
|
|
BLOCK_BREAKABLE_LONG = 2,
|
|
BLOCK_BREAKABLE_FOREVER = 1,
|
|
|
|
util = {
|
|
toint = function (float)
|
|
return tonumber(string.format("%d", float))
|
|
end,
|
|
|
|
tableconcat = function (t1, t2)
|
|
local nt = t1
|
|
for k, v in pairs(t2) do
|
|
nt[k] = v
|
|
end
|
|
return nt
|
|
end
|
|
}
|
|
}
|
|
|
|
PyuTestCore.get_schem_path = function (name)
|
|
return minetest.get_modpath("pyutest_core") .. "/schematics/"..name..".mts"
|
|
end
|
|
PyuTestCore_Path = minetest.get_modpath("pyutest_core")
|
|
|
|
dofile(PyuTestCore_Path.."/utils.lua") -- Utilities
|
|
|
|
-- Core Game Code
|
|
dofile(PyuTestCore_Path.."/blocks.lua")
|
|
dofile(PyuTestCore_Path.."/mapgen.lua")
|
|
dofile(PyuTestCore_Path.."/tools.lua")
|
|
dofile(PyuTestCore_Path.."/player.lua")
|
|
dofile(PyuTestCore_Path.."/lootboxes.lua")
|
|
dofile(PyuTestCore_Path.."/sfinv.lua")
|
|
dofile(PyuTestCore_Path.."/ores.lua")
|
|
dofile(PyuTestCore_Path.."/crafts.lua")
|
|
dofile(PyuTestCore_Path.."/abms.lua")
|
|
dofile(PyuTestCore_Path.."/mobs.lua")
|
|
dofile(PyuTestCore_Path.."/combat.lua")
|