home_workshop_modpack/computers/init.lua

23 lines
771 B
Lua
Raw Normal View History

computers = {}
2022-02-12 22:36:11 +01:00
computers.modpath = minetest.get_modpath("computers")
2022-02-13 06:31:20 +01:00
computers.storagepath = minetest.get_worldpath() .. "/computers"
computers.devicepath = computers.storagepath .. "/devices"
computers.networkpath = computers.storagepath .. "/networks"
minetest.mkdir(computers.storagepath) --make sure it exists
2022-02-13 06:33:22 +01:00
minetest.mkdir(computers.devicepath) --make sure it exists
minetest.mkdir(computers.networkpath) --make sure it exists
2022-02-13 03:56:17 +01:00
computers.os = {
2022-02-13 16:43:41 +01:00
version = 0.41,
2022-02-13 03:56:17 +01:00
name = "kuto",
authors = {"wsor", "luk3yx"},
license = "MIT",
}
2022-02-12 22:36:11 +01:00
dofile(computers.modpath .. "/old_stuff/init.lua")
2022-02-13 03:56:17 +01:00
2022-02-12 23:13:16 +01:00
dofile(computers.modpath .. "/formspec.lua")
2022-02-13 03:56:17 +01:00
dofile(computers.modpath .. "/commands.lua")
2022-02-13 02:52:12 +01:00
dofile(computers.modpath .. "/gui.lua")
2022-02-12 22:36:11 +01:00
dofile(computers.modpath .. "/demo.lua")