Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. while (true) do
  2.  
  3.     local mon = peripheral.wrap("monitor_0")
  4.    
  5.     if redstone.getAnalogInput("back") > 0 then
  6.        
  7.         mon.setCursorPos(1, 1)
  8.         mon.write(" ")
  9.         mon.write("Iron - Active")
  10.        
  11.     else
  12.    
  13.         mon.setCursorPos(1, 1)
  14.         mon.write(" ")
  15.         mon.write("Iron - Inactive")
  16.  
  17.     end
  18.  
  19.     os.pullEvent("redstone")
  20.    
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement