Advertisement
Jeyjey0

Torch2

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