Posted 27 January 2016 - 01:21 AM
Hi guys I am new to CCraft but am a fairly experienced programmer and I am trying to make a tree farm. The problem is I have code basically
if turtle.detect
chop tree until no more wood
go down to ground
go back one and plant
that is just pesudocode I have the actual save in a turtle anyway it detects a sapling as a block and that makes it continuously try to cut down the tree even though the sapling hasn't grown also there is turtle.compare which I tried to use but the doesn't seem to be turtle.compareForward just up and down so how can I detect if a sapling grows and not just a sapling
if turtle.detect
chop tree until no more wood
go down to ground
go back one and plant
that is just pesudocode I have the actual save in a turtle anyway it detects a sapling as a block and that makes it continuously try to cut down the tree even though the sapling hasn't grown also there is turtle.compare which I tried to use but the doesn't seem to be turtle.compareForward just up and down so how can I detect if a sapling grows and not just a sapling