Advertisement
cword520

ComputerCraft SetTime Receiver

Nov 30th, 2020 (edited)
608
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2. rednet.host("Weather","SetTime")
  3. while 1 do
  4.     local senderId, message, protocol = rednet.receive("Weather")
  5.     if (message == "setDay") then
  6.         redstone.setOutput("right", true)
  7.         sleep(1)
  8.         redstone.setOutput("right", false)
  9.     elseif (message == "setNight") then
  10.         redstone.setOutput("left", true)
  11.         sleep(1)
  12.         redstone.setOutput("left", false)
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement