Using pet anchor metadata

This new functionality introduced in version 2.5.8 to allow pet creators to customize the anchor pet properties (#247), with this feature you can change things like:
- Horse color & Variant
- Cat type & color
- Baby / adult for all supported entities

This guide will guide you through the necessary changes to the config and all the available options.
Let's begin!

The pet properties are located inside the pet yml file. This is an example for the anchor field:

YAML:
anchor:
  type: HORSE
  style: WHITEFIELD
  color: CREAMY
  baby: true

Whereas previously, the anchor could only include the entity type.

All entities:
YAML:
# Can make the entity glow in supported server versions
# Default: undefined (false)
glowing: true

All living entities:
YAML:
# Can make the entity gliding
# Default: vanilla
gliding: true
# Can make the entity collidable
# Default: Vanilla (depends on version)
collidable: true

All entities that have a baby variant:
YAML:
# Can make the anchor a baby
# Default: false
baby: true

Bees:
YAML:
# Does the bee have nectar
# Default: false
hasNectar: true
# Does the bee have stung
# Default: false
hasStung: true

Cats:
YAML:
# Sets the cat type
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Cat.Type.html
# Default: random (Vanilla behavior)
catType: TABBY
# Collar color in dye color format
# Default: None
collarColor:

Creepers:
YAML:
# Can make the creeper powered
# Default: false
powered: true

Endermans:
YAML:
# Can make the enderman hold a block
# Default: none
blockType: DIRT

Foxes:
YAML:
# Sets the fox type
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Fox.Type.html
# Default: random (Vanilla behavior)
foxType: RED
# Can make the fox sleeping
# Default: false
sleeping: true
# Can make the fox crouching
# Default: false
crouching: true

Normal Horses (Non-undead):
YAML:
# Sets the horse style
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Horse.Style.html
# Default: random (Vanilla behavior)
style: WHITE
# Sets the horse color
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Horse.Color.html
# Default: random (Vanilla behavior)
color: CREAMY

Llamas:
YAML:
# Sets color
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Llama.Color.html
# Default: random (Vanilla behavior)
color: GRAY

Mushroom cows:
YAML:
# Sets the variant
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/MushroomCow.Variant.html
# Default: random (Vanilla behavior)
variant: BROWN

Pandas:
YAML:
# Sets the main gene
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Panda.Gene.html
# Default: random (Vanilla behavior)
mainGene: WORRIED
# Sets the hidden gene
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Panda.Gene.html
# Default: random (Vanilla behavior)
hiddenGene: PLAYFUL

Parrots:
YAML:
# Sets the variant
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Parrot.Variant.html
# Default: random (Vanilla behavior)
variant: CYAN

Phantoms:

YAML:
# Sets the size
# Available options: whole numbers
# Default: random (Vanilla behavior)
size: 3

Rabbits:
YAML:
# Sets the type
# Available options: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/Rabbit.Type.html
# Default: random (Vanilla behavior)
type: SALT_AND_PEPPER

Wolfs:
YAML:
# Sets whether the wolf is angry or not
# Default: false
angry: true
# Collar color in dye color format
# Default: None
collarColor:
 
Top