Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Locals
- local powersys
- local shield
- -- orange powers shield
- -- white powers power
- -- blue activates shield
- -- yellow acivates power
- monitor = peripheral.wrap("monitor_1")
- monitor.setTextScale(0.5)
- monitor.setBackgroundColor(colors.black)
- while true do
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setTextColor(colors.white)
- monitor.write('Shield System')
- if redstone.testBundledInput("back", colors.yellow) then
- monitor.setTextColor(colors.green)
- monitor.setCursorPos(1,3)
- monitor.write('Shield Power')
- monitor.setCursorPos(1,4)
- monitor.write('Active')
- redstone.setBundledOutput("back",colors.combine(redstone.getBundledOutput("back"),colors.white))
- else
- monitor.setTextColor(colors.red)
- monitor.setCursorPos(1,3)
- monitor.write('Shield Power')
- monitor.setCursorPos(1,4)
- monitor.write('Inactive')
- redstone.setBundledOutput("back",colors.subtract(redstone.getBundledOutput("back"), colors.white))
- if redstone.testBundledInput("back", colors.blue) then
- monitor.setTextColor(colors.green)
- monitor.setCursorPos(1,6)
- monitor.write('Projector')
- monitor.setCursorPos(1,7)
- monitor.write('Active')
- redstone.setBundledOutput("back",colors.combine(redstone.getBundledOutput("back"),colors.orange))
- sleep(1)
- else
- monitor.setTextColor(colors.red)
- monitor.setCursorPos(1,6)
- monitor.write('Projector')
- monitor.setCursorPos(1,7)
- monitor.write('Inactive')
- redstone.setBundledOutput("back",colors.subtract(redstone.getBundledOutput("back"), colors.orange))
- sleep(1)
- end
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement