Advertisement
mrkarp

autoPour

Nov 17th, 2013
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 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("left", true)
  13. sleep(2)--compinsate for ticks
  14. mon.clear()
  15. mon.setCursorPos(1,1)
  16. mon.setTextScale(1)
  17. mon.write("Pouring...")--Pouring Of Material
  18. sleep(3)
  19. redstone.setOutput("right", false)--Turn Off Signal
  20. redstone.setOutput("left", false)
  21.  
  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.  
  31. end
  32. mon.clear()
  33. mon.setCursorPos(1,1)
  34. mon.setTextScale(1)
  35. count = count + 1
  36.  
  37. mon.write("+1 Glass")
  38. mon.setCursorPos(1,2)
  39. mon.write(count.." Total")
  40. sleep(1)
  41.  
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement