init.lua 517 B

1234567891011121314151617
  1. local mod_name = "dlxtrains_support_wagons"
  2. dlxtrains_support_wagons = {}
  3. dlxtrains_support_wagons.S = minetest.get_translator(mod_name)
  4. dlxtrains_support_wagons.max_wagon_length = 100 -- A large number to represent "unlimited"
  5. if minetest.get_modpath( "dlxtrains" ) and dlxtrains then
  6. dlxtrains_support_wagons.max_wagon_length = dlxtrains.max_wagon_length
  7. end
  8. local mod_path = minetest.get_modpath(mod_name)
  9. dofile(mod_path.."/items.lua")
  10. dofile(mod_path.."/wagons.lua")
  11. dofile(mod_path.."/wagon_recipes.lua")