Guest User

fireworks.lua

a guest
Aug 3rd, 2018
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local sides = require("sides")
  3.  
  4. local rs = component.redstone
  5. local dbg = component.debug
  6. local computer = component.computer
  7.  
  8. local x = 0
  9. local input = sides.left
  10. local output = sides.right
  11.  
  12. while true do
  13.   if rs.getInput(input) > 0 then
  14.     x = #dbg.getPlayers()
  15.     print("Players Updated!")
  16.   end
  17.   if x >= 500 then
  18.     rs.setOutput(output, 15)
  19.     os.sleep(5)
  20.     computer.beep()
  21.     computer.stop()
  22.   end
  23.   print(x)
  24.   os.sleep(0.1)
  25. end
RAW Paste Data