VoxeLibre/mods/ENTITIES/mcl_minecarts/init.lua

17 lines
449 B
Lua
Raw Normal View History

local modname = minetest.get_current_modname()
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
mcl_minecarts.modpath = modpath
-- Constants
2024-04-11 11:17:06 +02:00
mod.SPEED_MAX = 10
mod.FRICTION = 0.4
mod.MAX_TRAIN_LENGTH = 4
mod.CART_BLOCK_SIZE = 64
mod.PASSENGER_ATTACH_POSITION = vector.new(0, -1.75, 0)
2017-01-05 15:23:14 +01:00
for _,filename in pairs({"storage","functions","rails","train","carts"}) do
dofile(modpath.."/"..filename..".lua")
end