Tommo5261

Untitled

Dec 30th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.40 KB | None | 0 0
  1. while true do
  2.     term.clear()
  3.     term.setCursorPos(1,1)
  4.     print("Would you like to TELEPORT or LIST the available locations?")
  5.     option = read()
  6.     if option == "LIST" then
  7.         term.clear()
  8.         term.setCursorPos(1,1)
  9.         print("ISLAND is the original island, where the world of TrainCraft started.")
  10.         print("REACTORS is the teleport to off the coast of the Island, where nuclear power plants run wild.")
  11.         print("STAR is the centre of the Meth Star, pride and joy of the drug universe")
  12.         print("TOMMO is the command for Tommo's ship, type it and teleport.")
  13.     elseif option == "TELEPORT" then
  14.         term.clear()
  15.         term.setCursorPos(1,1)
  16.         print("Which destination will you choose? Or click any key to go back.")
  17.         option2 = read()
  18.         if option2 == "ISLAND" then
  19.             print("Teleport is charging, you have selected - ISLAND")
  20.             sleep(4)
  21.             commands.tp("@p 36.5 147.0 212.5")
  22.         elseif option2 == "REACTORS" then
  23.             print("Teleport is charging, you have selected - REACTORS")
  24.             sleep(4)
  25.             commands.tp("@p 629.5 84.0 208.5")
  26.         elseif option2 == "STAR" then
  27.             print("Teleport is charging, you have selected - STAR")
  28.             sleep(4)
  29.             commands.tp("@p -146.5 184.0 -222.0")
  30.         elseif option2 == "TOMMO" then
  31.             print("Teleport is charging, you have selected - STAR")
  32.             sleep(4)
  33.             commands.tp("@p -113.5 235.0 -410.5")
  34.         else
  35.             end
  36.         end
  37.     else
  38.         print("Unknown command, please type either TELEPORT or LIST.")
  39.         end
  40.     end
Add Comment
Please, Sign In to add comment