Vanilla Issue Bug: Equip Mechanic for slot 0 not working (under Skill:)

Discussion in 'Bug Reports' started by 817, Aug 18, 2019.

  1. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    38
    Likes Received:
    21
    Enter a brief description of what is broken Equip Mechanic for slot 0 not working (under Skill)

    What version of Minecraft are you using? 1.14.3

    What server jar are you using? Spigot

    What is this a bug report for? MythicMobs

    What version of the plugin are you using? MythicMobs 4.7.0 SNAPSHOT

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    It appears that the Equip mechanic will not work when trying to equip something in slot 0 (under Skill).


    Example Configurations

    #Not working
    Code:
    Skills:
    - equip{i=shield:0} @self ~onSpawn
    #Works

    Code:
    Skills:
    - equip{i=shield:5} @self ~onSpawn
     
    #1
    Last edited: Aug 18, 2019
  2. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    38
    Likes Received:
    21
    Bump
     
    #2
  3. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    38
    Likes Received:
    21
    Bump
     
    #3
  4. Soodoe

    Soodoe New Member
    Supporter

    Joined:
    Jul 15, 2019
    Messages:
    6
    Likes Received:
    1
    Try doing all caps. - equip{i=SHIELD:0} @self ~onSpawn
    Haven't tested it, but not having air capitalized for one of my conditions gave me troubles.
     
    #4
  5. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    38
    Likes Received:
    21
    Thanks for the suggestion! Unfortunately, it didn't change anything in my case.
     
    #5
  6. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    38
    Likes Received:
    21
    Bump
     
    #6
  7. Xikage

    Xikage Administrator
    Administrator Developer Community Manager Premium Supporter Supporter Quality Assurance

    Joined:
    Jul 18, 2015
    Messages:
    664
    Likes Received:
    231
    This seems to be a problem only when the mob is spawning, probably because in the first tick Minecraft is applying its own random equipment. Adding a delay fixes it.
    Code:
    - equip{i=SHIELD HAND; delay=5} @self ~onSpawn
    
     
    #7
  8. 817

    817 Member
    Premium Supporter Supporter

    Joined:
    Sep 10, 2016
    Messages:
    38
    Likes Received:
    21
    That fixed it! Thanks Xikage
     
    #8

Share This Page