Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left");
- local m = peripheral.wrap("back");
- m.clear();
- m.setTextColor(colors.white);
- m.setBackgroundColor(colors.black);
- m.clear();
- m.setTextScale(3);
- -- BLUE NUMBERS START
- -- 1 Start
- m.setCursorPos(1,1);
- m.setBackgroundColor(colors.blue);
- m.write(" 1 ");
- -- 1 End
- -- 2 Start
- m.setCursorPos(1,2);
- m.setBackgroundColor(colors.blue);
- m.write(" 2 ");
- -- 2 End
- -- 3 Start
- m.setCursorPos(1,3);
- m.setBackgroundColor(colors.blue);
- m.write(" 3 ");
- -- 3 End
- -- 4 Start
- m.setCursorPos(1,4);
- m.setBackgroundColor(colors.blue);
- m.write(" 4 ");
- -- 4 End
- -- 5 Start
- m.setCursorPos(1,5);
- m.setBackgroundColor(colors.blue);
- m.write(" 5 ");
- -- 5 End
- -- 10 Start
- m.setCursorPos(1,6);
- m.setBackgroundColor(colors.blue);
- m.write(" 10 ");
- -- 10 End
- -- 15 Start
- m.setCursorPos(1,7);
- m.setBackgroundColor(colors.blue);
- m.write(" 15 ");
- -- 15 End
- -- 20 Start
- m.setCursorPos(1,8);
- m.setBackgroundColor(colors.blue);
- m.write(" 20 ");
- -- 20 End
- -- 25 Start
- m.setCursorPos(1,9);
- m.setBackgroundColor(colors.blue);
- m.write(" 25 ");
- -- 25 End
- -- 50 Start
- m.setCursorPos(1,10);
- m.setBackgroundColor(colors.blue);
- m.write(" 50 ");
- -- 50 End
- -- BLUE NUMBERS END
- -- RED NUMBERS START
- -- 100 Start
- m.setCursorPos(10,1);
- m.setBackgroundColor(colors.blue);
- m.write(" 100 ");
- -- 100 End
- while true do
- local senderId, message, protocol = rednet.receive("boxes");
- if message == "1" then
- m.setCursorPos(1,1);
- m.setBackgroundColor(colors.black);
- m.write(" ");
- elseif message == "2" then
- elseif message == "3" then
- elseif message == "4" then
- elseif message == "5" then
- elseif message == "10" then
- elseif message == "15" then
- elseif message == "20" then
- elseif message == "25" then
- elseif message == "50" then
- elseif message == "100" then
- elseif message == "150" then
- elseif message == "200" then
- elseif message == "250" then
- elseif message == "500" then
- elseif message == "750" then
- elseif message == "1000" then
- elseif message == "2000" then
- elseif message == "5000" then
- end
- sleep(1);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement