Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ************************************ --
- -- Quarrying Turtle Monitoring Programe --
- -- By Jharakn --
- -- ************************************ --
- local monitor = peripheral.wrap("top")
- rednet.open("left")
- monitor.clear()
- monitor.setCursorPos(1,1)
- local line = {"-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-", "-"}
- while true do
- local senderId, message, distance = rednet.receive()
- print(message)
- --line.1 = line.2; line.2 = line.3; line.3 = line.4; line.4 = line.5; line.5 = line.6; line.6 = line.7; line.7 = line.8; line.8 = line.9; line.9 = line.10; line.10 = line.11; line.11 = line.12
- for i = 1,11 do
- line[i] = line[i+1]
- end
- line[12] = message
- for i = 1,12 do
- monitor.setCursorPos(1,i)
- monitor.clearLine()
- monitor.write(line[i])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement