Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mineTree()
- turtle.dig();
- turtle.forward();
- x = true;
- while x do
- turtle.digUp()
- turtle.up();
- if (turtle.detectUp() == false) then
- x = false;
- end
- turtle.digUp();
- end
- b = true;
- while b do
- b = turtle.down();
- end
- end
- function scout()
- for i=1,30 do
- turtle.turnRight()
- for i=1, 30 do
- if (turtle.compare()) then
- mineTree();
- end
- if (turtle.detect()) then
- turtle.dig();
- end
- turtle.forward();
- end
- end
- end
- turtle.select(1)
- turtle.refuel();
- turtle.select(2);
- scout();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement