Advertisement
Guest User

launch

a guest
May 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local x, y, xsize, ysize
  2. local idChannel = 2
  3. modem = peripheral.wrap("back")
  4. rednet.open("back")
  5.  
  6. while true do
  7.   local event = os.pullEvent("redstone")
  8.   rednet.send(32, 33, 31, "ping")
  9.   redstone.setOutput("left", false)
  10.   if redstone.getInput("top") then
  11.     rednet.broadcast("ping")
  12.     redstone.setOutput("left", true)
  13.     sleep(1)
  14.     redstone.setOutput("left", false)
  15.   end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement