Jump to content




CC Turtles turtle.detect() help


  • You cannot reply to this topic
2 replies to this topic

#1 discodancepant

  • Members
  • 12 posts

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!

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 29 January 2013 - 04:45 AM

Split into new topic.

You're most likely looking for turtle.compare.

#3 ChunLing

  • Members
  • 2,027 posts

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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users