Advertisement
Alex21039

ClayCraft

Feb 25th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. function craft()
  2.     refill()
  3.     turtle.craft()
  4.     drop()
  5. end
  6.  
  7. function refill()
  8.     refillWater()
  9.     refillRedStone()
  10. end
  11.  
  12. function refillWater()
  13.     turtle.select(2)
  14.     while not turtle.placeDown() do end
  15.     turtle.select(5)
  16.     while not turtle.placeDown() do end
  17.     turtle.select(6)
  18.     while not turtle.placeDown() do end
  19. end
  20.  
  21. function refillRedStone()
  22.     turtle.turnRight()
  23.     turtle.select(1)
  24.     turtle.suck()
  25.     turtle.suck()
  26.     clear()
  27.     turtle.turnLeft()
  28. end
  29.  
  30. function clear()
  31.     turtle.select(3)
  32.     turtle.drop()
  33.     turtle.select(4)
  34.     turtle.drop()
  35.     for variable = 7, 16, 1 do
  36.         turtle.select(variable)
  37.         turtle.drop()
  38.     end
  39. end
  40.  
  41. function drop()
  42.     turtle.turnLeft()
  43.     turtle.drop()
  44.     turtle.turnRight()
  45. end
  46.  
  47. while true do
  48.     craft()
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement