Advertisement
Guest User

server

a guest
Feb 28th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. while true do
  2. g = peripheral.wrap("left, monitor_0")
  3. b1 = peripheral.wrap("left, monitor_1")
  4. b2 = peripheral.wrap("left, monitor_2")
  5. b3 = peripheral.wrap("left, monitor_3")
  6. b4 = peripheral.wrap("left, monitor_4")
  7. redstone = peripheral.wrap("bottom")
  8. rs = redstone
  9. term.clear()
  10. b4.clear()
  11. term.setCursorPos(1, 1)
  12. test = rs.getBundledInput("bottom, colors.white + colors.orange + colors.yellow")
  13. print("floor =")
  14. term.setCursorPos(1, 2)
  15. if test == 1 then
  16. print("B4")
  17. end
  18. if test == 2 then
  19. print("B3")
  20. end
  21. if test == 4 then
  22. print("B2")
  23. end
  24. if test == 16 then
  25. print("B1")
  26. end
  27. if test == 32 then
  28. print("G")
  29. end
  30. sleep(0)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement