daily pastebin goal
27%
SHARE
TWEET

AWRFQWAEG

LewdLamb Jan 12th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for a,b in pairs(rs.getSides()) do
  2.       if peripheral.getType(b) == "ender_chest" then
  3.       chest = peripheral.wrap(b)
  4.       print("Found chest on "..b.." Side")
  5.    end
  6.    if peripheral.getType(b) == "monitor" then
  7.    screen = peripheral.wrap(b)
  8.    term.redirect(screen)
  9.    term.clear()
  10.    term.setCursorPos(1,1)
  11.    print("Found Monitor On "..b.." side")
  12.    end
  13. end
  14.  
  15. while true do
  16. term.setTextColor(colors.blue)
  17. for i = 0, 15 do
  18. b1 = 2^i
  19. for k = 0, 15 do
  20. b2 = 2^k
  21. for v = 0, 15 do
  22. b3 = 2^v
  23. chest.setColors(b1,b2,b3)
  24. for slot, qty in paris(chest.getAllStacks()) do
  25. if chest.pushItem("down", slot) >=1 then
  26. items = true
  27. end
  28. end
  29. if items then
  30. term.write("Items found in: ")
  31. term.setBackgroundColor(b1)
  32. term.write(" ")
  33. term.setBackgroundColor(b2)
  34. term.write(" ")
  35. term.setBackgroundColor(b3)
  36. print(" ")
  37. term.setBackgroundColor(colors.black)
  38. items = false
  39. end
  40. end
  41. end
  42. end
  43. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top