Advertisement
chand1012

allshutdown

Feb 10th, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. while true do
  2.     os.pullEvent("redstone")
  3.     if redstone.getInput('right') then
  4.         print("De-activating Reactor and Quarry...")
  5.         local modem = peripheral.wrap("top")
  6.         modem.transmit(1200, 1200, "False")
  7.         modem.transmit(1200, 1200, "Off")
  8.         print("Reactor and Quarry Turned off.")
  9.         sleep(3)
  10.     end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement