1. 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 comminuty!

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

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Elytra and fireworks problem

Discussion in 'Requests' started by BluePenguin_Won, Jun 30, 2022.

  1. BluePenguin_Won

    Joined:
    Jun 30, 2022
    Messages:
    16
    Likes Received:
    1
    I want to make a infinite firework with skript. with this skript, if player is aiming void, the firework doubled. can you guys help me?
    here is my code:
    on rightclick holding firework:
    →if name of player's tool contains "&cfirework":
    →→give 1 firework named "&cfirework" to player
    (→=tab)
     
  2. Iroh

    Iroh New Member

    Joined:
    Apr 8, 2022
    Messages:
    9
    Likes Received:
    0
    I believe the firework is duplicating because when you don't click on a block the firework isn't used.

    try this it should only give the firework when it is used as an elytra boost or on a block.

    i didn't test this code so it might not work

    Code (Text):
    1. on rightclick holding firework:
    2.   if name of player's tool contains "&cfirework":
    3.     if player is gliding:
    4.       give 1 firework named "&cfirework" to player
    5.     else if clicked block is set:
    6.       give 1 firework named "&cfirework" to player
     
  3. BluePenguin_Won

    Joined:
    Jun 30, 2022
    Messages:
    16
    Likes Received:
    1
    it is good, but it says player can't compare with 'gliding'.
    --- Double Post Merged, Jul 1, 2022, Original Post Date: Jul 1, 2022 ---
    I want to make it like using firework at creative mode
    --- Double Post Merged, Jul 1, 2022 ---
    I solved problem with this code!
    Code (Skript):
    1. on elytra boost:
    2.     if name of player's tool contains "&cFirework":
    3.         give 1 firework named "&cFirework"to player
    4.         remove firework named ""&cFirework" from the player
    5. on rightclick holding firework:
    6.    if clicked block is set:
    7.        if name of player's tool contains "&cFirework":
    8.            cancel event
     
    Iroh likes this.

Share This Page

Loading...