Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local number=0
- function axeUp()
- turtle.dig()
- turtle.forward()
- while turtle.digUp() do
- turtle.digUp()
- turtle.dig()
- turtle.up()
- number=number+1
- end
- end
- function switchSides()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function axeDown()
- while number > 0 do
- turtle.digDown()
- turtle.dig()
- turtle.down()
- number=number-1
- end
- turtle.dig()
- end
- function returnToStart()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- end
- function placeSapling()
- turtle.select(1)
- turtle.forward()
- turtle.place()
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- turtle.place()
- turtle.back()
- turtle.place()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.place()
- end
- function boneMeal()
- turtle.select(2)
- turtle.place()
- end
- function returnToStart()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- turtle.back()
- end
- function dropOffReset()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(3)
- turtle.drop()
- turtle.select(4)
- turtle.drop()
- turtle.select(5)
- turtle.drop()
- turtle.select(6)
- turtle.drop()
- turtle.select(7)
- turtle.drop()
- turtle.turnLeft()
- turtle.turnLeft()
- end
- function dropOffUp()
- turtle.select(3)
- turtle.dropUp()
- turtle.select(4)
- turtle.dropUp()
- turtle.select(5)
- turtle.dropUp()
- turtle.select(6)
- turtle.dropUp()
- turtle.select(7)
- turtle.dropUp()
- turtle.select(1)
- end
- function dropOffDown()
- turtle.select(3)
- turtle.dropDown()
- turtle.select(4)
- turtle.dropDown()
- turtle.select(5)
- turtle.dropDown()
- turtle.select(6)
- turtle.dropDown()
- turtle.select(7)
- turtle.dropDown()
- turtle.select(1)
- end
- function getBoneMeal()
- turtle.select(2)
- turtle.suckDown()
- dropOffDown()
- end
- function getSaplings()
- turtle.select(1)
- turtle.suckUp()
- dropOffUp()
- end
- function Inventory()
- if turtle.getItemCount(2) < 5 then
- getBoneMeal()
- end
- if turtle.getItemCount(1) < 5 then
- getSaplings()
- end
- end
- --[[FUncTIOnsHERE]]--
- Inventory()
- os.sleep(5)
- while turtle.getItemCount(1) > 3 and turtle.getItemCount(2) > 1 do
- Inventory()
- getSaplings()
- getBoneMeal()
- placeSapling()
- boneMeal()
- axeUp()
- switchSides()
- axeDown()
- returnToStart()
- dropOffReset()
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement