Advertisement
mrkarp

autoPour

Sep 10th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. --autoPour
  2. --Made By Maimer & Karp
  3. --9/10/2013
  4.  
  5. write("Pouring glass. Ctrl+T to terminate.")
  6. local count = 0--Set the count to 0
  7.  
  8. while true do --Loop start
  9. local mon = peripheral.wrap("bottom")--Assign Which Side The Monitor Is Located
  10.  
  11. redstone.setOutput("right", true)--Assign Which Side Outputs A Signal
  12. --redstone.setOutput("top", true)
  13. sleep(1)
  14. mon.clear()
  15. mon.setCursorPos(1,1)
  16. mon.setTextColor(colors.orange)
  17. mon.setTextScale(1)
  18. mon.write("Pouring...")--Pouring Of Material
  19. sleep(1)
  20. redstone.setOutput("right", false)--Turn Off Signal
  21. --redstone.setOutput("top", false)
  22. sleep(6)
  23.  
  24. for i=1,5 do--Counter [i]
  25. mon.clear()
  26. mon.setCursorPos(1,1)
  27. mon.setTextScale(1)
  28. mon.write("Cooling.. "..5-i)
  29. sleep(1)
  30. end
  31. mon.clear()
  32. mon.setCursorPos(1,1)
  33. mon.setTextScale(1)
  34. count = count + 1
  35.  
  36. mon.write("+1 Glass") "n"
  37. mon.setCursorPos(1,2)
  38. mon.write(count.." Total")
  39. sleep(1)
  40.  
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement