Lucrecio

Turtle-OpenDoor

Apr 16th, 2022
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local modem = peripheral.wrap("right")
  2. modem.open(1)
  3.  
  4. while true do    
  5.     local event,side,channel,replychannel,message,distance = os.pullEvent("modem_message")
  6.    
  7.     if message==true then
  8.         redstone.setOutput("front",not message)    
  9.     end
  10.     if message==false then
  11.         redstone.setOutput("front",not message)
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment