1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-10 04:00:19 +01:00
minetest_game/mods/carts/init.lua
2019-09-10 19:09:51 +02:00

22 lines
577 B
Lua

-- carts/init.lua
-- Load support for MT game translation.
local S = minetest.get_translator("carts")
carts = {}
carts.modpath = minetest.get_modpath("carts")
carts.railparams = {}
carts.get_translator = S
-- Maximal speed of the cart in m/s (min = -1)
carts.speed_max = 7
-- Set to -1 to disable punching the cart from inside (min = -1)
carts.punch_speed_max = 5
-- Maximal distance for the path correction (for dtime peaks)
carts.path_distance_max = 3
dofile(carts.modpath.."/functions.lua")
dofile(carts.modpath.."/rails.lua")
dofile(carts.modpath.."/cart_entity.lua")