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

Was this helpful?

  1. Tutorials

๐Ÿ“œ Placeholder API support

PreviousSkinsNext๐Ÿฒ MythicMobs add-ons

Last updated 1 year ago

Was this helpful?

MCPets 3.0.4 recently implemented support.

The placeholders are referring to the pet of the player that is requesting the placeholder (the owner of a given pet).

The available placeholders are given below (to be surrounded by % or {} depending on your config):

Placeholder
String returned

mcpets_pet_name

Custom name of the pet (given by the player)

mcpets_pet_id

Internal name of the pet (id)

mcpets_pet_distance

Current distance of the pet from the owner

mcpets_pet_health

Current health value

mcpets_pet_max_health

Level's max health value

mcpets_pet_icon_name

Name of the icon of the pet in the summoning menu

mcpets_pet_owner_name

Name of the owner of the pet

mcpets_pet_owner_uuid

UUID of the owner of the pet

mcpets_pet_level_name

Name of the level the pet is currently at (Living pet only)

mcpets_pet_level_index

Index of the level the pet is currently at (Living pet only)

mcpets_pet_exp

Experience of the pet (Living pet only)

mcpets_pet_power

Power modifier of the pet (Living pet only)

mcpets_pet_damage_modifier

Damage modifier of the pet (Living pet only)

mcpets_pet_resistance_modifier

Resistance modifier of the pet (Living pet only)

Placeholder API