102 posts
Location
The 4th Dimension
Posted 08 April 2012 - 01:36 PM
Turtles need to detect what its inventory is, and it needs to detect what block it is about to break.
510 posts
Posted 08 April 2012 - 01:44 PM
Turtles can already test whether the block in front of them is the same as the one in an inventory slot. There might be a way to compare two slots in the future (I hope), but that's all.
102 posts
Location
The 4th Dimension
Posted 08 April 2012 - 02:06 PM
How?
2447 posts
Posted 08 April 2012 - 02:09 PM
You use turtle.compare() which returns true if the block in front is the same as the currently selected slot, and false if not.
53 posts
Posted 08 April 2012 - 03:06 PM
You can already partially compare two slots, although it only works with blocks. Place slot1, switch to slot2, and compare. It will return true if the slots are the same and false if not.
454 posts
Location
London
Posted 08 April 2012 - 05:01 PM
Not going to happen.
turtle.compare*() was added reluctantly-ish: the original fucntion would only compare inventory.