Andrew2448

TunnelBore

Jan 26th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. local s = "back"
  2. function up()
  3.     rs.setBundledOutput(s, colors.white)
  4.     sleep(.5)
  5.     rs.setBundledOutput(s, 0)
  6.     sleep(.5)
  7. end
  8. function down()
  9.     rs.setBundledOutput(s, colors.orange)
  10.     sleep(.5)
  11.     rs.setBundledOutput(s, 0)
  12.     sleep(.5)
  13. end
  14. function right()
  15.     rs.setBundledOutput(s, colors.lime)
  16.     sleep(.1)
  17.     rs.setBundledOutput(s, 0)
  18.     sleep(13.0)
  19. end
  20. function left()
  21.     rs.setBundledOutput(s, colors.yellow)
  22.     sleep(.1)
  23.     rs.setBundledOutput(s, 0)
  24.     sleep(13.0)
  25. end
  26. function forward()
  27.     rs.setBundledOutput(s, colors.magenta)
  28.     sleep(.1)
  29.     rs.setBundledOutput(s, 0)
  30.     sleep(13.0)
  31. end
  32. function back()
  33.     rs.setBundledOutput(s, colors.lightBlue)
  34.     sleep(.1)
  35.     rs.setBundledOutput(s, 0)
  36.     sleep(13.0)
  37. end
  38. while true do
  39.     if rs.getInput("left") then
  40.         forward()
  41.     end
  42.     else
  43.         print("Not recieving a redstone signal. Fix you derp")
  44.     end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment