Solved Item with lore works for few sec.

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.
Feb 18, 2022
2
0
1
23
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
 
You don't need to add the "with lore" stuff in if statements

Code:
on leftclick:
    if player's tool is bow named "&6Terminator":
        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":
        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":
                    increase damage by 100

command /term2:
    trigger:
        give player bow named "&6Terminator" with lore "||&6&lLEGENDARY BOW"
 
Status
Not open for further replies.