Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --autoPour
- --Made By Maimer & Karp
- --9/10/2013
- write("Pouring glass. Ctrl+T to terminate.")
- local count = 0--Set the count to 0
- while true do --Loop start
- local mon = peripheral.wrap("bottom")--Assign Which Side The Monitor Is Located
- redstone.setOutput("right", true)--Assign Which Side Outputs A Signal
- redstone.setOutput("left", true)
- sleep(2)--compinsate for ticks
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- mon.write("Pouring...")--Pouring Of Material
- sleep(3)
- redstone.setOutput("right", false)--Turn Off Signal
- redstone.setOutput("left", false)
- sleep(6)
- for i=1,5 do--Counter [i]
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- mon.write("Cooling.. "..5-i)
- sleep(1)
- end
- mon.clear()
- mon.setCursorPos(1,1)
- mon.setTextScale(1)
- count = count + 1
- mon.write("+1 Glass")
- mon.setCursorPos(1,2)
- mon.write(count.." Total")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement