Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- local move = 0
- function tap()
- while turtle.detect() do
- turtle.dig()
- count = count + 1
- turtle.up()
- move = move + 1
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- while move > 0 do
- turtle.down()
- count = count + 1
- turtle.dig()
- move = move - 1
- end
- end
- function corner()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- end
- function cycle()
- for i = 1, 4 do
- tap()
- corner()
- end
- end
- print("Tapping...")
- cycle()
- print("Job's Done! Tapped "..count.." resin spots")
Advertisement
Add Comment
Please, Sign In to add comment