Skip to content

petfinder.json

Jan Kluka edited this page Jul 19, 2026 · 2 revisions

Shipped by the Pet Finder addon. Requires the Pets addon to be installed — without it the reward commands do nothing.

The rarity ids used in commands must match the keys under rarities: in plugins/X-Prison/addons/Pets/config.yml. If you rename, add, or remove a rarity there, update this table to match.

chance at the top level is the per-block-break proc chance, in percent. The chance inside each commands entry is that entry's relative weight once the enchant has procced.

{
  "class": "dev.drawethree.xprison.enchant.PetFinderEnchant",
  "id": 103,
  "rawName": "petfinder",
  "name": "<light_purple>Pet Finder</light_purple>",
  "enabled": true,
  "increaseCostBy": "baseCost * pow(1.05, level)",
  "maxLevel": 1000,
  "chance": 0.000025,
  "initialCost": 1000,
  "pickaxeLevelRequired": 1,
  "currency": "GEMS",
  "prestige": {
    "enabled": false,
    "maxPrestige": 5,
    "requiredActivationsFormula": "1000",
    "multiplierPerPrestige": 0.1
  },
  "refund": {
    "enabled": true,
    "guiSlot": 32,
    "percentage": 50.0
  },
  "gui": {
    "name": "<light_purple>Pet Finder</light_purple>",
    "material": "TURTLE_EGG",
    "customModelData": 0,
    "slot": 32,
    "description": [
      "<gray>Discover pet eggs</gray>",
      "<gray>while mining.</gray>"
    ]
  },
  "commands": [
    { "commands": ["petsadmin give-egg %player% common 1"], "chance": 45 },
    { "commands": ["petsadmin give-egg %player% rare 1"], "chance": 27 },
    { "commands": ["petsadmin give-egg %player% legendary 1"], "chance": 15 },
    { "commands": ["petsadmin give-egg %player% mythical 1"], "chance": 8 },
    { "commands": ["petsadmin give-egg %player% masterful 1"], "chance": 4 },
    { "commands": ["petsadmin give-egg %player% pristine 1"], "chance": 1 }
  ]
}

Dropping random-rarity eggs instead

Replace the whole commands block with a single entry that omits the rarity. The egg's rarity is then rolled at hatch time using the weight: values in the Pets addon config:

"commands": [
  { "commands": ["petsadmin give-egg %player% 1"], "chance": 100 }
]

XPrison Logo

General

Modules

Default Configs

Enchant Configs — Passive

Enchant Configs — Currency Rewards

Enchant Configs — Key & Item Rewards

Enchant Configs — Area of Effect

Enchant Configs — Multipliers

Enchant Configs — Templates

Enchant Configs — Addons

Addons

Support

For Developers

Others

Clone this wiki locally