Advertisement
neonerz

solar-generate-no-detect

Apr 16th, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.74 KB | None | 0 0
  1. while true do
  2.   print("waking up")
  3.   if redstone.getBundledOutput("bottom") == 0  then
  4.         print("start of day - transmitting on orange")
  5.         redstone.setBundledOutput("bottom", 0)
  6.         redstone.setBundledOutput("bottom", colors.orange)
  7.   elseif redstone.testBundledInput("bottom", colors.orange) then
  8.         print("day - transmitting on yellow")
  9.         redstone.setBundledOutput("bottom", 0)
  10.         redstone.setBundledOutput("bottom", colors.yellow)
  11.   elseif redstone.testBundledInput("bottom", colors.yellow) then
  12.         print("day - transmitting on orange")
  13.         redstone.setBundledOutput("bottom", 0)
  14.         redstone.setBundledOutput("bottom", colors.orange)
  15.   end
  16.   print("sleeping for 40 seconds")
  17.   sleep(40)
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement