SHARE
TWEET

test

a guest Mar 25th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right", 50)
  2. while true do
  3.  
  4.   id, msg = rednet.receive()
  5.   print(id .. " > " .. msg)
  6.  
  7.   if msg == "turnRight" then
  8.     turtle.turnRight()
  9.     rednet.broadcast("Turned Right")
  10.   elseif msg == "turnLeft" then
  11.     turtle.turnLeft()
  12.     rednet.broadcast("Turned Left")
  13.   elseif msg == "help" then
  14.     rednet.broadcast("Help page: \n>help\n>turn(Right/Left)\n>select\n>refuel\n>getfuel\n>getslot <id>\n>(back/for)ward\n>up/down\n>dig[Down/Up]")
  15.   else
  16.     rednet.broadcast("Unknown command. Try >help")
  17.   end
  18.  
  19. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top