Advertisement
Alakazard12

Awakened

Mar 17th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.79 KB | None | 0 0
  1. local args = {...}
  2.  
  3. local amount = tonumber(args[1] or 1) or 1
  4.  
  5. local bundled_side = "back"
  6. local core_side = "left"
  7.  
  8.  
  9. bundled_colors = {
  10.     tnt_heart = colors.red;
  11.     cores = colors.lime;
  12.     breakers = colors.lightBlue;
  13.     placers = colors.orange;
  14.  
  15. }
  16.  
  17.  
  18. local function SendPulse(color)
  19.     redstone.setBundledOutput(bundled_side, color)
  20.     sleep(0.4)
  21.     redstone.setBundledOutput(bundled_side, 0)
  22.     sleep(0.4)
  23. end
  24.  
  25. print("Running " .. amount .. " time(s)")
  26.  
  27. for i = 1, amount do
  28.     SendPulse(bundled_colors.placers)
  29.     SendPulse(bundled_colors.tnt_heart)
  30.  
  31.     print("Pulsed placers, tnt, and heart")
  32.  
  33.     sleep(8)
  34.  
  35.     print("Pulsing cores...")
  36.  
  37.     SendPulse(bundled_colors.cores)
  38.     print("Pulsed cores")
  39.  
  40.     sleep(28)
  41.  
  42.     SendPulse(bundled_colors.breakers)
  43.     print("Pulsed breakers")
  44.  
  45.     sleep(5)
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement