Artifacts plugin not working the way it should.. (NEED HELP ASAP!)

Discussion in 'Community Support' started by GallantEffort, Sep 6, 2018.

  1. GallantEffort

    GallantEffort New Member

    Joined:
    Mar 25, 2018
    Messages:
    15
    Likes Received:
    0
    I have just purchased the Artifacts add-on, and it doesn't seem to be working the way it should. I'm trying to make skills that will be put on certain items. I'm trying to put this skill on a bow:

    Code:
    Cripple:
      Skills:
      - shoot{type=ARROW;velocity=3;damage=2;onTick=Cripple-Tick;onHit=Cripple-Hit}
    Cripple-Hit:
      Skills:
      - effect:sound{s=random.break;v=2;p=1.3} @self
      - effect:sound{s=mob.guardian.land.hit;v=2;p=0.5} @self
      - delay 20
      - effect:sound{s=random.levelup;v=2;p=1.5} @self
      - sudoskill{s=Cripple-HitAOE;cat=true} @target
      - delay 100
      - effect:sound{s=random.break;v=2;p=2} @self
      - effect:sound{s=mob.guardian.land.hit;v=2;p=2} @self
    Cripple-HitAOE:
      Skills:
      - skill{s=Cripple-HitRing;repeat=20;repeatinterval=5} @target
      - potion{type=WEAKNESS;duration=100;lvl=1} @a[r=3]
      - potion{type=SLOW;duration=100;lvl=3} @a[r=3]
      - potion{type=CONFUSION;duration=200;lvl=1} @a[r=3]
      - damage{a=2;i=true} @e[r=3]
      - effect:particles{p=blockcrack_0152_0;hs=0.3;vs=0.1;a=50;s=0.1;y=1}
      - delay 20
      - damage{a=1;i=true} @e[r=3]
      - effect:particles{p=blockcrack_0152_0;hs=0.3;vs=0.1;a=50;s=0.1;y=1}
      - delay 20
      - damage{a=1;i=true} @e[r=3]
      - effect:particles{p=blockcrack_0152_0;hs=0.3;vs=0.1;a=50;s=0.1;y=1}
      - delay 20
      - damage{a=1;i=true} @e[r=3]
      - effect:particles{p=blockcrack_0152_0;hs=0.3;vs=0.1;a=50;s=0.1;y=1}
      - delay 20
      - damage{a=1;i=true} @e[r=3]
      - effect:particles{p=blockcrack_0152_0;hs=0.3;vs=0.1;a=50;s=0.1;y=1}
    Cripple-HitRing:
      Skills:
      - effect:particlering{particle=happyVillager;radius=3;points=100;amount=10;hS=1;vS=0} @self
      - effect:particlering{particle=happyVillager;radius=2;points=100;amount=10;hS=1;vS=0} @self
      - effect:particlering{particle=happyVillager;radius=1;points=100;amount=10;hS=1;vS=0} @self
      - effect:particlesphere{particle=happyVillager;amount=1000;radius=3} @self
    Cripple-Tick:
      Skills:
      - effect:particles{p=happyVillager;a=100} @origin
    The bow config looks like this:

    Code:
    Cripple:
      Id: 261
      Data: 0
      Display: '&2&lCripple'
      Enchantments:
      - ARROW_DAMAGE:3
      - DAMAGE_ALL:3
      - DURABILITY:3
      Skills:
      - skill{s=Cripple} ~onUse
    Once I save the config, then do /mm reload, then give myself the bow, I have to do /mm reload again for it to actually work. Then if I drop the bow and pick it back up, I have to do /mm reload again for it to work again. That's the first issue..
    Second, I can use this skill with any item in my hotbar, not just the bow. For example, if I have this bow in my first slot, and a sword in my second slot, I can right click to activate the bow's skill while holding the bow AND the sword. I want the skill to strictly be ONLY be activated with the item it's assigned to.
    Am I doing something wrong? Or is this the way the plugin is made? Any help would be greatly appreciated! Thank you!
     
    #1
  2. GallantEffort

    GallantEffort New Member

    Joined:
    Mar 25, 2018
    Messages:
    15
    Likes Received:
    0
    I am running my server on 1.8
     
    #2
  3. GallantEffort

    GallantEffort New Member

    Joined:
    Mar 25, 2018
    Messages:
    15
    Likes Received:
    0
    Nobody? ;-;
     
    #3
  4. microwave0

    microwave0 New Member

    Joined:
    Nov 7, 2019
    Messages:
    6
    Likes Received:
    0
    So the reason it's working everywhere is because you don't have an attributes part of the Bow. You will need to add one that has MainHand to ensure that it only works while you're holding it. I am not sure why it won't work once dropped and picked up.
     
    #4
  5. tappestry

    tappestry Member
    Supporter New

    Joined:
    Mar 4, 2016
    Messages:
    38
    Likes Received:
    2
    Code:
    Cripple:
      Skills:
      - shoot{type=ARROW;velocity=3;damage=2;onTick=Cripple-Tick;onHit=Cripple-Hit}
    
    Would having no @target in the main cripple skill make it not shoot? This section of the skill has no targeter in both the Bow item and the skill itself. Worth a test maybe?
     
    #5
  6. microwave0

    microwave0 New Member

    Joined:
    Nov 7, 2019
    Messages:
    6
    Likes Received:
    0
    Having a targeter in the skill doesn't always work. The best bet is to put it on the items or mobs code. This code does not have a targeter and that is not making it work, but the trigger is also not great either. ~onUse is not suited for a bow because right click shoots the bow and does not activate the mechanic. ~onShoot could produce better results, but I had no luck activating any skill besides arrowBarrage.
     
    #6

Share This Page