Advertisement
GamingwithAtos

AFKController.lua

Dec 13th, 2019
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4. local sender, msg, pts = rednet.receive()
  5. if msg == "afk_on" then
  6. print("afk_on")
  7. redstone.setBundledOutput("left", 0)
  8. sleep(0.5)
  9. redstone.setBundledOutput("left", colors.blue)
  10. end
  11. if msg == "afk_off" then
  12. print("afk_off")
  13. redstone.setBundledOutput("left", 0)
  14. sleep(0.5)
  15. redstone.setBundledOutput("left", colors.white)
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement