Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local variables--
- local target, blockDetail = turtle.inspect()
- local wood = turtle.getItenDetail(1).name
- local sapling = turtle.getItenDetail(2).name
- --Functions--
- function goF()
- while not turtle.forward() do
- turtle.dig()
- end
- end
- function goU()
- while not turtle.up() do
- turtle.digUp()
- end
- end
- function goD()
- while not turtle.down() do
- turtle.digDown()
- end
- end
- --Main Code--
- for i = 1, 6 do
- goU
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement