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

[Question] Mining Turtle Selected Block

Started by Stormkrow, 05 July 2012 - 02:03 PM
Stormkrow #1
Posted 05 July 2012 - 04:03 PM
Hi all,
Im just wanna find out if a turtle can detect a certain block that is the same in its selected slot and then break and replace it with a different block in a different slot?
Im stuck at this

If turtle.compareDown() then
turtle.digDown()
end
turtle.placeDown()
turtle.forward()

I dont know how to make it place a block other than the one in its selected slot

Lemme know
thanks
MysticT #2
Posted 05 July 2012 - 04:10 PM

turtle.select(<slot>)
slot: from 1 to 9, like:
1 2 3
4 5 6
7 8 9
Stormkrow #3
Posted 05 July 2012 - 04:40 PM
Thanks so much :3