Advertisement
Guest User

Untitled

a guest
Feb 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. wheat_chest = peripheral.wrap('front')
  2.  
  3. while true do
  4. for slot = 1, 27 do
  5. local dat = wheat_chest.getStackInSlot(slot)
  6. if dat and dat.display_name == 'minecraft:wheat' and dat.qty >= 3 then
  7. for i = 1, 3 do
  8. turtle.select(i)
  9. turtle.suck(1)
  10. end
  11. turtle.craft()
  12. turtle.turnRight()
  13. for i = 1, 16 do
  14. turtle.select(i)
  15. turtle.drop()
  16. end
  17. turtle.turnLeft()
  18. end
  19. end
  20. sleep(1)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement