Advertisement
MigasRocha

Elevator Call Control to Floor 0

Jan 8th, 2024
704
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 == 30 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement