Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cutTree()
- turtle.select(16)
- height=0
- turtle.dig()
- turtle.forward()
- while turtle.compareUp() do
- turtle.digUp()
- turtle.up()
- height = height+1
- end
- for i=1, height do
- turtle.down()
- end
- end
- function shiftLeft()
- turtle.forward()
- turtle.turnLeft()
- for i=1, 6 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- function shiftRight()
- turtle.forward()
- turtle.turnRight()
- for i=1, 6 do
- turtle.forward()
- end
- turtle.turnRight()
- end
- function returnHome()
- for i=1, 5 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i=1, 42 do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- function dropGoods()
- turtle.turnRight()
- turtle.turnRight()
- for i=1, 14 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnRight()
- turtle.turnRight()
- end
- --Main
- for i=1, 4 do --Staring position
- turtle.forward()
- end
- for r=1, 3 do
- for i=1, 7 do
- cutTree()
- for j=1, 5 do
- turtle.forward()
- end
- end
- cutTree()
- shiftLeft()
- for i=1, 7 do
- cutTree()
- for j=1, 5 do
- turtle.forward()
- end
- end
- cutTree()
- shiftRight()
- end
- for i=1, 7 do --Seventh Row
- cutTree()
- for j=0, 5 do
- turtle.forward()
- end
- end
- cutTree()
- shiftLeft()
- for i=1, 7 do --eighth Row
- cutTree()
- for j=0, 5 do
- turtle.forward()
- end
- end
- cutTree()
- returnHome() --Return to Starting Position
- dropGoods() --Place items in Chest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement