Advertisement
JaMaNi133

snad

Nov 26th, 2022 (edited)
606
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. function flash()
  2.     redstone.setOutput("front",true)
  3.     redstone.setOutput("left",true)
  4.     redstone.setOutput("right",true)
  5.     redstone.setOutput("back",true)
  6.     sleep(.01)
  7.     redstone.setOutput("front",false)
  8.     redstone.setOutput("left",false)
  9.     redstone.setOutput("right",false)
  10.     redstone.setOutput("back",false)
  11.     sleep(.01)
  12. end
  13.  
  14.  
  15. local items = ...
  16. for x = 1,tonumber(items),4 do
  17.     redstone.setOutput("top",true)
  18.    
  19.     for i = 1,10,1 do
  20.         flash()
  21.     end
  22.  
  23.    
  24.     redstone.setOutput("top",false)
  25.     sleep(0.25)
  26. end
  27.  
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement