Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Script Created by CEEBS
- YouTube: https://www.youtube.com/channel/UCQvB8QBknoS1jYgwpYGQrQg
- Twitter: https://twitter.com/OnlyCeebs
- Really appreciate all the support you have given me, so thank you!
- ]]--
- local INVENTORY_SIZE = 16
- function inventorySort()
- for i = 1, INVENTORY_SIZE do
- local currentItem = turtle.getItemDetail(i)
- if currentItem ~= nil then
- turtle.select(i)
- for j = i, INVENTORY_SIZE do
- if turtle.compareTo(j) then
- turtle.select(j)
- turtle.transferTo(i)
- turtle.select(i)
- end
- end
- end
- end
- end
- inventorySort()
Advertisement
Add Comment
Please, Sign In to add comment