2019-07-01 14:13:07 +02:00
|
|
|
|
|
|
|
pandorabox = {}
|
|
|
|
|
2018-10-02 10:48:33 +02:00
|
|
|
local MP = minetest.get_modpath("pandorabox_custom")
|
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
-- unknown item aliasing
|
2019-06-26 21:34:16 +02:00
|
|
|
dofile(MP.."/alias.lua")
|
2019-07-01 08:57:21 +02:00
|
|
|
|
2020-03-30 13:06:29 +02:00
|
|
|
-- warning message for default password (if set)
|
2020-03-30 13:12:32 +02:00
|
|
|
if minetest.settings:get("default_password") then
|
2020-03-30 13:06:29 +02:00
|
|
|
dofile(MP.."/default_password_warn.lua")
|
|
|
|
end
|
|
|
|
|
2019-09-17 13:57:22 +02:00
|
|
|
-- xban issue
|
|
|
|
dofile(MP.."/get_player_ip.lua")
|
|
|
|
|
2019-09-04 15:25:11 +02:00
|
|
|
-- cleanups
|
|
|
|
dofile(MP.."/cleanup.lua")
|
|
|
|
|
2020-03-03 22:40:14 +01:00
|
|
|
-- prejoin log
|
|
|
|
dofile(MP.."/prejoin.lua")
|
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
-- bucket and xp limitation
|
2019-07-01 08:57:21 +02:00
|
|
|
if minetest.get_modpath("bucket") and minetest.get_modpath("xp_redo") then
|
|
|
|
dofile(MP.."/onplace_restriction.lua")
|
2019-12-16 13:02:26 +01:00
|
|
|
dofile(MP.."/xp_priv.lua")
|
2019-07-01 08:57:21 +02:00
|
|
|
end
|
|
|
|
|
2020-03-16 09:59:15 +01:00
|
|
|
-- advtrains_platform nodes
|
|
|
|
if minetest.get_modpath("advtrains_platform") then
|
|
|
|
dofile(MP.."/advtrains_platform.lua")
|
|
|
|
end
|
|
|
|
|
2020-03-05 15:08:44 +01:00
|
|
|
-- player cleanup
|
2020-05-11 07:34:26 +02:00
|
|
|
-- NOTE: temporarily disabled, might be the cause of https://github.com/pandorabox-io/pandorabox.io/issues/471
|
|
|
|
--[[
|
2020-03-05 15:08:44 +01:00
|
|
|
if minetest.get_modpath("xp_redo") then
|
|
|
|
dofile(MP.."/player_cleanup.lua")
|
|
|
|
end
|
2020-05-11 07:34:26 +02:00
|
|
|
--]]
|
2020-03-05 15:08:44 +01:00
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
-- loot customization
|
2019-07-01 08:57:21 +02:00
|
|
|
if minetest.get_modpath("loot") then
|
|
|
|
dofile(MP.."/loot.lua")
|
|
|
|
end
|
|
|
|
|
2019-11-08 07:13:13 +01:00
|
|
|
-- death fix stuff (stolen from https://github.com/BlockySurvival/bls_custom/blob/master/fix_dead_on_login.lua)
|
|
|
|
dofile(MP.."/fix_dead_on_login.lua")
|
|
|
|
|
2019-08-19 09:42:08 +02:00
|
|
|
-- /spawn command
|
2020-06-29 11:44:02 +02:00
|
|
|
dofile(MP.."/chat/spawn.lua")
|
2019-08-19 09:42:08 +02:00
|
|
|
|
2020-06-04 13:16:18 +02:00
|
|
|
-- various privileges
|
|
|
|
dofile(MP.."/privs/common.lua")
|
|
|
|
dofile(MP.."/privs/protection.lua")
|
|
|
|
dofile(MP.."/privs/fly.lua")
|
2020-06-04 13:29:45 +02:00
|
|
|
dofile(MP.."/privs/layers.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
|
|
|
|
-- death message
|
2019-02-16 08:47:24 +01:00
|
|
|
dofile(MP.."/death.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
|
|
|
|
-- travel stuff
|
|
|
|
dofile(MP.."/travel/travel.lua")
|
2019-07-05 18:44:28 +02:00
|
|
|
dofile(MP.."/teleport_back.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
|
2020-05-11 07:45:13 +02:00
|
|
|
if minetest.get_modpath("protector") then
|
|
|
|
-- protector customizations
|
|
|
|
dofile(MP.."/protector_forceload.lua")
|
|
|
|
end
|
|
|
|
|
2020-06-25 18:16:59 +02:00
|
|
|
if minetest.get_modpath("farming") and farming.mod == "redo" then
|
2019-09-04 08:52:44 +02:00
|
|
|
-- farming customizations
|
|
|
|
dofile(MP.."/farming.lua")
|
|
|
|
end
|
|
|
|
|
2020-05-11 22:21:35 +02:00
|
|
|
if minetest.get_modpath("bamboo") then
|
|
|
|
-- bamboo/plant stuff
|
|
|
|
dofile(MP.."/plant_overrides.lua")
|
|
|
|
end
|
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
if minetest.get_modpath("jumpdrive") then
|
|
|
|
-- limit jumpdrive travel
|
|
|
|
dofile(MP.."/travel/jumpdrive.lua")
|
|
|
|
|
|
|
|
-- jumppoints (different energy requirements)
|
|
|
|
dofile(MP.."/jumppoints.lua")
|
|
|
|
end
|
|
|
|
|
2019-08-27 13:39:47 +02:00
|
|
|
if minetest.get_modpath("pipeworks") then
|
|
|
|
-- pipeworks commands
|
|
|
|
dofile(MP.."/pipeworks.lua")
|
2020-03-15 02:10:33 +11:00
|
|
|
|
|
|
|
if pipeworks.tptube then
|
|
|
|
dofile(MP.."/tp_tube_fixer.lua")
|
|
|
|
end
|
2019-08-27 13:39:47 +02:00
|
|
|
end
|
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
if minetest.get_modpath("telemosaic") then
|
|
|
|
-- limit telemosaic travel
|
|
|
|
dofile(MP.."/travel/telemosaic.lua")
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.get_modpath("travelnet") then
|
|
|
|
-- limit travelnet
|
|
|
|
dofile(MP.."/travel/travelnet.lua")
|
2020-06-29 11:44:02 +02:00
|
|
|
-- server control room teleport command (/control)
|
|
|
|
dofile(MP.."/chat/control.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
end
|
2019-07-01 08:57:21 +02:00
|
|
|
|
2019-07-29 11:45:16 +02:00
|
|
|
if minetest.get_modpath("gravity_manager") then
|
|
|
|
-- register gravity zones
|
|
|
|
dofile(MP.."/gravity_manager.lua")
|
|
|
|
end
|
|
|
|
|
2020-02-03 08:34:54 +01:00
|
|
|
if minetest.get_modpath("planetoidgen") then
|
|
|
|
-- register planets
|
|
|
|
dofile(MP.."/planets.lua")
|
|
|
|
end
|
|
|
|
|
2019-07-01 08:57:21 +02:00
|
|
|
if minetest.get_modpath("skybox") then
|
2019-07-05 09:09:07 +02:00
|
|
|
-- planetary skyboxes
|
2019-07-01 08:57:21 +02:00
|
|
|
dofile(MP.."/skybox.lua")
|
2020-02-21 08:13:20 +01:00
|
|
|
|
|
|
|
-- fly check
|
|
|
|
dofile(MP.."/fly.lua")
|
2019-07-01 08:57:21 +02:00
|
|
|
end
|
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
-- item/nodes stats
|
2019-05-01 19:39:28 +02:00
|
|
|
dofile(MP.."/stats.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
|
|
|
|
-- join priv set/revoke
|
2019-05-01 19:39:28 +02:00
|
|
|
dofile(MP.."/join.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
|
|
|
|
-- craft overrides
|
2019-05-01 19:39:28 +02:00
|
|
|
dofile(MP.."/crafts.lua")
|
2019-07-01 08:57:21 +02:00
|
|
|
|
|
|
|
if minetest.get_modpath("technic") then
|
2019-08-23 19:45:15 +10:00
|
|
|
-- grinder recipes
|
2019-07-01 08:57:21 +02:00
|
|
|
dofile(MP.."/grinder.lua")
|
2019-08-23 12:53:01 +02:00
|
|
|
|
2019-08-23 19:45:15 +10:00
|
|
|
-- extractor recipes
|
|
|
|
dofile(MP.."/extractor.lua")
|
2019-09-18 13:01:00 +02:00
|
|
|
|
|
|
|
-- tweaks
|
|
|
|
dofile(MP.."/technic.lua")
|
2019-07-01 08:57:21 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.get_modpath("technic_cnc") then
|
|
|
|
dofile(MP.."/cnc.lua")
|
|
|
|
end
|
2019-07-01 08:46:37 +02:00
|
|
|
|
|
|
|
if minetest.get_modpath("mesecons_mvps") then
|
|
|
|
dofile(MP.."/mvps_stopper.lua")
|
|
|
|
end
|
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
-- join-limit bypass
|
2019-05-22 15:07:23 +02:00
|
|
|
dofile(MP.."/userlimit.lua")
|
2019-07-05 09:09:07 +02:00
|
|
|
|
|
|
|
-- protected sethome
|
2019-05-28 13:57:32 +02:00
|
|
|
dofile(MP.."/sethome.lua")
|
2019-07-01 08:57:21 +02:00
|
|
|
|
2019-07-05 09:09:07 +02:00
|
|
|
-- letters mod
|
2019-07-01 08:57:21 +02:00
|
|
|
if minetest.get_modpath("letters") then
|
|
|
|
dofile(MP.."/letters.lua")
|
|
|
|
end
|
|
|
|
|
2019-07-29 11:10:46 +02:00
|
|
|
-- spacecannon mod
|
|
|
|
if minetest.get_modpath("spacecannon") then
|
|
|
|
dofile(MP.."/spacecannon.lua")
|
|
|
|
end
|
|
|
|
|
2019-08-19 09:02:18 +02:00
|
|
|
-- recipe redefinitions
|
|
|
|
dofile(MP.."/recipes.lua")
|
|
|
|
|
2019-07-26 07:37:59 +02:00
|
|
|
-- general hacks
|
|
|
|
dofile(MP.."/hacks.lua")
|
|
|
|
|
2020-01-13 07:22:14 +01:00
|
|
|
-- spawn fast walk
|
|
|
|
if minetest.get_modpath("player_monoids") then
|
|
|
|
dofile(MP.."/spawn_fast_walk.lua")
|
|
|
|
end
|
|
|
|
|
2020-05-05 16:02:46 +02:00
|
|
|
-- maptools custmization
|
|
|
|
if minetest.get_modpath("maptools") then
|
|
|
|
dofile(MP.."/maptools.lua")
|
|
|
|
end
|
|
|
|
|
2020-01-13 07:26:50 +01:00
|
|
|
-- custom powered stand from scifi_nodes
|
2019-12-05 01:20:02 +11:00
|
|
|
if minetest.get_modpath("scifi_nodes") then
|
|
|
|
dofile(MP.."/scifi_override.lua")
|
|
|
|
end
|
2020-01-13 07:26:50 +01:00
|
|
|
|
2020-01-16 20:45:24 +11:00
|
|
|
if minetest.get_modpath("bonemeal") then
|
|
|
|
dofile(MP.."/bonemeal.lua")
|
|
|
|
end
|
|
|
|
|
2020-01-13 07:26:50 +01:00
|
|
|
if minetest.settings:get_bool("enable_integration_test") then
|
|
|
|
dofile(MP.."/integration_test.lua")
|
|
|
|
end
|
2020-01-16 14:19:44 +01:00
|
|
|
|
|
|
|
if minetest.settings:get_bool("enable_recipe_test") then
|
|
|
|
dofile(MP.."/recipe_test.lua")
|
|
|
|
end
|
2020-04-21 22:54:54 +10:00
|
|
|
|
|
|
|
if minetest.get_modpath("technic") and minetest.get_modpath("mobs_animal") then
|
|
|
|
dofile(MP.."/mobs_animal.lua")
|
|
|
|
end
|