Advertisement
Guest User

startup

a guest
Mar 3rd, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.67 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. while true do
  4.  id, msg = rednet.receive()
  5.  
  6.  if msg == "forward" then
  7.   turtle.forward()
  8.  end
  9.  
  10.  if msg == "back" then
  11.   turtle.back()
  12.  end
  13.  
  14.  if msg == "up" then
  15.   turtle.up()
  16.  end
  17.  
  18.  if msg == "down" then
  19.   turtle.down()
  20.  end
  21.  
  22.  if msg == "right" then
  23.   turtle.turnRight()
  24.  end
  25.  
  26.  if msg == "left" then
  27.   turtle.turnLeft()
  28.  end
  29.  
  30.  if msg == "uturn" then
  31.   turtle.turnRight()
  32.   turtle.turnRight()
  33.  end
  34.  
  35.  if msg == "dig" then
  36.   turtle.dig()
  37.  end
  38.  
  39.  if msg == "digdown" then
  40.   turtle.digDown()
  41.  end
  42.  
  43.  if msg == "digup" then
  44.   turtle.digUp()
  45.  end
  46.  
  47.  if msg == "place" then
  48.   turtle.place()
  49.  end
  50.  
  51.  if msg == "placedown" then
  52.   turtle.placeDown()
  53.  end
  54.  
  55.  if msg == "placeup" then
  56.   turtle.placeUp()
  57.  end
  58.  
  59.  if msg == "rsfront" then
  60.   rs.setOutput("front",false)
  61.  end
  62.  
  63.  if msg == "inv1" then
  64.   turtle.select(1)
  65.  end
  66.  
  67.  if msg == "inv2" then
  68.   turtle.select(2)
  69.  end
  70.  
  71.  if msg == "inv3" then
  72.   turtle.select(3)
  73.  end
  74.  
  75.  if msg == "inv4" then
  76.   turtle.select(4)
  77.  end
  78.  
  79.  if msg == "inv5" then
  80.   turtle.select(5)
  81.  end
  82.  
  83.  if msg == "inv6" then
  84.   turtle.select(6)
  85.  end
  86.  
  87.  if msg == "inv7" then
  88.   turtle.select(7)
  89.  end
  90.  
  91.  if msg == "inv8" then
  92.   turtle.select(8)
  93.  end
  94.  
  95.  if msg == "inv9" then
  96.   turtle.select(9)
  97.  end
  98.  
  99.  if msg == "inv10" then
  100.   turtle.select(10)
  101.  end
  102.  
  103.  if msg == "inv11" then
  104.   turtle.select(11)
  105.  end
  106.  
  107.  if msg == "inv12" then
  108.   turtle.select(12)
  109.  end
  110.  
  111.  if msg == "inv13" then
  112.   turtle.select(13)
  113.  end
  114.  
  115.  if msg == "inv14" then
  116.   turtle.select(14)
  117.  end
  118.  
  119.  if msg == "inv15" then
  120.   turtle.select(15)
  121.  end
  122.  
  123.  if msg == "inv16" then
  124.   turtle.select(16)
  125.  end
  126. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement