Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- slot = 1
- placed = 0
- print ("Turtle can move "..turtle.getFuelLevel().." blocks")
- function inventory()
- if turtle.getItemCount(slot) == 0 then
- slot = slot + 1
- turtle.select(slot)
- end
- end
- while turtle.getItemCount(slot) > 0 do
- if turtle.placeDown() then
- placed = placed + 1
- end
- turtle.forward()
- inventory()
- end
- print ("Placed "..placed.." blocks")
- print ("Fuel remaining: "..turtle.getFuelLevel().."")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement