home_workshop_modpack/computers/init.lua

26 lines
853 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-21 02:28:41 +01:00
version = 0.44,
2022-02-13 03:56:17 +01:00
name = "kuto",
authors = {"wsor", "luk3yx"},
license = "MIT",
}
2022-02-18 23:29:31 +01:00
dofile(computers.modpath .. "/api.lua")
2022-02-21 01:03:52 +01:00
dofile(computers.modpath .. "/networks.lua")
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-21 04:36:46 +01:00
dofile(computers.modpath .. "/nodes/init.lua")
2022-02-12 22:36:11 +01:00
dofile(computers.modpath .. "/demo.lua")