Advertisement
KnightRanger

TNT Regen [skript]

Oct 21st, 2020 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. on block place:
  2. if event-block is tnt:
  3. set event-block to air
  4. spawn 1 primed tnt at location of event-block
  5. set fuse time of last spawned primed tnt to 0
  6. set the blast size of last spawned primed tnt to 5
  7. remove 1 of tnt from player
  8. wait 3 seconds
  9. inventory(player)
  10.  
  11. on left click:
  12. if player is holding tnt:
  13. remove 1 of tnt from player
  14. spawn 1 primed tnt at location of player
  15. thrust last spawned primed tnt in direction of player at speed 2
  16. thrust last spawned primed tnt upwards at speed 0.5
  17. set fuse time of last spawned primed tnt to 20
  18. set the blast size of last spawned primed tnt to 7
  19. wait 3 seconds
  20. inventory(player)
  21.  
  22. on explode:
  23. loop exploded blocks:
  24. set {_boom::%loop-value's location%::block} to block data of loop-value
  25. set {_boom::%loop-value's location%::loc} to location of loop-value
  26. wait 3 seconds
  27. loop shuffled indices of {_boom::*}:
  28. wait 2 ticks
  29. set block at {_boom::%loop-value%::loc} to {_boom::%loop-value%::block}
  30.  
  31. on projectile hit:
  32. if event-projectile is an arrow:
  33. spawn 1 primed tnt at location of event-projectile
  34. set fuse time of last spawned primed tnt to 0
  35. set the blast size of last spawned primed tnt to 3
  36. delete event-projectileck}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement