mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 03:20:03 -04:00
M mods/beds/beds.lua M mods/beds/init.lua M mods/carts/cart_entity.lua M mods/carts/init.lua M mods/carts/rails.lua M mods/creative/init.lua M mods/creative/inventory.lua M mods/default/chests.lua M mods/default/craftitems.lua M mods/default/furnace.lua M mods/default/init.lua M mods/default/nodes.lua M mods/default/tools.lua M mods/default/torch.lua M mods/default/trees.lua M mods/farming/api.lua M mods/farming/hoes.lua M mods/farming/init.lua M mods/farming/nodes.lua
21 lines
570 B
Lua
21 lines
570 B
Lua
-- carts/init.lua
|
|
|
|
-- Load support for MT game translation.
|
|
local S = minetest.get_translator()
|
|
|
|
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")
|