http://pastebin.com/sVRr4wrj
All info is in that pastebin. Thanks for the help guys.
This overly complicated tree program will not work please help.
Started by chardo440, Dec 29 2012 08:15 PM
3 replies to this topic
#1
Posted 29 December 2012 - 08:15 PM
#2
Posted 29 December 2012 - 08:23 PM
I think your problem is because s3() does not return anything.
Try changing it to this:
Try changing it to this:
function s3() turtle.select(3) if turtle.compare() then return true else return false end end
#3
Posted 29 December 2012 - 08:38 PM
luanub, on 29 December 2012 - 08:23 PM, said:
I think your problem is because s3() does not return anything.
Try changing it to this:
Try changing it to this:
function s3() turtle.select(3) if turtle.compare() then return true else return false end end
Thank you so much! I have just one more question if you have the time. In my code I'm trying to get it to detect if there is a bad item in the way and if there is delete and try running sap() again to go through however when I do this it deletes the item places the sapling grows the tree and backs away from the tree. would I have to fix this with a while true statement somewhere? http://pastebin.com/J85kmAWJ here's my new code with your fix
#4
Posted 29 December 2012 - 09:04 PM
It is because with the way you have it setup its only going to run the if statement twice meaning that it never runs harvest() so it never takes the step forward.
I also noticed a problem with you logger function, and you did not setup the down function to bring the turtle back down after the went up. Fixes with comments below
I also noticed a problem with you logger function, and you did not setup the down function to bring the turtle back down after the went up. Fixes with comments below
Spoiler
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











