3 -- Load support for MT game translation.
4 local S = minetest.get_translator("carts")
7 carts.modpath = minetest.get_modpath("carts")
9 carts.get_translator = S
11 -- Maximal speed of the cart in m/s (min = -1)
13 -- Set to -1 to disable punching the cart from inside (min = -1)
14 carts.punch_speed_max = 5
15 -- Maximal distance for the path correction (for dtime peaks)
16 carts.path_distance_max = 3
19 dofile(carts.modpath.."/functions.lua")
20 dofile(carts.modpath.."/rails.lua")
21 dofile(carts.modpath.."/cart_entity.lua")
23 -- Register rails as dungeon loot
24 if minetest.global_exists("dungeon_loot") then
25 dungeon_loot.register({
26 name = "carts:rail", chance = 0.35, count = {1, 6}