Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bEnd = false
- parallel.waitForAny(
- function()
- while true do
- redstone.setOutput("bottom",true)
- redstone.setOutput("top",false)
- iCounterNeg=60
- for iCounter=1,600,1 do
- shell.run('clear')
- print("Harvesting...")
- iCounterNeg=iCounterNeg-0.1
- print("Time remaining until WAITING: "..iCounterNeg.." seconds")
- print("")
- print("Press any key (except ESC) to end")
- sleep(0.1)
- end
- redstone.setOutput("bottom",false)
- redstone.setOutput("top",true)
- iCounterNeg=180
- for iCounter=1,1800,1 do
- shell.run('clear')
- print("WAITING")
- iCounterNeg=iCounterNeg-0.1
- print("Time remaining until HARVEST: "..iCounterNeg.." seconds")
- print("")
- print("Press any key (except ESC) to end")
- sleep(0.1)
- end
- end
- end,
- function()
- while not bEnd do
- local event, key = os.pullEvent("key")
- if key ~= keys.escape then
- bEnd = true
- end
- end
- end
- )
- shell.run('clear')
- redstone.setOutput("bottom",false)
- redstone.setOutput("top",true)
- print("Farm Turned Off")
Advertisement
Add Comment
Please, Sign In to add comment