Potion Effects on Armor?

Discussion in 'Community Support' started by RicoSteves, Nov 10, 2019.

  1. RicoSteves

    RicoSteves New Member

    Joined:
    Nov 10, 2019
    Messages:
    6
    Likes Received:
    0
    Hi! I'm just trying to give my players fire resistance when they wear a specific custom armor item. I have MythicArtifacts, and I have the following code already:

    NetherBoots:
    Id: 301
    Data: 0
    Display: '&4Nether Boots'
    Options:
    Color: 110,27,0
    Unbreakable: true
    Attributes:
    Feet:
    Armor: 2
    Skills:
    - potion{type=FIRE_RESISTANCE;duration=140;level=4} @self ~onTimer:40

    But I do not get the desired effect. No related errors appear in the console with this code. Any help would be greatly appreciated!
     
    #1
  2. Gunging

    Gunging New Member

    Joined:
    Mar 13, 2019
    Messages:
    20
    Likes Received:
    1
    Try using

    Code:
    Code Tags
    Because the way you posted your code right now, I blame it on the indentation of the Attributes and Options.
     
    #2
  3. RicoSteves

    RicoSteves New Member

    Joined:
    Nov 10, 2019
    Messages:
    6
    Likes Received:
    0
    Code:
    NetherBoots:
      Id: 301
      Data: 0
      Display: '&4Nether Boots'
      Options:
        Color: 110,27,0
        Unbreakable: true
      Attributes:
        Feet:
          Armor: 2
      Skills:
      - skill{s=Nether} @Self
    
     
    #3
  4. Gunging

    Gunging New Member

    Joined:
    Mar 13, 2019
    Messages:
    20
    Likes Received:
    1
    What about the Skill Nether?

    Make sure it looks like

    Code:
    Nether:
      Skills:
      - potion{type=FIRE_RESISTANCE;duration=140;level=4}
    and not like

    Code:
    Nether:
      - potion{type=FIRE_RESISTANCE;duration=140;level=4}
    Because I have made that mistake thousands of times.

    Also, you gotta add your ~onTimer:40 Trigger (else I think the default is ~onCombat?)

    Code:
    NetherBoots:
      Id: 301
      Data: 0
      Display: '&4Nether Boots'
      Options:
        Color: 110,27,0
        Unbreakable: true
      Attributes:
        Feet:
          Armor: 2
      Skills:
      - skill{s=Nether} @Self ~onTimer:40
     
    #4
  5. RicoSteves

    RicoSteves New Member

    Joined:
    Nov 10, 2019
    Messages:
    6
    Likes Received:
    0
    Code:
    Nether:
      Skills:
      - potion{type=FIRE_RESISTANCE;duration=140;level=4} @self ~onTimer:40
     
    #5
  6. RicoSteves

    RicoSteves New Member

    Joined:
    Nov 10, 2019
    Messages:
    6
    Likes Received:
    0
    I assume the plugin just doesn't work. Is there anyone on 1.14 that can confirm that it does in fact work?
     
    #6
  7. Gunging

    Gunging New Member

    Joined:
    Mar 13, 2019
    Messages:
    20
    Likes Received:
    1
    You have to put the trigger on the item, not in the skill.

    The trigger is that ~onTimer:40

    You currently have it inside the Skill itself, but it should be in the item. Look at the codes I sent

    Code:
    NetherBoots:
      Id: 301
      Data: 0
      Display: '&4Nether Boots'
      Options:
        Color: 110,27,0
        Unbreakable: true
      Attributes:
        Feet:
          Armor: 2
      Skills:
      - skill{s=Nether} @Self ~onTimer:40
    Code:
    Nether:
      Skills:
      - potion{type=FIRE_RESISTANCE;duration=140;level=4}
    And of course, make sure the skill is in the skills folder.
     
    #7
  8. RicoSteves

    RicoSteves New Member

    Joined:
    Nov 10, 2019
    Messages:
    6
    Likes Received:
    0
    Still does not work :( not while holding it nor wearing it. I'm sure the plugin is just broken.
     
    #8
  9. microwave0

    microwave0 New Member
    Premium Supporter Supporter

    Joined:
    Nov 7, 2019
    Messages:
    12
    Likes Received:
    1
    Hey There, If you want a constant effect like a beacon, you need to set the time to 1 tick because the skill is active until the potion effect wears off.

    Code:
    JumpyBoots:
      Id: leather_boots
      Display: 'Jumpy Boots'
      Attributes:
        Feet:
          Health: 2
      Lore:
      - '&6Boots to make you jump'
      - '&6higher than a horse'
      Options:
        Repairable: false
        Unbreakable: true
        Color: PINK
      Skills:
      - skill{s=SuperJump} @self ~onTimer:1
    Code:
    SuperJump:
      Skills:
      - potion{t=JUMP;d=200;l=3}
    This is the code I am using for higher jump boots, it is essentially the same format as your current code, but perhaps there is some small error that I am not seeing.
     
    #9

Share This Page