Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- m = peripheral.wrap("left")
- state = rs.getInput("back")
- if state == false then
- m.clear()
- m.setCursorPos(1,1)
- m.write("Workshop")
- m.setCursorPos(1,3)
- m.write("Status: ")
- m.setCursorPos(9,3)
- m.setBackgroundColor(colors.green)
- m.write(" Sealed ")
- m.setBackgroundColor(colors.black)
- m.setCursorPos(1,4)
- m.write("Time:")
- time = os.time()
- ftime = textutils.formatTime(time, false)
- m.setCursorPos(10,4)
- m.write(ftime)
- else
- m.clear()
- m.setCursorPos(1,4)
- m.write("Time:")
- time = os.time()
- ftime = textutils.formatTime(time, false)
- m.setCursorPos(10,4)
- m.write(ftime)
- m.setCursorPos(1,1)
- m.write("Workshop")
- m.setCursorPos(1,3)
- m.write("Status: ")
- m.setCursorPos(9,3)
- m.setBackgroundColor(colors.red)
- m.write(" Unsealed ")
- m.setBackgroundColor(colors.black)
- sleep(1)
- m.setCursorPos(9,3)
- m.write(" Unsealed ")
- m.setCursorPos(10,4)
- m.write(ftime)
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement