XylianLP

single mode: gold to diamond

Jul 10th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. turtle.select(4)
  2. slotcl=1
  3. countcl=0
  4.  
  5. print("Slot 1 Minium Stone")
  6. print("Input:  Down-Chest: Iron, Gold, Wood planks")
  7. print("Output: Up-Chest:   Ender Pearl, Diamond, Wood ")
  8.  
  9. while true do
  10.  if turtle.getItemCount(2)==0 then
  11.   turtle.suckDown()
  12.   turtle.transferTo(2, 1)
  13.   turtle.dropDown()
  14.  end
  15.  
  16.  if turtle.getItemCount(5)==0 then
  17.   turtle.suckDown()
  18.   turtle.transferTo(5, 1)
  19.   turtle.dropDown()
  20.  end
  21.  if turtle.getItemCount(6)==0 then
  22.   turtle.suckDown()
  23.   turtle.transferTo(6, 1)
  24.   turtle.dropDown()
  25.  end
  26.  
  27.  if turtle.getItemCount(9)==0 then
  28.   turtle.suckDown()
  29.   turtle.transferTo(9, 1)
  30.   turtle.dropDown()
  31.  end
  32.  
  33.  slotcl=1
  34.  countcl=0
  35.  for asas=1, 16 do
  36.   countcl = countcl + turtle.getItemCount(slotcl)
  37.   slotcl=slotcl+1
  38.  end
  39.  
  40.  if countcl==5 then
  41.   turtle.select(4)
  42.    turtle.craft()
  43.    turtle.dropUp()
  44.  else
  45.  print("sleep")
  46.  sleep(2)
  47.  end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment