Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Drops all slots forward except items from list in above storage
- function Forward(notDroppedBlocks)
- local bDrop = true
- for i = 1, 16, 1 do
- turtle.select(i)
- for j = 1, #notDroppedBlocks, 1 do
- local itemDetail = turtle.getItemDetail()
- if itemDetail then
- if itemDetail.name == notDroppedBlocks[j] then
- bDrop = False
- end
- end
- end
- if bDrop then
- turtle.drop()
- end
- bDrop = true
- end
- end
- -- Drops all slots up except items from list in above storage
- function Up(notDroppedBlocks)
- local bDrop = true
- for i = 1, 16, 1 do
- turtle.select(i)
- for j = 1, #notDroppedBlocks, 1 do
- local itemDetail = turtle.getItemDetail()
- if itemDetail then
- if itemDetail.name == notDroppedBlocks[j] then
- bDrop = False
- end
- end
- end
- if bDrop then
- turtle.dropUp()
- end
- bDrop = true
- end
- end
- -- Drops all slots down except items from list in above storage
- function Down(notDroppedBlocks)
- local bDrop = true
- for i = 1, 16, 1 do
- turtle.select(i)
- for j = 1, #notDroppedBlocks, 1 do
- local itemDetail = turtle.getItemDetail()
- if itemDetail then
- if itemDetail.name == notDroppedBlocks[j] then
- bDrop = False
- end
- end
- end
- if bDrop then
- turtle.dropDown()
- end
- bDrop = true
- end
- end
- return { Forward = Forward, Up = Up, Down = Down}
Add Comment
Please, Sign In to add comment