legolego19

fire work

May 13th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. fw = peripheral.wrap("right")
  2. rednet.open("left")
  3.  
  4. while true do
  5. id, message = rednet.receive()
  6. if id == 35 and message == "fire" then fw.launch(1, math.random(1,8), math.random(1,8), math.random(1,8))
  7. end
  8. end
Add Comment
Please, Sign In to add comment