Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Term setup
- x=0
- local term = peripheral.wrap("top")
- term.clear()
- --term.setBackgroundColour(colours.black)
- while true do
- if redstone.getInput("bottom") then
- if x==0 then
- term.setBackgroundColour(colours.black)
- term.clear()
- x=1
- else
- term.setBackgroundColour(colours.red)
- term.clear()
- x=0
- end
- else
- term.setBackgroundColour(colours.green)
- term.clear()
- x=0
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement