MigasRocha

Elevator Call Control to Floor -1

Jan 8th, 2024
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. while true do
  2. rednet.open("right")
  3.  
  4. local id, message = rednet.receive()
  5.  
  6. if id == 28 then
  7.     redstone.setOutput("front", true)
  8.     sleep(1)
  9.     redstone.setOutput("front", false)
  10.     print("chegou")
  11. else
  12.     sleep(0.1)
  13. end
  14.  
  15. end
Add Comment
Please, Sign In to add comment