Advertisement
Jeyjey0

torch

Oct 31st, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function torch()
  2. drop = 0
  3. for i=1,16 do
  4. drop = drop + 1
  5. turtle.select(drop)
  6. icount = turtle.getItemCount()
  7. if icount >= 1 == true then
  8. local item = turtle.getItemDetail()
  9. if item.name == "minecraft:torch" == true then
  10. turtle.turnLeft()
  11. turtle.turnLeft()
  12. turtle.place()
  13. turtle.turnLeft()
  14. turtle.turnLeft()
  15. turtle.select(1)
  16. break
  17. else
  18. end
  19. else
  20. end
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement