Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function up()
- if turtle.detectUp() then
- else
- turtle.up()
- up()
- end
- end
- function mine()
- x=0
- while x < 1 do
- turtle.digDown()
- turtle.down()
- x = x+1
- end
- end
- function goUp()
- if turtle.digDown() == false then
- up()
- end
- end
- function finish()
- x=0
- while x < 70 do
- mine()
- goUp()
- end
- end
- rednet.open("right")
- id, message, distance = rednet.receive()
- function complete()
- if message == "excavate" then
- finish()
- end
- end
- complete()
Advertisement
Add Comment
Please, Sign In to add comment