Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- emptySlot = 16
- i = 1
- while i <= 16 do
- item = turtle.getItemdetail(i)
- if item ~= nil then
- emptySlot = emptySlot - 1
- end
- if emptySlot == 0 then
- for 1, 16, 1 do
- itemCount = turtle.getItemCount(i)
- if itemCount == 64 and item == minecraft:cobblestone then
- turtle.drop(i)
- emptySlot = emptySlot + 1
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement