Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Slot 1 : sapling, Slot 2 : fuel(logs can do), Slot 3 : bonemeal")
- turtle.select(1)
- turtle.place()
- while (true) do
- local boo,insp = turtle.inspect()
- if(insp ~= nil and insp.name=="minecraft:log") then
- i =0
- while(turtle.dig()) do
- i=i+1
- turtle.digUp()
- turtle.up()
- end
- for j=0,(i-1) do
- turtle.down()
- end
- turtle.select(1)
- turtle.place()
- turtle.select(2)
- turtle.refuel(1)
- sleep(60)
- turtle.down()
- turtle.down()
- turtle.select(3)
- if(turtle.getItemCount()<=32) then
- turtle.suckDown(30)
- end
- turtle.select(1)
- for j=0,5 do
- turtle.suck()
- end
- turtle.up()
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- for i=4,16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.select(2)
- turtle.turnLeft()
- turtle.turnLeft()
- else
- turtle.select(3)
- turtle.place()
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement