Advertisement
Jeyjey0

Computercraft Bridge builder turtle program

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