Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- local tArgs = {... }
- if #tArgs ~= 1 then
- print( "Usage: dig <lenght>" )
- return
- end
- local lenght = tonumber( tArgs [1] )
- dig="dig"
- forward="forward"
- back="back"
- while lenght > 0 do
- rednet.broadcast(dig)
- sleep(1)
- rednet.broadcast(forward)
- turtle.forward()
- sleep(1)
- lenght=lenght-1
- end
Advertisement
Add Comment
Please, Sign In to add comment