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

Turtle Item specification commands

Started by f1amekeeper, 12 November 2015 - 07:11 PM
f1amekeeper #1
Posted 12 November 2015 - 08:11 PM
Currently turtles can easily do simple tasks with items such as pulling/inserting items in an inventory as well as picking up dropped items and moving items in their own inventory. It can be quite difficult to have a turtle perform tasks with items which are more complex than that. So I suggest adding turtle.getItemId("specify slot here or check current slot") which would retrieve the items id number ie.(stone=1 so retrieves 1) also turtle.lockItem("specify slot here or check current slot") which would whitelist the slot prioritising the slot whenever that item is picked up instead of the item going into the first available slot.
Lyqyd #2
Posted 12 November 2015 - 10:15 PM
Use the turtle.inspect and turtle.getItemDetail functions. To lock a slot to a specific type of item, leave at least one of that item in the slot at all times (for stackable items).
COOLGAMETUBE #3
Posted 16 November 2015 - 04:40 PM
Just write a Lib for it :P/>