Jump to content




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


  • You cannot reply to this topic
2 replies to this topic

#1 CCJJSax

  • Members
  • 262 posts

Posted 25 April 2014 - 06: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.

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 26 April 2014 - 12: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.

#3 CCJJSax

  • Members
  • 262 posts

Posted 28 April 2014 - 12:27 AM

View PostBomb Bloke, on 26 April 2014 - 12:00 AM, said:

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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users