Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --used to check blocks
- function compareTo()
- while turtle.compare() do
- logCode()
- end
- end
- --checks what can be crafted and to drop it
- function slotCheck()
- for i = 1, 8 do
- turtle.select(i)
- if turtle.getSelectedSlot() then
- turtle.drop(64)
- end
- end
- turtle.select(1)
- end
- --code that breaks trees
- function logCode()
- turtle.dig()
- turtle.forward()
- turtle.select(1)
- while turtle.compareUp() do
- turtle.digUp()
- turtle.up()
- end
- while turtle.detectDown() == false do
- turtle.down()
- end
- compareTo()
- turtle.turnLeft()
- compareTo()
- turtle.turnRight()
- turtle.turnRight()
- compareTo()
- turtle.turnRight()
- slotCheck()
- turtle.select(1)
- os.exit()
- end
- logCode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement