Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --2x2 Tree Chopper by mtbfreak
- --Variables
- local height = 0
- --Functions
- function chopUp()
- turtle.digUp()
- turtle.up()
- turtle.dig()
- height = height + 1
- end
- function moveOver()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.dig()
- end
- function chopDown()
- turtle.digDown()
- turtle.down()
- turtle.dig()
- end
- --Main Script
- turtle.dig()
- turtle.forward()
- turtle.dig()
- while turtle.detectUp() == true do
- chopUp()
- end
- moveOver()
- for i = 1, height, 1 do
- chopDown()
- end
- shell.run("go right forward left back")
Add Comment
Please, Sign In to add comment