leonardi

Sensor Door

Oct 14th, 2013
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. os.loadAPI("ocs/apis/sensor")
  2.  
  3. prox = sensor.wrap("right")
  4.  
  5. while true do
  6. local targets = prox.getTargets()
  7.   for name, basicDetails in pairs(targets) do
  8.     if name == "leonardi" or name == "tortmancomith" or name == "Capt_Lugnut" then
  9.        redstone.setOutput("top", true)
  10.        sleep(3)
  11.        redstone.setOutput("top", false)
  12.     end
  13.   end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment