Jump to content




Dropping items


  • You cannot reply to this topic
1 reply to this topic

#1 Claydelas

  • New Members
  • 1 posts

Posted 17 August 2013 - 05: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.

#2 Bubba

    Use Code Tags!

  • Moderators
  • 1,142 posts
  • LocationRHIT

Posted 17 August 2013 - 09: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






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users