Advertisement
zzTuras

Rebuild explode

Jul 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. options:
  2. #jakich blokow ma nie naprawiac
  3. #nazwe kazdego bloku oddziel slowem "and"
  4. #np. tnt and stone and dirt
  5. blocks: tnt
  6.  
  7. #po ilu sekundach od wybuchu ma naprawiac bloki
  8. time: 1
  9.  
  10. #co ile sekund ma sie odnawiac kolejny blok
  11. difference: 0.05
  12. on explode:
  13. cancel event
  14. loop boom boomed blocks:
  15. loop-block is not {@blocks}:
  16. add location of loop-block to {_list::*}
  17. add type of loop-block to {_listT::*}
  18. set loop-block to air
  19. wait {@time} seconds
  20. loop {_list::*}:
  21. chance of 25%:
  22. set block at loop-value to {_listT::%loop-index%}
  23. remove loop-value from {_list::*}
  24. remove loop-index from {_listT::*}
  25. wait {@difference} second
  26. loop 3 times:
  27. if {_list::*} is set:
  28. loop {_list::*}:
  29. chance of 25%:
  30. set block at loop-value to {_listT::%loop-index%}
  31. remove loop-value from {_list::*}
  32. remove loop-index from {_listT::*}
  33. wait {@difference} second
  34.  
  35. if {_list::*} is set:
  36. loop {_list::*}:
  37. set block at loop-value to {_listT::%loop-index%}
  38. remove loop-value from {_list::*}
  39. remove loop-index from {_listT::*}
  40. wait {@difference} second
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement