Make player shoot a firework

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Mirthfire

New Member
Jan 20, 2018
6
1
3
I'm trying to make player summon a firework when shooting while looking up, but I'm getting the error message: "Can't understand this condition/effect: make shooter run command..."

Code:
on projectile shoot:
    projectile is arrow
    if shooter's pitch is less than -80:
        cancel event
        make shooter run command "/summon firework_rocket ~ ~ ~ {LifeTime:50,FireworksItem:{id:firework_rocket,count:1,components:{fireworks:{flight_duration:3,explosions:[{shape:"large_ball",has_twinkle:0,has_trail:0,colors:[I;11743532]}]}}}}" as op

Manually typing the command in the chat works.