MCPets
  • MCPets
    • ๐Ÿ‘‹ Welcome
    • ๐Ÿฆฆ Get pets (+ Free otter)
    • ๐Ÿงช Upcoming features
  • Common issues
    • ๐Ÿ”ด Common issues
      • Requirements
      • My pet is removed on spawn
      • My pet is revoked on spawn
      • My pet looks like floating horse armors or doesn't look right
      • My pet leaves anchor mobs behind on server restart or chunk unloading
      • My pet has purple/black weird textures
      • My pet doesn't have its model applied
      • My pet can't be named
      • My pet can't be mounted
      • Pet experience : my pet is not getting any experience
      • ItemsAdder: I can't see the pet
      • Category : I can't see my pets
      • Texture Pack: merging custom items packs (1.21.3 and prior)
      • Atlases issues: purple/black icons
      • 1.21.4 Resource pack changes
      • Worldguard: making pet spawn in mob denied areas
  • Tutorials
    • โœจ Setup your first pet
    • ๐Ÿ”ฅ Pet features
      • Living Pet
        • Pet Experience
        • Modifiers
        • Taming
        • Pet Food
      • Pet Mount
      • Signal Stick
      • Pet Inventory
      • Skins
    • ๐Ÿ“œ Placeholder API support
    • ๐Ÿฒ MythicMobs add-ons
    • ๐Ÿ“ Config templates
      • Config file
      • Pet config
    • โš™๏ธ Plugin features
      • Commands
      • Permissions
      • Categories
      • Blacklisted Words
      • Custom Icons
      • WorldGuard flags
Powered by GitBook
On this page
  • What for ?
  • How to ?

Was this helpful?

  1. Tutorials
  2. ๐Ÿ”ฅ Pet features

Skins

PreviousPet InventoryNext๐Ÿ“œ Placeholder API support

Last updated 2 years ago

Was this helpful?

What for ?

The skins enable you to have different model for the same pet to create variations of it. For instance if you have color variations of the same model, then you just create one pet and associate it to various skins.

Note that each skin has its unique permission so it's unlockable by players.

Typically this could apply to this kind of pets:

How to ?

To implement the skins, you have to go into the pet config and add the YAML code below and tweak it to your needs. Once this is done, you should be able to access the skin tab within the interaction menu of the pet.

Skins:
  # Add the skins of the pet if it has various skins (this is not mandatory)
  Skin1: # Create a section
    MythicMob: mythicMobId # reference to the MythicMob you want to swap with
    Permission: skin.permission # Set the permission to access the skin, it can be the same as the pet permission for instance
    Icon: # Set the icon of the skin, just like before almost same syntax
      Material: STONE
      CustomModelData: 0
      DisplayName: "Skin 1"
      Lore:
      - "This is a lore"
      TextureBase64: anybase64youwant # this is not mandatory. Remove the Material field if you wanna use it
  Skin2:
     # Do the same syntax with as many skins as you want. Remember to add your default skin as well !

If you struggle on how to implement this code into the pet config, you can have a look at the general to see how it's done at the global scale.

pet config template
- by
Kingdom Cats
Nocsy