Advertisement
arismoko

turtleminerstartup

Sep 26th, 2021 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Ari's Turtle Interface")
  2. rednet.open("right")
  3. while true do
  4.     local senderid,message = rednet.receive()
  5.     if senderid == 69 and message == "w"
  6.     then turtle.forward()
  7.     elseif senderid == 69 and message == "s"
  8.     then turtle.back()
  9.     elseif senderid == 69 and message == "a"
  10.     then turtle.turnLeft()
  11.     elseif senderid == 69 and message == "d"
  12.     then turtle.turnRight()
  13.     elseif senderid == 69 and message == "up"
  14.     then turtle.digUp(left)
  15.     elseif senderid == 69 and message == "pageUp"
  16.     then turtle.up()
  17.     elseif senderid == 69 and message == "pageDown"
  18.     then turtle.down()
  19.     elseif senderid== 69 and message == "down"
  20.     then turtle.digDown(left)
  21.     elseif senderid== 69 and message == "left"
  22.     then turtle.placeDown()
  23.     elseif senderid== 69 and message == "right"
  24.     then turtle.placeUp()
  25.     elseif senderid== 69 and message == "space"
  26.     then turtle.dig(left)
  27.     elseif senderid== 69 and message == "f"
  28.     then turtle.suck()
  29.     elseif senderid == 69 and message == "r"
  30.     then turtle.suckUp()
  31.     elseif senderid == 69 and message == "v"
  32.     then turtle.suckDown()
  33.     end
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement