Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function s3()
- turtle.select(3)
- turtle.compare()
- end
- function sap()
- turtle.select(1)
- if turtle.compare() == true then
- turtle.select(2)
- turtle.place()
- elseif
- s3() == true then
- harvest()
- else
- turtle.dig()
- turtle.select(1)
- turtle.place()
- sap()
- end
- end
- function logger()
- for i=1, 7 do
- turtle.up()
- end
- end
- function harvest()
- turtle.dig()
- turtle.forward()
- logger()
- end
- sap()
- In my current slots of the turtle I have
- S1 Sapling
- S2 Bonemeal
- S3 Birch Log
- It's skipping over my else if and going straight to the else. So say it places the sapling and grows the tree perfect but when I want it to cut
- it down it just breaks the first log and places a sapling again and tries to grow it
- it's not checking my elseif to see that it's birchwood so it can start the cut down process.
- I'm sure this is more complicated than it should be but I'd like to understand why it's not working so I can fix these problems when I get more advanced
Advertisement
Add Comment
Please, Sign In to add comment