Advertisement
ChicagoFire3

Inventory

Jun 17th, 2023
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | Gaming | 0 0
  1. require("Tables")
  2.  
  3. function TransferToShulker () do
  4.   slot = turtle.getSelectedSlot()
  5.   turtle.select(16)
  6.   if turtle.getItemCount() == 0 then
  7.     return
  8.   end
  9.  
  10.   turtle.select(2)
  11.   turtle.placeDown()
  12.   for i = 2, 16 do
  13.     turtle.select(i)
  14.     turtle.dropDown(turtle.getItemCount())
  15.   end
  16.   turtle.select(2)
  17.   turtle.digDown()
  18.   turtle.select(slot)
  19. end
  20. end
  21.  
  22.  
  23. function DumpExclusive(arr) do
  24.   for i = 1, 16 do
  25.     if not contains(arr, i) then
  26.       turtle.select(i)
  27.       turtle.dropDown()
  28.     end                  
  29.   end
  30. end
  31. end
  32. ;
  33.  
Tags: minecraft lua
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement