Repository navigation
Expand file tree
/
Copy pathinit.lua
More file actions
40 lines (31 loc) · 1.87 KB
/
Copy pathinit.lua
File metadata and controls
40 lines (31 loc) · 1.87 KB
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
36
37
38
39
40
--[[
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-2026 James Clarke <james@jamesdavidclarke.com>
]]
-- 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)
-- For internet cards. This only works here, and when the mod is listed in secure.http_mods.
modular_computers.http = minetest.request_http_api and minetest.request_http_api()
-- 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/items/init.lua")
dofile(modular_computers.mod.path .. "/src/cards/init.lua")
dofile(modular_computers.mod.path .. "/src/nodes/init.lua")
dofile(modular_computers.mod.path .. "/src/recipes.lua")