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
- -- green activates shield
- -- yellow acivates power
- monitor = peripheral.wrap("monitor_1")
- monitor.setTextScale(1)
- monitor.setBackgroundColor(colors.black)
- monitor.clear()
- monitor.setCursorPos(1,1)
- monitor.setTextColor(colors.white)
- monitor.write('Shield System Monitor')
- if redstone.testBundledInput("back", colors.yellow) then
- monitor.setTextColor(colors.green)
- monitor.setCursorPos(1,3)
- monitor.write('Shield Power Active')
- redstone.setBundledOutput(sSide,colors.combine(redstone.getBundledOutput(sSide),colors.white))
- else
- monitor.setTextColor(colors.red)
- monitor.setCursorPos(1,3)
- monitor.write('Shield Power Inactive')
- redstone.setBundledOutput("back",colors.subtract(redstone.getBundledOutput("back"), colors.white))
- end
- if redstone.testBundledInput("back", colors.green) then
- monitor.setTextColor(colors.green)
- monitor.setCursorPos(1,5)
- monitor.write('Shield Active')
- redstone.setBundledOutput(sSide,colors.combine(redstone.getBundledOutput(sSide),colors.orange))
- else
- monitor.setTextColor(colors.red)
- monitor.setCursorPos(1,5)
- monitor.write('Shield Inactive')
- redstone.setBundledOutput("back",colors.subtract(redstone.getBundledOutput("back"), colors.orange))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement