Advertisement
Guest User

test

a guest
May 23rd, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. a = peripheral.wrap("front")
  2.  
  3. local i
  4.  
  5. local function retrive()
  6.   for i = 1,7 do
  7.     turtle.suck()
  8.   end
  9. end
  10.  
  11. local function test()
  12.   turtle.turnLeft()
  13.   for i = 1,7 do
  14.     turtle.select(i)
  15.     turtle.drop()
  16.     if a.isBee() then
  17.       turtle.suck()
  18.     else  
  19.       turtle.suck()
  20.       turtle.dropDown()
  21.     end
  22.   end
  23. end      
  24.  
  25.  
  26. retrive()
  27. test()
  28. print(a.isBee())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement