Advertisement
Guest User

Porte

a guest
Nov 22nd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local modem = peripheral.wrap("bottom")
  2. modem.open(2)
  3. local event, modemSide, senderChannel,
  4.   replyChannel, message, senderDistance = os.pullEvent("modem_message")
  5. if message == "ON" then
  6. redstone.setOutput("right", true)
  7. sleep(1)
  8. redstone.setOutput("right", false)
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement