Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Variables
- local args = {...}
- local mode = args[1]
- -- Functions
- showInfo = function()
- print(info)
- end
- setup = function()
- turtle.select(5)
- go()
- right()
- turtle.digDown()
- left();
- for i=1, 11 do
- turtle.digDown()
- turtle.placeDown()
- go();
- end
- turtle.digDown()
- turtle.placeDown()
- right()
- turtle.digDown()
- turtle.placeDown()
- go()
- turtle.digDown()
- turtle.placeDown()
- go()
- turtle.turnRight()
- for i=1, 12 do
- turtle.digDown()
- turtle.placeDown()
- go()
- end
- turtle.digDown()
- turtle.placeDown()
- right()
- turtle.digDown()
- turtle.placeDown()
- go()
- turtle.digDown()
- turtle.placeDown()
- go()
- turtle.placeDown()
- turtle.turnRight()
- print("Done...");
- end
- start = function()
- go()
- for i=1, 11 do
- placeSappling()
- go();
- end
- right()
- go()
- go()
- right();
- for i=1, 11 do
- placeSappling()
- go()
- end
- right()
- go()
- go()
- turtle.turnRight();
- print("Done...");
- end
- left = function()
- turtle.turnLeft()
- go()
- end
- right = function()
- turtle.turnRight()
- go()
- end
- go = function()
- turtle.forward()
- end
- placeSappling = function()
- turtle.turnRight();
- local block = turtle.detect();
- if block then
- turtle.turnLeft()
- else
- turtle.select(1)
- turtle.place();
- turtle.turnLeft()
- end
- end
- -- Main
- print("Starting up...");
- showInfo();
- if mode == "setup" then
- print("Preparing area...")
- setup();
- elseif mode == "start" then
- start();
- else
- start();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement