Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("top")
- rednet.open("left")
- mon.clear()
- mon.setCursorPos(21, 1)
- mon.write("id:"..os.getComputerID())
- mon.setCursorPos(21, 2)
- mon.write("fuel:"..turtle.getFuelLevel())
- while true do
- local sid, msg, dis = rednet.receive()
- tnum = tonumber(string.sub(msg, 1, 2))
- if tnum % 2 == 1 then
- cx = 1
- cy = tonumber(tnum / 2) + 3
- else
- cx = 11
- cy = tonumber(tnum / 2) + 2
- end
- mon.setCursorPos(cx, cy)
- mon.write(msg)
- end
Advertisement
Add Comment
Please, Sign In to add comment