wearing condition for multiple items

Discussion in 'Community Support' started by WhenChickensFly, Jul 7, 2019.

  1. WhenChickensFly

    WhenChickensFly New Member

    Joined:
    Aug 31, 2017
    Messages:
    4
    Likes Received:
    0
    I am trying to use this with MythicArtifacts.
    Is it possible for the 'wearing' condition to be used for multiple armor pieces?

    I have tried:
    Code:
    BirchSpeed:
      Conditions:
      - wearing{slot=helmet;mmitem=BirchHelmet} true
      - wearing{slot=chestplate;mmitem=BirchChestplate} true
      Skills:
      - potion{type=SPEED;duration=20;level=1;force=true} @self
    And used these armor pieces:
    Code:
    BirchHelmet:
      Id: LEATHER_HELMET
      Display: '&fBirch Helmet'
      Lore:
      - '&aUncommon'
      - '&7A helmet forged from birch tree bark'
      - ''
      - '&7When on head:'
      - '&9+1 Armor'
      Hide:
      - ATTRIBUTES
      Skills:
      - skill{s=BirchSpeed} @self ~onTimer:20
      Options:
        Unbreakable: true
        Color: 240,240,240
      Attributes:
        Head:
          Armor: 1
    BirchChestplate:
      Id: LEATHER_CHESTPLATE
      Display: '&fBirch Chestplate'
      Lore:
      - '&aUncommon'
      - '&7A chestplate forged from birch tree bark'
      - ''
      - '&7When on chest:'
      - '&9+3 Armor'
      Hide:
      - ATTRIBUTES
      Options:
        Unbreakable: true
        Color: 240,240,240
      Attributes:
        Chest:
          Armor: 3
    I have tested the skill and I get the speed even if I only have the helmet equipped or if the helmet is in my hand.

    Is there something else I am missing or is this just not possible?
     
    #1
  2. Adam.

    Adam. New Member

    Joined:
    May 25, 2019
    Messages:
    6
    Likes Received:
    0
    Try replacing the "slot=helmet" and "slot=chestplate" with "slot=4" and "slot=3" respectively. If that doesn't work, try "slot=Head" and "slot=Chest"
     
    #2
  3. WhenChickensFly

    WhenChickensFly New Member

    Joined:
    Aug 31, 2017
    Messages:
    4
    Likes Received:
    0
    I tried both options, I am still getting speed when the helmet is in my hand or I am wearing it, regardless if I am wearing the chestplate or not. I also tried TargetConditions since I was targeting myself but it still didn't work as intended.
     
    #3
  4. NomzHD

    NomzHD New Member

    Joined:
    Feb 25, 2018
    Messages:
    4
    Likes Received:
    0
    "Can we bump this? I am curious about it as well. I'd like to see if there is a way to set a potiontick when armour is worn. IE: Wearing helmet xyz will provide you with absorption or strength boost"

    Ignore above ^ Original poster was using the wrong formatting for the slots. Everything else works flawlessly. Cheers and thanks
     
    #4
    Last edited: Jul 22, 2019
  5. WhenChickensFly

    WhenChickensFly New Member

    Joined:
    Aug 31, 2017
    Messages:
    4
    Likes Received:
    0
    What was the correct formatting?
     
    #5
  6. NomzHD

    NomzHD New Member

    Joined:
    Feb 25, 2018
    Messages:
    4
    Likes Received:
    0
    Code:
    ##This is what I place under the Skill category of my item##
      Skills:
      - skill{s=XYZSkill} @self ~onTimer:20
      - skill{s=ABCSkill} @self ~onTimer:20
    .
    .
    .
    Code:
    ##This is what I put in the actual .yml file in my Skills folder##
    XYZSkill:
      Conditions:
      - wearing{slot=Head;mmitem=ABCHelm} true
      - wearing{slot=Chest;mmitem=ABCChestplate} true
      - wearing{slot=Legs;mmitem=ABCLeggings} true
      - wearing{slot=Feet;mmitem=ABCBoots} true
    .
    .
    .
    The slots are named (and you have to be case sensitive with a lot of stuff in the plugin): Head, Chest, Legs, Feet, MainHand, OffHand, All
     
    #6

Share This Page