Advertisement
Guest User

startup.lua

a guest
Apr 19th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4.     id,message = rednet.receive()
  5.    
  6.     if
  7.         message==("EMCSTART")
  8.     then
  9.         redstone.setOutput("bottom",true)
  10.         os.sleep(1)
  11.         redstone.setOutput("bottom",false)
  12.         rednet.send(8,"conf")
  13.     elseif message=="EMCPING" then
  14.         rednet.send(8,"conf")
  15.     else
  16.         print(id.." | "..message)
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement