Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("left")
- local Bake_Time = 1200
- local Harvest_Time = 300
- local Bake_Time_Remain
- local Harvest_Time_Remain
- --rs.setOutput("bottom", true)
- while true
- do
- for i = 1, Bake_Time
- do
- Bake_Time_Remain = Bake_Time - i
- Harvest_Time_Remain = Harvest_Time - i
- while Bake_Time_Remain == 0
- do
- Bake_Time_Remain = Bake_Time
- end
- while Harvest_Time_Remain == 0
- do
- Harvest_Time_Remain = Harvest_Time
- end
- ------END OF REMAINING TIME COUNT
- mon.clear()
- mon.setTextScale(1)
- ------END OF SCREEN FORMATTING
- mon.setCursorPos(1,1)
- mon.write("Next bake cycle: " .. Bake_Time_Remain .. " " .. "seconds!")
- ------END OF CAKE INFO.
- mon.setCursorPos(1,2)
- --mon.write("Next harvest in: " .. Harvest Time_Remain .. " " .. "seconds!")
- mon.write("Next harvest in: " .. Harvest_Time_Remain .. " " .. "seconds!")
- ------END OF HARVEST INFO.
- sleep(1)
- end
- sleep(5)
- ------LISTEN FOR THE TERMINATE EVENT
- while true
- do
- local event = os.pullEventRaw()
- if event == "terminate"
- then
- rs.setOutput("bottom", flase)
- return
- else
- rs.setOutput("bottom", true)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement