Advertisement
meuced

killChicken

Jan 26th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. local timerGrowingUp = 10
  2. local tickFiringEggs = 0.1
  3. local tickBetweenFiringEggs = 0.1
  4. local dispenser = "left"
  5. local chest = "top"
  6. local nbFire = 10
  7. local piston = "right"
  8. local timerPiston = 4
  9.  
  10. while true do
  11.  
  12.     print("Firing Eggs !")
  13.     local i=0
  14.     while i <= nbFire do
  15.         redstone.setOutput(dispenser, true)
  16.         sleep(tickFiringEggs)
  17.         redstone.setOutput(dispenser, false)
  18.         sleep(tickBetweenFiringEggs)
  19.         i=i+1
  20.     end
  21.     print("Waiting for growing up...")
  22.     sleep(timerGrowingUp)
  23.     print("Kill them'all !")
  24.     redstone.setOutput(piston, true)
  25.     sleep(timerPiston)
  26.     redstone.setOutput(piston, false)
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement