Advertisement
Guest User

startup

a guest
Mar 5th, 2015
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. rednet.open'bottom'
  2. table.foreach(rs.getSides(),function(i,v)
  3. redstone.setOutput(v,false) end)
  4. print(os.getComputerID())
  5. while true do
  6. local id,msg,prot=rednet.receive'door_signal'
  7. if msg=='open_door_2.5_close' then
  8. redstone.setOutput('top',true)
  9. sleep(2.5)
  10. redstone.setOutput('top',false)
  11. end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement