legg0028

secret_door_close

Aug 3rd, 2021 (edited)
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local modem = peripheral.wrap("back")
  2. modem.open(00005)
  3.  
  4. while true do
  5.   os.pullEvent("redstone")
  6.   if rs.getInput("front") then
  7.     sleep(5)
  8.     modem.transmit(00005,00005,"open")
  9.   end
  10.   sleep(2)
  11. end
Add Comment
Please, Sign In to add comment