Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r_chest = peripheral.wrap("right")
- local l_chest = peripheral.wrap("left")
- local r_chest_size = r_chest.size()
- local l_chest_size = l_chest.size()
- for slot = 1, l_chest_size, 1 do
- local item = l_chest.getItemMeta(slot)
- if item ~= nil then
- if item.name == "minecraft:planks" then
- l_chest.pushItems("right", slot)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement