Advertisement
LaniusFNV

CC Item Transfer

Nov 25th, 2020 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local r_chest = peripheral.wrap("right")
  2. local l_chest = peripheral.wrap("left")
  3.  
  4. local r_chest_size = r_chest.size()
  5. local l_chest_size = l_chest.size()
  6.  
  7. for slot = 1, l_chest_size, 1 do
  8.     local item = l_chest.getItemMeta(slot)
  9.  
  10.     if item ~= nil then
  11.         if item.name == "minecraft:planks" then
  12.             l_chest.pushItems("right", slot)
  13.         end
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement