Guest User

PortalHub1.0

a guest
Feb 1st, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.76 KB | None | 0 0
  1. while true do
  2.  
  3.   term.clear()
  4.  term.setCursorPos(1, 1)
  5.     print("Type in the number of your desired destination then press enter") -- Start up message
  6.     print("[1] - Destination 1") -- Change "Destination 1" to the name of your first destination
  7.     print("[2] - Destination 2") -- Change "Destination 2" to the name of your second destination
  8.     print("[3] - Destination 3") -- Change "Destination 3" to the name of your third destination
  9. input = read()
  10. if input == "1" then
  11.     redstone.setBundledOutput("back", colors.black) -- Change "black" to the color of the wire you use for your first portal spawner
  12.     term.clear()
  13.     term.setCursorPos(1, 1)
  14.     print("Portal to Destination 1 is open") -- Change "Destination 1" to the name of your first destination
  15.     sleep(5)
  16.     term.clear()
  17.     term.setCursorPos(1, 1)
  18.     print("Portal to Destination 1 has closed") -- Change "Destination 1" to the name of your first destination
  19.     sleep(2)
  20.     redstone.setBundledOutput("back", 0)
  21.   end
  22. if input == "2" then
  23.     redstone.setBundledOutput("back", colors.blue) -- Change "blue" to the color of the wire you use for your second portal spawner
  24.     term.clear()
  25.     term.setCursorPos(1, 1)
  26.     print("Portal to Destination 2 is open")
  27.     sleep(5)
  28.     term.clear()
  29.     term.setCursorPos(1, 1)
  30.     print("Portal to Destination 2 has closed")
  31.     sleep(2)
  32.     redstone.setBundledOutput("back", 0)
  33.  end
  34.     if input == "3" then
  35.     redstone.setBundledOutput("back", colors.red) -- Change "red" to the color of the wire you use for your third portal spawner
  36.     term.clear()
  37.     term.setCursorPos(1, 1)
  38.     print("Portal to Destination 3 is open")
  39.     sleep(5)
  40.     term.clear()
  41.     term.setCursorPos(1, 1)
  42.     print("Portal to Destination 3 has closed")
  43.     sleep(2)
  44.     redstone.setBundledOutput("back", 0)
  45.  
  46.  end
  47. end
  48.  
  49.  
  50. -- Made by Sprinricco 2013
Advertisement
Add Comment
Please, Sign In to add comment