Advertisement
doru90

Untitled

Apr 25th, 2020
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. command /bakuen <player>:
  2. permission: admin
  3. trigger:
  4. give arg a blaze powder named "&c&l爆炎"
  5.  
  6. on rightclick with blaze powder:
  7. if {bakuen.%player%} is not set:
  8. if player's tool's name is "&c&l爆炎":
  9. set {_loc} to location of event-player
  10. play sound "entity.generic.explode" with volume 1 and pitch 0 at {_loc}
  11. play sound "entity.enderdragon.ambient" with volume 0.5 and pitch 2 at {_loc}
  12. add 1 to y-coordinate of {_loc}
  13. set {_a2} to yaw of location of event-player - 270
  14. set {_a1} to Pitch of location of event-player * -1
  15. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1.5
  16. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1.5
  17. set {_y} to cos(90-{_a1}) * 1.5
  18. loop 10 times:
  19. add {_x} to x-coordinate of {_loc}
  20. add {_y} to y-coordinate of {_loc}
  21. add {_z} to z-coordinate of {_loc}
  22. if block at {_loc} is not air:
  23. execute console command "/summon fireworks_rocket %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Trail:1,Colors:[I;11743532]}],Flight:1}}}}"
  24. play sound "entity.generic.explode" with volume 2 and pitch 2 at {_loc}
  25. loop living entities in radius 4 of {_loc}:
  26. make player damage loop-entity by 1
  27. stop
  28. execute console command "particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.1 0.1 0.1 0 1"
  29. execute console command "particle lava %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 1"
  30. loop living entities in radius 1.5 of {_loc}:
  31. loop-entities is not event-player
  32. execute console command "/summon fireworks_rocket %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Trail:1,Colors:[I;11743532]}],Flight:1}}}}"
  33. play sound "entity.generic.explode" with volume 2 and pitch 2 at {_loc}
  34. loop living entities in radius 4 of {_loc}:
  35. make player damage loop-entity-2 by 1
  36. stop
  37. wait a tick
  38. execute console command "/summon fireworks_rocket %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% {LifeTime:0,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Trail:1,Colors:[I;11743532]}],Flight:1}}}}"
  39. play sound "entity.generic.explode" with volume 2 and pitch 2 at {_loc}
  40. loop living entities in radius 4 of {_loc}:
  41. make player damage loop-entity by 1
  42. stop
  43.  
  44. on join:
  45. clear {bakuen.%player%}
  46.  
  47. on rightclick with blaze powder:
  48. if player's tool's name is "&c&l爆炎":
  49. if {bakuen.%player%} is not set:
  50. set {bakuen.%player%} to true
  51. wait 4 seconds
  52. clear {bakuen.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement