Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=peripheral.wrap("left")
- colors={"white","orange","magenta","pink","lightblue","yellow","lime","pink","gray","lightGray","cyan","purple","blue","brown","green","red","black"}
- my=1
- while my<=17 do
- m.setCursorPos(1,my)
- m.write(colors[my])
- my=my+1
- end
- while true do
- event, "right", x, y = os.pullEvent("monitor_touch")
- if y==1 then
- redstone.setBundledOutput("right", colors.white)
- end
- if y==2 then
- redstone.setBundledOutput("right", colors.orange)
- end
- if y==3 then
- redstone.setBundledOutput("right", colors.magenta)
- end
- if y==4 then
- redstone.setBundledOutput("right", colors.lightblue)
- end
- if y==5 then
- redstone.setBundledOutput("right", colors.yellow)
- end
- if y==6 then
- redstone.setBundledOutput("right", colors.lime)
- end
- if y==7 then
- redstone.setBundledOutput("right", colors.pink)
- end
- if y==8 then
- redstone.setBundledOutput("right", colors.gray)
- end
- if y==9 then
- redstone.setBundledOutput("right", colors.lightGray)
- end
- if y==10 then
- redstone.setBundledOutput("right", colors.cyan)
- end
- if y==11 then
- redstone.setBundledOutput("right", colors.purple)
- end
- if y==12 then
- redstone.setBundledOutput("right", colors.blue)
- end
- if y==13 then
- redstone.setBundledOutput("right", colors.brown)
- end
- if y==14 then
- redstone.setBundledOutput("right", colors.green)
- end
- if y==15 then
- redstone.setBundledOutput("right", colors.red)
- end
- if y==16 then
- redstone.setBundledOutput("right", colors.black)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement