DogePastes

QuarryTaxi.lua

Jun 17th, 2021 (edited)
197
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. id,msg,prot = rednet.receive()
  2. rednet.open("left")
  3.  
  4.  
  5. function Commands()
  6.     if msg == "Down" then
  7.         turtle.down()
  8.     elseif msg == "Forward" then
  9.         turtle.forward()
  10.     elseif msg == "turnLeft" then
  11.         turtle.turnLeft()
  12.         turtle.forward()
  13.         turtle.turnLeft()
  14.     elseif msg == "turnRight" then
  15.         turtle.turnRight()
  16.         turtle.forward()
  17.         turtle.turnRight()
  18.     elseif msg == "Turn Around" then
  19.         turtle.turnLeft()
  20.         turtle.turnLeft()
  21.     elseif msg == "Up" then
  22.         turtle.up()
  23.     end
  24. end
  25.  
  26.  
  27. function Start()
  28.     if msg == "Begin" then
  29.         while true do
  30.             Commands()
  31.         end
  32.     end
  33. end
  34.  
  35. Start()
RAW Paste Data