Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. rednet.open("back")
  2. m = peripheral.wrap("right")
  3. while true do
  4. e,a,b,c = os.pullEvent("rednet_message")
  5. if (a == 58) then
  6. if (b == "down") then
  7. m.move(0, false, false)
  8. elseif (b == "up") then
  9. m.move(1, false, false)
  10. end
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement