-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
35 lines (27 loc) · 1.57 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--[[
This file is part of Modular Computers.
Modular Computers is free software: you can redistribute it and/or modify it under the terms of the
GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
Modular Computers is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with Modular Computers.
If not, see <https://www.gnu.org/licenses/>.
The license is included in the project root under the file labeled LICENSE. All files not otherwise
specified under a different license shall be put under this license.
Copyright (c) 2023 James Clarke <[email protected]>
]]
-- global mod namespace
modular_computers = {}
modular_computers.internal = {}
modular_computers.mod = {}
modular_computers.mod_storage = minetest.get_mod_storage()
modular_computers.mod.name = minetest.get_current_modname()
modular_computers.mod.path = minetest.get_modpath(modular_computers.mod.name)
modular_computers.S = minetest.get_translator(modular_computers.mod.name)
-- Load the scripts
dofile(modular_computers.mod.path .. "/src/utilities.lua")
dofile(modular_computers.mod.path .. "/src/os/init.lua")
dofile(modular_computers.mod.path .. "/src/nodes/init.lua")
dofile(modular_computers.mod.path .. "/src/items/init.lua")