Jump to content




[Turtle]Turtle not detecting saplings properly?[SOLVED]


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

#1 Ikkalyzte

  • New Members
  • 58 posts

Posted 09 July 2012 - 04:03 AM

So I have my mining turtle running a tree farm (like many others) and it seems to be working fairly efficiently. However, I recently made a change to the tree detection code so that it will check if the block is a sapling, rather than if it is wood. Now, the turtle will occasionally break a sapling and replace it, as if it thought it was a tree. Is there a problem in the code (which I can't find :P/> ) or is this a bug with the turtle.compare() using saplings?

Here is the tree farming program:
Spoiler

edit: Spoiler tags!

#2 OmegaVest

  • Members
  • 436 posts

Posted 09 July 2012 - 05:32 PM

Compare doesn't play nicely with item-to-block or item-to-tile entity detections. Dan is supposedly working on this, but until then, saplings, redstone, ingots and the like will never work out correctly.

#3 Ikkalyzte

  • New Members
  • 58 posts

Posted 10 July 2012 - 05:05 AM

Ok, I guess I will have to make it compare with a piece of wood then. Not impossible, but more challenging for a fully automatic system. Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users