Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local oldf = turtle.forward
- function turtle.forward(...)
- local tArgs = {...}
- local x, y = oldf(tArgs)
- if not x and not turtle.detect() then
- repeat
- turtle.attack()
- x, y = oldf(tArgs)
- until x
- end
- return x, y
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement