Advertisement
ysoh

ReceiveOrdre

Apr 14th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. -- Ouverture du wireless + coté
  2. -- top, bottom, left,front,back,right
  3. rednet.open("side")
  4.  
  5. while true do
  6.     commande = rednet.receive()
  7.  
  8.         if commande == "on" then
  9.         redstone.setOutput("side",true)
  10.         end
  11.  
  12.         if commande == "off" then
  13.         redstone.setOutput("side", false)
  14.         end
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement