Advertisement
OmegaRogue

WarpDrive Transporter

Feb 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. local Input
  2. local x
  3. local y
  4. local z
  5. print("Side of Computer touching the Transporter:")
  6. Input = read()
  7. transporter = peripheral.wrap(Input)
  8. while true do
  9.     Input = read()
  10.     if Input == "source" then
  11.         Input = read()
  12.         x = Input
  13.         Input = read()
  14.         y = Input
  15.         Input = read()
  16.         z = Input
  17.         transporter.source(x,y,z)
  18.         print(x," ",y," ",z)
  19.     elseif Input == "dest" then
  20.         Input = read()
  21.         x = Input
  22.         Input = read()
  23.         y = Input
  24.         Input = read()
  25.         z = Input
  26.         transporter.dest(x,y,z)
  27.         print(x," ",y," ",z)
  28.        
  29.     elseif Input == "energize" then
  30.         transporter.energize()
  31.        
  32.     elseif Input == "lock" then
  33.         transporter.lock()
  34.        
  35.     elseif Input == "release" then
  36.         transporter.release()
  37.        
  38.     elseif Input == "lockStrength" then
  39.         transporter.lockStrength()
  40.        
  41.     elseif Input == "powerBoost" then
  42.         Input = read()
  43.         transporter.powerBoost(Input)
  44.        
  45.     end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement