cword520

ComputerCraft AutoTime/Weather Receiver

Nov 30th, 2020 (edited)
715
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2. while 1 do
  3.     local senderId, message, protocol = rednet.receive("Weather")
  4.     if (message == "autoDayOn") then
  5.         print(message)
  6.         redstone.setOutput("right", false)
  7.     elseif (message == "autoDayOff") then
  8.         print(message)
  9.         redstone.setOutput("right", true)
  10.     elseif (message == "autoWeatherOn") then
  11.         print(message)
  12.         redstone.setOutput("left", false)
  13.     elseif (message == "autoWeatherOff") then
  14.         print(message)
  15.         redstone.setOutput("left", true)
  16.     end
  17. end
RAW Paste Data