Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function place()
- while turtle.getItemCount() == 0 do
- turtle.select(((turtle.getSelectedSlot() + 1) % 16) + 1)
- end
- turtle.place()
- end
- local loop = true
- local turnCount = 0
- while loop do
- if turtle.back() then
- turnCount = 0
- place()
- else
- turtle.turnLeft()
- turnCount = turnCount + 1
- end
- if turnCount == 4 then
- loop = false
- end
- end
- turtle.down()
- turtle.placeUp()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement