Tanner235

shulker loader

Dec 25th, 2021 (edited)
1,130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. local count = 0
  2.  
  3. function counter()
  4.     local shulker = peripheral.wrap('top')
  5.    
  6.     if (shulker ~= nil)
  7.     then
  8.         for i = 1,27,1
  9.         do
  10.             local item = shulker.getItemDetail(i)
  11.        
  12.             if (item ~= nil)
  13.             then
  14.                 count = count + item.count
  15.             end
  16.         end
  17.     end
  18.  
  19.     if (count == 1728)
  20.     then
  21.         turtle.digUp()
  22.         turtle.select(2)
  23.         turtle.placeUp()
  24.         turtle.suck(1)
  25.         turtle.select(1)
  26.         turtle.dropDown(1)
  27.     end
  28.     counter()
  29. end
  30.  
  31. counter()
Advertisement
Add Comment
Please, Sign In to add comment