Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local count = 0
- function counter()
- local shulker = peripheral.wrap('top')
- if (shulker ~= nil)
- then
- for i = 1,27,1
- do
- local item = shulker.getItemDetail(i)
- if (item ~= nil)
- then
- count = count + item.count
- end
- end
- end
- if (count == 1728)
- then
- turtle.digUp()
- turtle.select(2)
- turtle.placeUp()
- turtle.suck(1)
- turtle.select(1)
- turtle.dropDown(1)
- end
- counter()
- end
- counter()
Advertisement
Add Comment
Please, Sign In to add comment