Advertisement
Guest User

adon

a guest
Jan 22nd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local power = redstone.getInput("top")
  2.  
  3. while true do
  4. if power == "false" then
  5. term.setCursorPos(16,7)
  6. term.setBackgroudnColor(colors.red)
  7. print" "
  8.  else
  9.  term.setCursorPos(16,7)
  10.  term.setBackgroundColor(colors.green)
  11.  print" "
  12.  end
  13.  sleep(0.5)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement