21 lines
493 B
Lua
21 lines
493 B
Lua
dropoff = peripheral.wrap("top")
|
|
|
|
while true do
|
|
item = dropoff.getItemDetail(1)
|
|
if item and item.count > 32 then
|
|
repeat
|
|
item = dropoff.getItemDetail(1)
|
|
until not item or (item.count < 10)
|
|
end
|
|
bonemeal = turtle.getItemCount(1)
|
|
turtle.select(1)
|
|
for i = 2,bonemeal do
|
|
turtle.place()
|
|
end
|
|
while turtle.suck() do end
|
|
for i = 2,16 do
|
|
turtle.select(i)
|
|
turtle.dropUp(turtle.getItemCount()-1)
|
|
end
|
|
end
|
|
|