Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Would you like to TELEPORT or LIST the available locations?")
- option = read()
- if option == "LIST" then
- term.clear()
- term.setCursorPos(1,1)
- print("ISLAND is the original island, where the world of TrainCraft started.")
- print("REACTORS is the teleport to off the coast of the Island, where nuclear power plants run wild.")
- print("STAR is the centre of the Meth Star, pride and joy of the drug universe")
- print("TOMMO is the command for Tommo's ship, type it and teleport.")
- elseif option == "TELEPORT" then
- term.clear()
- term.setCursorPos(1,1)
- print("Which destination will you choose? Or click any key to go back.")
- option2 = read()
- if option2 == "ISLAND" then
- print("Teleport is charging, you have selected - ISLAND")
- sleep(4)
- commands.tp("@p 36.5 147.0 212.5")
- elseif option2 == "REACTORS" then
- print("Teleport is charging, you have selected - REACTORS")
- sleep(4)
- commands.tp("@p 629.5 84.0 208.5")
- elseif option2 == "STAR" then
- print("Teleport is charging, you have selected - STAR")
- sleep(4)
- commands.tp("@p -146.5 184.0 -222.0")
- elseif option2 == "TOMMO" then
- print("Teleport is charging, you have selected - STAR")
- sleep(4)
- commands.tp("@p -113.5 235.0 -410.5")
- else
- end
- end
- else
- print("Unknown command, please type either TELEPORT or LIST.")
- end
- end
Add Comment
Please, Sign In to add comment