Craft4Cube

RSchk_CC_MC

Nov 27th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. --Setup
  2. rsside = "bottom"
  3. scside = "back"
  4. rdycol = colors.green
  5. chrcol = colors.red
  6. --End of Setup!
  7.  
  8.  
  9. --Script - Do not Edit
  10. monitor = peripheral.wrap(scside)
  11. while true do
  12.   local event = os.pullEvent("redstone")
  13.   if rs.getInput(rsside) then
  14.   monitor.setBackgroundColor(chrcol)
  15.   else
  16.   monitor.setBackgroundColor(rdycol)
  17.   end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment