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
|
2024-04-11 11:17:06 +02:00
|
|
|
mod.SPEED_MAX = 10
|
2024-04-07 12:18:55 +02:00
|
|
|
mod.FRICTION = 0.4
|
|
|
|
mod.MAX_TRAIN_LENGTH = 4
|
2024-04-07 14:27:53 +02:00
|
|
|
mod.CART_BLOCK_SIZE = 64
|
2024-04-09 10:14:30 +02:00
|
|
|
mod.PASSENGER_ATTACH_POSITION = vector.new(0, -1.75, 0)
|
2017-01-05 15:23:14 +01:00
|
|
|
|
2024-04-07 00:10:22 +02:00
|
|
|
for _,filename in pairs({"storage","functions","rails","train","carts"}) do
|
2024-04-06 19:09:54 +02:00
|
|
|
dofile(modpath.."/"..filename..".lua")
|
|
|
|
end
|