Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modemSide = "right"
- local monitor = peripheral.wrap("left")
- local unobtainiumComputerID = 72
- local atmComputerID = 18
- local vibraniumComputerID = 43
- local ub = 0
- local atm = 0
- local vib = 0
- rednet.open(modemSide)
- while true do
- local senderID, message = rednet.receive()
- if senderID == unobtainiumComputerID then
- ub = message
- elseif senderID == atmComputerID then
- atm = message
- elseif senderID == vibraniumComputerID then
- vib = message
- end
- monitor.clear()
- monitor.setTextScale(0.9)
- monitor.setBackgroundColor(colors.lime)
- monitor.setTextColor(colors.white)
- monitor.setCursorPos(1, 2)
- monitor.write("Ores")
- monitor.setCursorPos(1, 4)
- monitor.write("Unobtainium:"..ub)
- monitor.setCursorPos(1, 6)
- monitor.write("ATM:"..atm)
- monitor.setCursorPos(1, 8)
- monitor.write("Vibranium:"..vib)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement