Potion Effects on Armor?

Discussion in 'Community Support' started by RicoSteves, Nov 10, 2019 at 1:53 PM.

  1. RicoSteves

    RicoSteves New Member

    Joined:
    Sunday
    Messages:
    5
    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:
    19
    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:
    Sunday
    Messages:
    5
    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:
    19
    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:
    Sunday
    Messages:
    5
    Likes Received:
    0
    Code:
    Nether:
      Skills:
      - potion{type=FIRE_RESISTANCE;duration=140;level=4} @self ~onTimer:40
     
    #5
  6. RicoSteves

    RicoSteves New Member

    Joined:
    Sunday
    Messages:
    5
    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:
    19
    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:
    Sunday
    Messages:
    5
    Likes Received:
    0
    Still does not work :( not while holding it nor wearing it. I'm sure the plugin is just broken.
     
    #8

Share This Page