Advertisement
Jeyjey0

Computercraft Torchplacer [2017]

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