init.lua 465 B

123456789101112131415161718192021
  1. carts = {}
  2. carts.modpath = minetest.get_modpath("carts")
  3. carts.railparams = {}
  4. -- Maximal speed of the cart in m/s (min = -1)
  5. carts.speed_max = 10
  6. -- Set to -1 to disable punching the cart from inside (min = -1)
  7. carts.punch_speed_max = 5
  8. dofile(carts.modpath.."/functions.lua")
  9. dofile(carts.modpath.."/rails.lua")
  10. -- Support for non-default games
  11. if not default.player_attached then
  12. default.player_attached = {}
  13. end
  14. dofile(carts.modpath.."/cart_entity.lua")