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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

Solved Item with lore works for few sec.

Discussion in 'Skript' started by ichbineintisch, Jun 28, 2022.

Thread Status:
Not open for further replies.
  1. ichbineintisch

    Joined:
    Feb 18, 2022
    Messages:
    2
    Likes Received:
    0
    So im "recreating" some items from hypixel skyblock for myself. Currently im working on the Terminator. It works fine except ill add a lore to it, it only works for few seconds ~1s-2s and after that time it just stop working.
    There is the code:

    on leftclick:
    if player's tool is bow named "&6Terminator" with lore "||&6&lLEGENDARY BOW":
    shoot an arrow at speed 6
    push last shot projectile right at speed 1
    shoot an arrow at speed 6
    push last shot projectile left at speed 1
    shoot an arrow at speed 6

    on rightclick:
    if player's tool is bow named "&6Terminator" with lore "||&6&lLEGENDARY BOW":
    shoot an arrow at speed 6
    push last shot projectile right at speed 1
    shoot an arrow at speed 6
    push last shot projectile left at speed 1
    shoot an arrow at speed 6

    on damage:
    if damage was caused by projectile:
    if projectile is an arrow:
    if attacker is player:
    if attacker's tool is bow named "&6Terminator" with lore "||&6&lLEGENDARY BOW":
    increase damage by 100

    command /term2:
    trigger:
    give player bow named "&6Terminator" with lore "||&6&lLEGENDARY BOW"

    Addons: skUtilities, skQuery, skDragon and TuSKe
     
  2. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    30
    Likes Received:
    2
    You don't need to add the "with lore" stuff in if statements

    Code (Text):
    1.  
    2. on leftclick:
    3.     if player's tool is bow named "&6Terminator":
    4.         shoot an arrow at speed 6
    5.         push last shot projectile right at speed 1
    6.         shoot an arrow at speed 6
    7.         push last shot projectile left at speed 1
    8.         shoot an arrow at speed 6
    9.  
    10. on rightclick:
    11.     if player's tool is bow named "&6Terminator":
    12.         shoot an arrow at speed 6
    13.         push last shot projectile right at speed 1
    14.         shoot an arrow at speed 6
    15.         push last shot projectile left at speed 1
    16.         shoot an arrow at speed 6
    17.  
    18. on damage:
    19.     if damage was caused by projectile:
    20.         if projectile is an arrow:
    21.             if attacker is player:
    22.                 if attacker's tool is bow named "&6Terminator":
    23.                     increase damage by 100
    24.  
    25. command /term2:
    26.     trigger:
    27.         give player bow named "&6Terminator" with lore "||&6&lLEGENDARY BOW"
    28.  
     
  3. ichbineintisch

    Joined:
    Feb 18, 2022
    Messages:
    2
    Likes Received:
    0
    thanks for that and i found out that a plugin was the issue
     
  4. Sabified

    Sabified Member

    Joined:
    Jun 5, 2022
    Messages:
    30
    Likes Received:
    2
    Set it to solved if that's all
     
Thread Status:
Not open for further replies.

Share This Page

Loading...