2021-10-22 23:54:45 +10:00
|
|
|
local version = "0.1.6"
|
2021-03-22 23:34:14 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not lwdrops then
|
|
|
|
minetest.log ("error", "lwscratch could not find dependency lwdrops")
|
|
|
|
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lwscratch = { }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function lwscratch.version ()
|
|
|
|
return version
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local utils = { }
|
2021-03-24 19:04:13 +10:00
|
|
|
utils.commands_inv_size = 112
|
2021-03-22 23:34:14 +10:00
|
|
|
utils.program_inv_size = 500
|
|
|
|
|
|
|
|
local modpath = minetest.get_modpath ("lwscratch")
|
|
|
|
local worldpath = minetest.get_worldpath ()
|
|
|
|
|
|
|
|
|
|
|
|
loadfile (modpath.."/settings.lua") (utils)
|
|
|
|
loadfile (modpath.."/utils.lua") (utils)
|
|
|
|
loadfile (modpath.."/commands.lua") (utils)
|
|
|
|
loadfile (modpath.."/program.lua") (utils)
|
|
|
|
loadfile (modpath.."/robot_ops.lua") (utils)
|
|
|
|
loadfile (modpath.."/robot.lua") (utils)
|
|
|
|
loadfile (modpath.."/crafting.lua") (utils)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--
|