Advertisement
LeviathanV

test black

Oct 30th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. while true do
  2.  
  3. local function pulseBlack(num)
  4.     for i = 1,num do
  5.     redstone.setBundledOutput("back", colors.black)
  6.     sleep(1)
  7.     redstone.setBundledOutput("back", 0)
  8.     sleep(1)
  9. end
  10.  
  11. local function black()
  12.     pulseBlack(turtle.getItemCount(1)-0)
  13. end
  14.  
  15. local function check()
  16.     if turtle.compareTo(2) == true then
  17.         black()
  18.     else
  19.         dropDown()
  20.     sleep(5)
  21. end
  22.  
  23. local function run()
  24.     turtle.select(1)
  25.   if turtle.getItemCount(1) < 1 then
  26.         turtle.suck()
  27.         else
  28.     check()
  29.     dropDown()
  30. sleep(5)
  31. end
  32.  
  33. run()
  34. end
  35. end
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement