Advertisement
Guest User

startup

a guest
Nov 18th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. --vampire detection system
  2.  
  3. modem = peripheral.wrap("top")
  4. modem.open(16)
  5. while true do
  6.   local event = os.pullEvent("redstone")
  7.   if rs.getInput("back") == true then
  8.     print("missile imbound")
  9.     modem.transmit(16,16,"vampire")
  10.    
  11.   end
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement