Advertisement
Kamioda

minecraft_place_torch

May 16th, 2022
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local i = 0
  2. local slot = 1
  3.  
  4. while slot < 16 do
  5. turtle.forward()
  6. i = i + 1
  7. if i == 8 then
  8. if turtle.getItemCount() == 0 then
  9. slot = slot + 1
  10. turtle.select(slot)
  11. if turtle.getItemCount() == 0 then
  12. os.exit()
  13. end
  14. end
  15. turtle.placeDown()
  16. i = 0
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement