Advertisement
MigasRocha

Snad

Jan 1st, 2021
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.31 KB | None | 0 0
  1. rednet.open("right")
  2.  
  3. local sender, message, protocol = rednet.receive()
  4.  
  5. while true do
  6.  
  7. if message == "canaOn" then
  8.   redstone.setOutput("front", true)
  9.   sleep(0.1)
  10.   redstone.setOutput("front", false)
  11.   sleep(0.1)
  12. end
  13.  
  14. if message == "canaOff" then
  15.   redstone.setOutput("front", false)
  16.  end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement