Advanced LibsDisguise Command

Discussion in 'Tutorials' started by BerndiVader, Nov 25, 2016.

  1. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    AdvLibsDisguise Command for MythicMobs 2.1.2 2.5.0 or higher & LibsDisguise 8.6.8 or higher
    https://github.com/BerndiVader/mmDisguiseCommand

    With help of this command you can use the /d ingame disguise command for your MythicMobs! Copy the jar: https://github.com/BerndiVader/mmDisguiseCommand/blob/master/mmDisguiseCommand.jar into your plugins folder and restart the server. Now you can start to use the commandskill like this:

    Example 1:

    Code:
    WildHorse:
      Type: rabbit
      Display: 'WildHorse'
      Health: 30
      Damage: 15
      Faction: neutral
      Despawn: true
      Skills:
      - command{delay=1;cmd="advd <mob.uuid> <mob.l.w> Horse setColor Brown setRearing true"} @self ~onSpawn 1
    Example 2:

    Code:
    FlyingGhost:
      Type: bat
      Display: 'Spooky'
      Health: 30
      Damage: 1
      Skills:
      - command{delay=1;cmd="advd <mob.uuid> <mob.l.w> creeper setPowered true setInvisible true"} @self ~onSpawn 1
    Disclaimer: Use the command skill to execute the "advd" or "advdisguise" as command. Followed from the and mobs world. Now followed by all the options that you also use in the /d ingame disguise command. Enjoy!
     
    #1
    Last edited: Dec 14, 2016
    fly, gokivo and Rickyling like this.
  2. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    683
    Likes Received:
    213
    Can you give us a config example? Otherwise, very nice work!
     
    #2
  3. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    k added some examples
     
    #3
  4. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    683
    Likes Received:
    213
    Hm, doesn't seem to work for me. You don't have 2.6.0, the dev builds, do you?
     
    #4
  5. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    if all you say is it doesnt work for me i cannot help you. it works for released mythicmobs version that depend on mythiclib. so 2.5.0 and 2.5.1 that is.
     
    #5
  6. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    Now working for all MythicMobs versions and for LibsDisguise 8.6.8 or higher
     
    #6
  7. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    683
    Likes Received:
    213
    Well that's the thing, I don't get any errors. The command only gives an error when a player uses it- I'm assuming that's just how you wrote the command. When used with a mob, it just doesn't do anything.

    I'd assumed it wasn't working because of the version difference. Just was asking if that might be the case.

    That was with the version bundled with the KeepItem plugin though.
    The new one does give an error:
    http://pastebin.com/dQhUHNGq
     
    #7
  8. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    now that helped alot. its now working for all mythicmobs version including 2.6
     
    #8
  9. jaylawl

    jaylawl Developer
    Developer Community Manager Premium Supporter Supporter Quality Assurance

    Joined:
    Sep 16, 2015
    Messages:
    1,840
    Likes Received:
    176
    (this is absolutely amazing i love this guy)

    /e

    this was in the wrong forum though! it didnt quite fit into "showcases" either, so i moved it into tutorials.
     
    #9
    gokivo likes this.
  10. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    683
    Likes Received:
    213
    Looks like this needs to be updated to work with 1.11?
    yes pls
     
    #10
  11. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    Hello! :) Updated to 1.11. But cant check if it works with 2.6.0. Can you do for me? Link updated in first posting. Thx
     
    #11
  12. Rickyling

    Rickyling Community Manager
    Community Manager Supporter Moderator Quality Assurance

    Joined:
    Jul 24, 2015
    Messages:
    683
    Likes Received:
    213
    Sure, I'll do it now.

    Looks like it's working, cheers!
     
    #12
    BerndiVader likes this.
  13. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    Updated to 9.2 Libsdisguise. Now supports templates with saved skins. to use like this:

    Code:
      - advdisguise{cmd="libraryaddict"} @self ~onSpawn 1
    
    But is still compatible with 1.8.8 and the old libsdisguise. Ofcourse the customskins do not work there. For this you need atleast 1.10.2 with 9.1.2 or higher.

    https://github.com/BerndiVader/mmDisguiseCommand
     
    #13
  14. BerndiVader

    BerndiVader Active Member
    Supporter

    Joined:
    Feb 9, 2016
    Messages:
    602
    Likes Received:
    220
    #14
  15. Mobiix

    Mobiix New Member

    Joined:
    Nov 14, 2016
    Messages:
    6
    Likes Received:
    0
    Now, how would I use this with "saved skins"? Could I get a simple tutorial or instructions on where to save the skins and how to access them with this plugin?
     
    #15
  16. BrianBH1

    BrianBH1 New Member

    Joined:
    Aug 17, 2017
    Messages:
    7
    Likes Received:
    0
    When I put the command in the skills part of the mob, it is green, which indicates it is not activating, and does nothing. using latest MM and LD.

    Also, as Moblix requested, a tutorial/guide on how to create custom skins as mine dont seem to be registering.
     
    #16
  17. Durzan

    Durzan Member
    Premium Supporter Supporter

    Joined:
    Jul 5, 2016
    Messages:
    38
    Likes Received:
    3
    Could you update this to 1.13 please? Its kinda essential for me as otherwise, I cannot get a certain custom horse mob to always have the same skin everytime one spawns.
     
    #17
  18. Buguser

    Buguser Active Member
    Supporter

    Joined:
    Oct 11, 2016
    Messages:
    273
    Likes Received:
    63
    You can easily create your own disguises inside of the disguises.yml of LibsDisguises, that way you can create valid disguises for your mobs which can be used as usual.

    disguises.yml
    Code:
      BrownHorse: 'Horse setColor BROWN setRearing true'
    Add this to your mob (Option 1):
    Code:
      Disguise:
        Type: BrownHorse
    Applying the disguise as a skill (Option 2):
    Code:
      - disguise{d=BrownHorse} @self
    And now the disguise works in 1.13 as it should.
     
    #18
  19. Durzan

    Durzan Member
    Premium Supporter Supporter

    Joined:
    Jul 5, 2016
    Messages:
    38
    Likes Received:
    3
    ...I do appreciate the help, but neither of your suggestions worked. Instead of changing the disguise to the desired horse design, the plugin didn't even detect the custom disguise "darkhorse" and spat out the following errors:

    not really sure how to solve this either. Solving console errors is definitely not my speciality. I must add that the disguise specification of MythicMobs does seem to work normally with regular disguises.
     
    #19
    Last edited: Apr 5, 2019
  20. BadWolfMC

    BadWolfMC New Member
    Supporter

    Joined:
    Mar 18, 2017
    Messages:
    15
    Likes Received:
    3
    Confirming that I get the same errors. MM does not recognize any of my custom disguises in the LibsDisguises disguises.yml, but these disguises do otherwise work when using them directly through the LibsDisguises plugin.
     
    #20

Share This Page