Advertisement
Guest User

startup.lua

a guest
Aug 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. modem = peripheral.wrap("left")
  2.  
  3. redstone.setOutput("top", false)
  4.  
  5. while true do
  6.     event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  7.    
  8.     if message == "on" then
  9.         redstone.setOutput("top", true)
  10.     end
  11.    
  12.     if message == "off" then
  13.         redstone.setOutput("top", false)
  14.     end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement