Advertisement
Ezteyh

receveur redstone computer

Aug 10th, 2022
626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. peripheral.find("modem", rednet.open)
  2.  
  3. function init()
  4.     redstone.setAnalogOutput("front", 1)
  5.     sleep(1)
  6.     redstone.setAnalogOutput("front",0)
  7. end
  8.  
  9. function up()
  10.     redstone.setAnalogOutput("back", 1)
  11.     sleep(1)
  12.     redstone.setAnalogOutput("back", 0)
  13. end
  14.  
  15. while (1) do
  16.     event, senderId, message, distance = os.pullEvent("rednet_message")
  17.     if message == "rideau1" then
  18.        up()
  19.     end        
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement