SHOW:
|
|
- or go back to the newest paste.
| 1 | - | mon = peripheral.wrap("left")
|
| 1 | + | mon = peripheral.wrap("top")
|
| 2 | - | rednet.open("right")
|
| 2 | + | rednet.open("left")
|
| 3 | mon.clear() | |
| 4 | mon.setCursorPos(21, 1) | |
| 5 | mon.write("id:"..os.getComputerID())
| |
| 6 | - | |
| 6 | + | mon.setCursorPos(21, 2) |
| 7 | - | time = os.time() |
| 7 | + | mon.write("fuel:"..turtle.getFuelLevel())
|
| 8 | - | time = textutils.formatTime(time) |
| 8 | + | |
| 9 | while true do | |
| 10 | - | mon.clear() |
| 10 | + | |
| 11 | - | mon.setCursorPos(1, 1) |
| 11 | + | tnum = tonumber(string.sub(msg, 1, 2)) |
| 12 | - | mon.write(time) |
| 12 | + | if tnum % 2 == 1 then |
| 13 | - | mon.setCursorPos(1, 2) |
| 13 | + | cx = 1 |
| 14 | - | mon.write(sid..":"..msg) |
| 14 | + | cy = tonumber(tnum / 2) + 3 |
| 15 | else | |
| 16 | cx = 11 | |
| 17 | cy = tonumber(tnum / 2) + 2 | |
| 18 | end | |
| 19 | mon.setCursorPos(cx, cy) | |
| 20 | mon.write(msg) | |
| 21 | end | |
| 22 | ||
| 23 |