Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = turtle
- local function forward(x)
- for i = 1, x do
- t.forward()
- end
- end
- local function rTurn(x)
- for i = 1, x do
- t.turnRight()
- end
- end
- local function lTurn(x)
- for i = 1, x do
- t.turnLeft()
- end
- end
- local function up(x)
- for i = 1, x do
- t.up()
- end
- end
- local function down(x)
- for i = 1, x do
- t.down()
- end
- end
- local function back(x)
- for i = 1, x do
- t.back()
- end
- end
- local function tap1(x)
- for i = 1, x do
- t.dig
- lTurn(1)
- forward(1)
- rTurn(1)
- end
- end
- local function tap2(x)
- for i = 1, x do
- t.dig()
- up(1)
- t.dig()
- down(1)
- lTurn(1)
- forward(1)
- rTurn(1)
- local function depositLoop()
- for i = 16, 1, -1 do
- t.select(i)
- t.dropRight()
- end
- os.sleep(3600)
- os.reboot()
- forward(1)
- rTurn(1)
- t.dig()
- lTurn(1)
- tap1(2)
- tap2(3)
- tap1(1)
- -- first row done --
- lTurn(1)
- tap1(2)
- tap2(3)
- tap1(3)
- -- second row done --
- lTurn(1)
- tap1(1)
- tap2(4)
- tap1(1)
- -- third row done --
- lTurn(1)
- tap1(5)
- lTurn(1)
- forward(1)
- depositLoop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement