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

Dropoff Help!

Started by Miseror, 24 May 2015 - 11:56 PM
Miseror #1
Posted 25 May 2015 - 01:56 AM
Can anyone edit this code so it will dropoff 63 of the 64 items in the 16th slot? (drop to a chest above it)

http://pastebin.com/5v489RwH

I've tried to do it but I have no experience with this stuff :/

farther explanation on what I want: I have a turtle mining a item (botania Living rock) and they go to the 16th slot, when the item stack reaches 64 I want it to dropoff 63 (leave one left behind) in a chest above the turtle.
KingofGamesYami #2
Posted 25 May 2015 - 04:24 AM

local function dropOff()
  turtle.select(16) --#select the 16th slot
  turtle.dropUp(63) --#drop 63 items from slot 16 into the chest above.
end