Advertisement
denvys5

Blast Furnace

Mar 23rd, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. function iron()
  2.   turtle.select(2)
  3.   b = turtle.getItemCount(2)
  4.   if b > 1 and not turtle.drop(b-1) then
  5.    os.sleep(5)
  6.   end
  7. end
  8.  
  9. function charcoal()
  10.    turtle.select(1)
  11.    c = turtle.getItemCount(1)
  12.    if c > 1 and not turtle.drop(c-1) then
  13.     os.sleep(5)
  14.  end
  15. end
  16.  
  17. function steel()
  18.   turtle.select(4)
  19.   turtle.suck()
  20. end
  21.  
  22. function dust()
  23.   turtle.select(3)
  24.   turtle.suck()
  25. end
  26.  
  27. function unload()
  28. for i = 3,4 do
  29.  a = turtle.getItemCount(i)
  30.  turtle.select(i)
  31.  turtle.dropDown(a-1)
  32.  end
  33. end
  34.  
  35. function main()
  36.  while true do
  37.   unload()
  38.   iron()
  39.   charcoal()
  40.   steel()
  41.   dust()
  42.   sleep(60)
  43.  end
  44. end
  45.  
  46. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement