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
- 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)
- os.startTimer(0.3)
- event, param1 = os.pullEvent()
- if event == "redstone" then
- write("Items found in: ")
- term.setBackgroundColor(b1)
- write(" ")
- term.setBackgroundColor(b2)
- write(" ")
- term.setBackgroundColor(b3)
- print(" ")
- term.setBackgroundColor(colors.black)
- event, param1 = os.pullEvent()
- if event == "timer" then
- event = os.pullEvent()
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement