Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local power = redstone.getInput("top")
- while true do
- if power == "false" then
- term.setCursorPos(16,7)
- term.setBackgroudnColor(colors.red)
- print" "
- else
- term.setCursorPos(16,7)
- term.setBackgroundColor(colors.green)
- print" "
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement