fatboychummy

craftingShop

Sep 23rd, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1.  
  2.  
  3.  
  4. local reI = function(i)
  5.   if i <= 3 then
  6.     return i
  7.   elseif i > 3 and i <= 6 then
  8.     return i+1
  9.   else
  10.     return i+2
  11.   end
  12. end
  13.  
  14. local saveGrid = function(name)
  15.   local items = {}
  16.   local slots = {}
  17.   for i = 1,9 do
  18.     local a = turtle.getItemDetail(reI(i))
  19.     if a then
  20.       items[#items+1] = a.name
  21.       slots[i] =
  22.     end
  23.   end
  24. end
Add Comment
Please, Sign In to add comment