XylianLP

Alchemist Turtle: 2x2 Crafting Sand to Sandstone

Jul 10th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. turtle.select(4)
  2. slotcl=1
  3. countcl=0
  4.  
  5. print("2x2 Crafting")
  6. print("Input:  Down-Chest: Sand")
  7. print("Output: Up-Chest:   Sandstone")
  8.  
  9. while true do
  10.  
  11. slota=turtle.getItemSpace(2)
  12. slotb=turtle.getItemSpace(5)
  13. slotc=turtle.getItemSpace(6)
  14. slotd=turtle.getItemSpace(1)
  15.  
  16.  turtle.suckDown()
  17.  turtle.transferTo(2, slota)
  18.  turtle.dropDown()
  19.  turtle.suckDown()
  20.  turtle.transferTo(5, slotb)
  21.  turtle.dropDown()
  22.  turtle.suckDown()
  23.  turtle.transferTo(6, slotc)
  24.  turtle.dropDown()
  25.  turtle.suckDown()
  26.  turtle.transferTo(1, slotd)
  27.  turtle.dropDown()
  28.  
  29.  slotcl=1
  30.  countcl=0
  31.  for asas=1, 16 do
  32.   countcl = countcl + turtle.getItemCount(slotcl)
  33.   slotcl=slotcl+1
  34.  end
  35.  
  36.  if countcl==256 then
  37.   turtle.select(4)
  38.   turtle.craft()
  39.   turtle.dropUp()
  40.  else
  41.  print("sleep")
  42.  sleep(2)
  43.  end
  44. end
Add Comment
Please, Sign In to add comment