Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for a,b in pairs(rs.getSides()) do
- if peripheral.getType(b) == "ender_chest" then
- chest = peripheral.wrap(b)
- print("Found chest on "..b.." side")
- break
- end
- end
- while true do
- term.setTextColor(colors.blue)
- for i = 0, 15 do
- b1 = 2^i
- for k = 0, 15 do
- b2 = 2^k
- for v = 0, 15 do
- b3 = 2^v
- chest.setColors(b1,b2,b3)
- for slot, qty in pairs(chest.getAllStacks()) do
- if chest.pushItem("down", slot) >= 1 then
- items = true
- end
- end
- if items then
- write("Items found in: ")
- term.setBackgroundColor(b1)
- write(" ")
- term.setBackgroundColor(b2)
- write(" ")
- term.setBackgroundColor(b3)
- print(" ")
- term.setBackgroundColor(colors.black)
- items = false
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement