Advertisement
Guest User

remote

a guest
Jul 29th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. rednet.open("right")
  2. while true do
  3.   local sender, message, protocol = rednet.receive()
  4.   if message == "forward" then
  5.     turtle.forward()
  6.   end
  7.   if message == "left" then
  8.     turtle.turnLeft()
  9.   end
  10.   if message == "right" then
  11.     turtle.turnRight()
  12.   end
  13.   if message == "back" then
  14.     turtle.back()
  15.   end
  16.   if message == "up" then
  17.     turtle.up()
  18.   end
  19.   if message == "down" then
  20.     turtle.down()
  21.   end
  22.   if message == "place" then
  23.     turtle.place()
  24.   end
  25.   if message == "dig" then
  26.     turtle.dig()
  27.   end
  28.   if message == "slot1" then
  29.     turtle.select(1)
  30.   end
  31.   if message == "slot2" then
  32.     turtle.select(2)
  33.   end
  34.   if message == "slot3" then
  35.     turtle.select(3)
  36.   end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement