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

Best way to get currently equipped item (Turtle)

Started by HPWebcamAble, 20 January 2016 - 01:35 AM
HPWebcamAble #1
Posted 20 January 2016 - 02:35 AM
How do you get the currently equipped item for a turtle?

I skimmed the wiki but there doesn't seem to be a function for it


I really hope you don't have to just swap the tool out to check it, since that requires an inventory slot to be free
Dragon53535 #2
Posted 20 January 2016 - 02:47 AM
Now that I think of it, there might not be. Have you attempted to run something like turtle.getEquippedRight()? Probably not in there, but hey it doesn't hurt. If it doesn't exist, then I guess we gotta go to the suggestions forums.
valithor #3
Posted 20 January 2016 - 03:51 AM
Now that I think of it, there might not be. Have you attempted to run something like turtle.getEquippedRight()? Probably not in there, but hey it doesn't hurt. If it doesn't exist, then I guess we gotta go to the suggestions forums.

Or go upvote [topic='25582']this[/topic].
Edited on 20 January 2016 - 02:52 AM
HPWebcamAble #4
Posted 20 January 2016 - 04:15 AM
Have you attempted to run something like turtle.getEquippedRight()? Probably not in there, but hey it doesn't hurt
As you suspected, it isn't a function. Hopefully it will be soon.

Or go upvote [topic='25582']this[/topic].
Did, crossing my fingers that dan implements this. It would be what, 10 lines max? (In Java, of course)

My upcoming program is pretty awesome already, but this would make it that much better. Implementing a work-around for the time being.

EDIT: Program released (with work around) check it out! http://www.computercraft.info/forums2/index.php?/topic/25767-controlme-remote-control-for-your-turtle/
Edited on 08 February 2016 - 01:43 AM