Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- F3l1x Tree Felling Program
- Starting Turtle inventory:
- 1- Fuel
- 2- Bonemeal
- 3- Sapling
- 4- Tree Log
- Items Positioning:
- t = tree
- c = chest
- T = turtle
- tt
- tt
- ccT
- cc cc
- c
- c
- ]]--
- --Apply Bonemeal
- function bm()
- turtle.select(3)
- while turtle.compare() do
- turtle.select(2)
- turtle.place()
- turtle.select(3)
- end
- turtle.select(1)
- end
- --Plant Tree
- function plant()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- turtle.select(3)
- turtle.place()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.back()
- turtle.place()
- bm()
- end
- function fuel()
- if turtle.getFuelLevel() < 10 then
- turtle.selet(1)
- turtle.refuel(5)
- end
- end
- function refill()
- turtle.turnLeft()
- turtle.select(3)
- turtle.suck()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.select(1)
- turtle.suck()
- turtle.turnLeft()
- turtle.select(2)
- turtle.suck()
- turtle.turnLeft()
- turtle.select(4)
- turtle.suck()
- for i = 5, 16 do
- turtle.select(i)
- turtle.drop()
- end
- end
- while true do
- fuel()
- refill()
- plant()
- turtle.dig()
- turtle.forward()
- j = 0
- while turtle.detectUp() do
- turtle.digUp()
- turtle.dig()
- turtle.up()
- j++
- end
- turtle.dig()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- while not j == 0
- turtle.dig()
- turtle.digDown()
- turtle.down()
- j--
- end
- turtle.dig()
- turtle.turnLeft()
- turtle.forward()
- turtle.turnRight()
- turtle.back()
- sleep(1.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement