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

Dirt isn't being tilled by the farming turtle

Started by rauhski, 09 June 2016 - 06:32 AM
rauhski #1
Posted 09 June 2016 - 08:32 AM
I have a Turtle Program which includes dirt being tilled. In the wiki it says that when I use turtle.digUp() (or any other direction) it will, instead of digging it, till the dirt. But that doesn't happen. In the turtle it just says "Unbreakable block detected". What's wrong?

Greetings:
rauhski
Bomb Bloke #2
Posted 09 June 2016 - 08:39 AM
You're targeting the wrong position, most likely.

When a turtle attempts to dig, it outright tries to break the block in the specified direction. The hoe can't break anything other than crops, so thing isn't going to work.

What the hoe can do is till dirt if you dig in the air-space above the ground (or dig out a crop from that space). This is impossible with turtle.digUp() (as the turtle would need to exist in the same position as the dirt to accomplish it). Yes, I know the wiki says otherwise, but I suspect it's wrong; I'll check later.

TL;DR version: just dig out the crops, tilling will take care of itself.
rauhski #3
Posted 09 June 2016 - 09:01 AM
Thanks for the fast reply,
So I just simply have to use dig.Down() 2 blocks above the block?
Bomb Bloke #4
Posted 09 June 2016 - 09:04 AM
That should work, yes.
rauhski #5
Posted 09 June 2016 - 01:13 PM
Thank you very much. Now it works