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

How to compare coal to coal ore, and be successful?

Started by wowtilder, 30 January 2015 - 06:34 PM
wowtilder #1
Posted 30 January 2015 - 07:34 PM
I don't know if the subject makes sense.. words r hard today.

This is realted to my earlier question about a single-node mining program (thanks for the help again - it's awesome)

For metals (iron, gold, etc), it works great - the visible vein is mined out, turtle returns to home, etc.

Let's say I want to mine a vein of coal. I put a lump of coal in the turtle, and the comparison against a block of coal fails.

I wondered if I could use the Ore Dictionary from Peripherals++, but I ran into two issues:
- Not sure how to get a peripheral to attach to a turtle (whereas a computer can have the peripheral next to it)
- I don't think I understand what the ore dictionary does

Is there a way to compare coal to coal ore to be true, or might it be easier to have an array of "coal ore" => "coal", "redstone ore" => "redstone dust", etc .. ?

Thanks again for the help!
Lyqyd #2
Posted 30 January 2015 - 07:40 PM
Silk touch some coal ore. If you're on the latest version, turtle.inspect would be a simpler/easier solution.