Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function move(direction) --turtle moving
- if direction == up then
- while not turtle.up() do
- if not dig(up) then
- if turtle.attackUp() then
- attacked = attacked + 1
- end
- end
- end
- z = z + 1
- save()
- function save() --saving position
- s = fs.open("startup", "w") --open startup in writemode
- s.write("mine "..A.." "..B.." "..C.." "..x.." "..y.." "..z.." "..d.." "..mined.." "..attacked.." "..dropped.."")
- s.close()
- end
Advertisement
Add Comment
Please, Sign In to add comment