Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- if turtle.getFuelLevel() < 100 then
- turtle.turnLeft()
- turtle.select(16)
- turtle.suck(64)
- turtle.refuel(64)
- turtle.turnRight()
- end
- if turtle.getItemCount(15) < 1 then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.select(15)
- turtle.suck()
- turtle.turnRight()
- turtle.turnRight()
- end
- if turtle.getItemCount(1) > 0 then
- turtle.turnRight()
- turtle.select(1)
- turtle.drop()
- turtle.select(2)
- turtle.drop()
- turtle.turnLeft()
- end
- end
- function cut()
- check()
- turtle.select(1)
- turtle.dig()
- turtle.forward()
- while turtle.detectUp() do
- turtle.suck()
- turtle.digUp()
- turtle.up()
- end
- while not turtle.detectDown() do
- turtle.suck()
- turtle.down()
- end
- turtle.back()
- turtle.select(15)
- turtle.place()
- end
- while turtle.detect() do
- local success, t = turtle.inspect()
- if success then
- if t.name == "MineFactoryReloaded:rubberwood.log" then
- cut()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement