forked from tacotexmex/telemosaic
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathinit.lua
49 lines (41 loc) · 1.27 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--[[
Telemosaic [telemosaic]
=======================
A mod which provides player-placed teleport pads
Copyright (C) 2015 Ben Deutsch <[email protected]>
]]
telemosaic = {
teleport_delay = tonumber(minetest.settings:get("telemosaic_teleport_delay")) or 1.0,
beacon_range = tonumber(minetest.settings:get("telemosaic_beacon_range")) or 20.0,
default_channel = minetest.settings:get("telemosaic_default_channel") or "telemosaic",
extender_ranges = {
tonumber(minetest.settings:get("telemosaic_extender_one_range")) or 5.0,
tonumber(minetest.settings:get("telemosaic_extender_two_range")) or 20.0,
tonumber(minetest.settings:get("telemosaic_extender_three_range")) or 80.0,
},
extender_colors = {
white = "#ffffffa0",
dark_grey = "#00000090",
black = "#000000e0",
violet = "#400080b0",
blue = "#0000ffb0",
cyan = "#00ffffb0",
dark_green = "#007000b0",
green = "#00ff00b0",
yellow = "#ffff00b0",
brown = "#402000c0",
orange = "#ff8000b0",
red = "#ff0000b0",
magenta = "#ff00ffb0",
pink = "#ff8080b0",
},
}
local MP = minetest.get_modpath("telemosaic")
if minetest.get_modpath("digilines") then
dofile(MP.."/digilines.lua")
end
dofile(MP.."/functions.lua")
dofile(MP.."/beacon.lua")
dofile(MP.."/extender.lua")
dofile(MP.."/key.lua")
dofile(MP.."/abm.lua")