Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open('top')
- mon = peripheral.wrap("right")
- coords = "Unplaced"
- startTime = os.clock()
- while(true) do
- sendId, message, protocol = rednet.receive(10)
- if(sendId ~= nil) then
- coords = message
- startTime = os.clock()
- end
- oldTerm = term.redirect(mon)
- term.clear()
- timeSincePlacement = os.clock() - startTime
- print(coords .. "\nTime since placement: " .. timeSincePlacement)
- term.redirect(oldTerm)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement