2021-05-29 16:12:33 +02:00
|
|
|
local modname = minetest.get_current_modname()
|
2024-04-06 19:09:54 +02:00
|
|
|
local modpath = minetest.get_modpath(modname)
|
2017-01-05 15:23:14 +01:00
|
|
|
mcl_minecarts = {}
|
2024-03-28 08:11:59 +01:00
|
|
|
local mod = mcl_minecarts
|
2024-04-06 19:09:54 +02:00
|
|
|
mcl_minecarts.modpath = modpath
|
|
|
|
|
|
|
|
-- Constants
|
2017-01-05 15:23:14 +01:00
|
|
|
mcl_minecarts.speed_max = 10
|
2019-01-30 03:36:36 +01:00
|
|
|
mcl_minecarts.check_float_time = 15
|
2024-04-06 19:09:54 +02:00
|
|
|
mcl_minecarts.FRICTION = 0.4
|
2017-01-05 15:23:14 +01:00
|
|
|
|
2024-04-06 19:09:54 +02:00
|
|
|
for _,filename in pairs({"functions","rails","train","storage","carts"}) do
|
|
|
|
dofile(modpath.."/"..filename..".lua")
|
|
|
|
end
|