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

Any way to detect the type of tool a turtle has?

Started by CCJJSax, 25 April 2014 - 05:41 PM
CCJJSax #1
Posted 25 April 2014 - 07:41 PM
I'm using the latest beta for 1.7.2. Now that you can switch around tools and attached peripherals, it would lead me to believe there is probably a way to return what type of tool is on it. Is there?

I tried peripheral.getType(side) and it worked and returned "modem" for a modem, but not for the tool.
Bomb Bloke #2
Posted 26 April 2014 - 01:00 AM
Not really, short of putting the turtle in front of a block and attempting to dig through it. The turtle knows whether the tool is suitable, even if it doesn't have any functions that'll tell you what that tool is.
CCJJSax #3
Posted 28 April 2014 - 01:27 AM
Not really, short of putting the turtle in front of a block and attempting to dig through it. The turtle knows whether the tool is suitable, even if it doesn't have any functions that'll tell you what that tool is.

Hmm. I think I shall suggest it. unless I find it already in the suggestions.