This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
discodancepant's profile picture

CC Turtles turtle.detect() help

Started by discodancepant, 29 January 2013 - 01:22 AM
discodancepant #1
Posted 29 January 2013 - 02:22 AM
I have been working on a program to auto farm trees. I'm just wondering if anyone knows if this function can detect specific blocks, like wood, instead of there simply being a block.

Thanks!
Lyqyd #2
Posted 29 January 2013 - 04:45 AM
Split into new topic.

You're most likely looking for turtle.compare.
ChunLing #3
Posted 29 January 2013 - 06:34 PM
It's worth noting that currently turtle.compare (along with the Up/Down versions) is quite specific, requiring that the block ID and all block metadata match exactly. Thus it currently does not recognize sideways logs as being the same as regular logs. The development team is currently working on a way to address this, but may have to wait for a Forge update.