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

Dropping items

Started by Claydelas, 17 August 2013 - 04:52 AM
Claydelas #1
Posted 17 August 2013 - 06:52 AM
Title: Dropping items
I am trying to make my turtle drop all items from slot 1-15 to the chest above it, but can't seem to figure out how.
Bubba #2
Posted 17 August 2013 - 10:48 AM
You can make a turtle drop items by first selecting the desired slot, and then calling turtle.drop().

for i=1,15 do --# This is a for loop. It will go from the number 1 to 15 and store that number in the variable i
  turtle.select(i) --# We need to select the correct slot
  turtle.dropUp(64) --# You can change the direction that the turtle drops using turtle.dropDown, turtle.drop, and turtle.dropUp
end