init.lua 402 B

123456789101112
  1. teleport = {}
  2. teleport.local_pos = {} --saved as a position
  3. teleport.remote_pos = {} --saved as a position
  4. teleport.other_stations = {} --a list of all the stations.
  5. dofile(minetest.get_modpath('teleport')..'/formspecs.lua')
  6. dofile(minetest.get_modpath('teleport')..'/functions.lua')
  7. dofile(minetest.get_modpath('teleport')..'/nodes.lua')
  8. teleport.load()
  9. minetest.register_on_shutdown(teleport.save)