techage_modpack/minecart/init.lua

52 lines
1.3 KiB
Lua
Raw Permalink Normal View History

2021-05-14 20:19:09 +03:00
--[[
Minecart
========
2023-02-04 17:45:23 +03:00
Copyright (C) 2019-2023 Joachim Stolberg
2021-05-14 20:19:09 +03:00
MIT
See license.txt for more information
]]--
minecart = {}
-- Version for compatibility checks, see readme.md/history
2023-08-26 11:27:15 +03:00
minecart.version = 2.05
2021-05-14 20:19:09 +03:00
minecart.hopper_enabled = minetest.settings:get_bool("minecart_hopper_enabled") ~= false
minecart.teleport_enabled = minetest.settings:get_bool("minecart_teleport_enabled") == true
-- Test for MT 5.4 new string mode
minecart.CLIP = minetest.features.use_texture_alpha_string_modes and "clip" or false
minecart.S = minetest.get_translator("minecart")
local MP = minetest.get_modpath("minecart")
dofile(MP .. "/baselib.lua")
dofile(MP .. "/storage.lua")
dofile(MP .. "/rails.lua")
dofile(MP .. "/monitoring.lua")
dofile(MP .. "/recording.lua")
dofile(MP .. "/hopperlib.lua")
dofile(MP .. "/nodelib.lua")
dofile(MP .. "/entitylib.lua")
dofile(MP .. "/api.lua")
dofile(MP .. "/minecart.lua")
dofile(MP .. "/buffer.lua")
dofile(MP .. "/protection.lua")
2021-10-30 17:52:44 +03:00
--dofile(MP .. "/tool.lua") -- for debugging only
2021-05-14 20:19:09 +03:00
dofile(MP .. "/signs.lua")
dofile(MP .. "/terminal.lua")
dofile(MP .. "/pusher.lua")
2023-02-04 17:45:23 +03:00
dofile(MP .. "/beduino.lua")
2021-05-14 20:19:09 +03:00
if minecart.hopper_enabled then
dofile(MP .. "/hopper.lua")
dofile(MP .. "/mods_support.lua")
end
dofile(MP .. "/doc.lua")
2023-08-26 11:27:15 +03:00
dofile(MP .. "/manual.lua")
2021-05-14 20:19:09 +03:00
minetest.log("info", "[MOD] Minecart loaded")