Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Turtle Tree Taping program
- -- for use in a tap turtle on a wall of IC2's rubber trees.
- -- By Chronno S. Trigger Http://www.youtube.com/chronnotrigg
- -- ------------------------------------------------------------
- -- Use: tap x z
- -- x = number of blocks over
- -- z = number of blocks up
- -- Known issues:
- -- Since it's impossible to get the turtle to detect if a rubber tree block is ready
- -- if you use the program too soon after the last run, you will lose your tap points.
- local size = {...}
- function tapUp()
- turtle.dig()
- for i=2,size[2] do
- turtle.up()
- turtle.dig()
- end
- for i=2,size[2] do
- turtle.down()
- end
- end
- function moveRight()
- turtle.turnRight()
- turtle.forward()
- turtle.dturnLeft()
- end
- function comeBack()
- turtle.turnLeft()
- for i=2,size[1] do
- turtle.forward()
- end
- turtle.turnRight()
- end
- tapUp()
- for i=2,size[1] do
- moveRight()
- tapUp()
- end
- comeBack()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement