Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /bakuen <player>:
- permission: admin
- trigger:
- give arg a blaze powder named "&c&l爆炎"
- on rightclick with blaze powder:
- if {bakuen.%player%} is not set:
- if player's tool's name is "&c&l爆炎":
- set {_loc} to location of event-player
- play sound "entity.generic.explode" with volume 1 and pitch 0 at {_loc}
- play sound "entity.enderdragon.ambient" with volume 0.5 and pitch 2 at {_loc}
- add 1 to y-coordinate of {_loc}
- set {_a2} to yaw of location of event-player - 270
- set {_a1} to Pitch of location of event-player * -1
- set {_x} to sin(90-{_a1}) * cos({_a2}) * 1.5
- set {_z} to sin(90-{_a1}) * sin({_a2}) * 1.5
- set {_y} to cos(90-{_a1}) * 1.5
- loop 10 times:
- add {_x} to x-coordinate of {_loc}
- add {_y} to y-coordinate of {_loc}
- add {_z} to z-coordinate of {_loc}
- if block at {_loc} is not air:
- 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}}}}"
- play sound "entity.generic.explode" with volume 2 and pitch 2 at {_loc}
- loop living entities in radius 4 of {_loc}:
- make player damage loop-entity by 1
- stop
- 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"
- execute console command "particle lava %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 1"
- loop living entities in radius 1.5 of {_loc}:
- loop-entities is not event-player
- 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}}}}"
- play sound "entity.generic.explode" with volume 2 and pitch 2 at {_loc}
- loop living entities in radius 4 of {_loc}:
- make player damage loop-entity-2 by 1
- stop
- wait a tick
- 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}}}}"
- play sound "entity.generic.explode" with volume 2 and pitch 2 at {_loc}
- loop living entities in radius 4 of {_loc}:
- make player damage loop-entity by 1
- stop
- on join:
- clear {bakuen.%player%}
- on rightclick with blaze powder:
- if player's tool's name is "&c&l爆炎":
- if {bakuen.%player%} is not set:
- set {bakuen.%player%} to true
- wait 4 seconds
- clear {bakuen.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement