-
Notifications
You must be signed in to change notification settings - Fork 58
petfinder.json
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 }
]
}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 }
]Since Pets 1.1.0 you can define several kinds of egg in plugins/X-Prison/addons/Pets/eggs.yml, each with its own icon, pet pool and rarity odds. Name one in the command to drop it instead of the default egg — the egg's own rarity-weights then decide the outcome, so a premium egg can be made unable to roll the low rarities at all:
"commands": [
{ "commands": ["petsadmin give-egg %player% basic 1"], "chance": 90 },
{ "commands": ["petsadmin give-egg %player% legendary_egg 1"], "chance": 10 }
]The egg id, the rarity and the amount are all optional and are matched by what they are rather than by position, so give-egg %player% legendary_egg pristine 1 is also valid — and every command written for Pets 1.0.x keeps working unchanged.
- Currencies
- Ranks
- Prestiges
- Rebirths
- Mines
- AutoSell
- AutoMiner
- Enchants
- Pickaxe Levels
- Pickaxe Skins
- Pickaxe Quality
- Gangs
- Multipliers
- Blocks
- Bombs
- History
- Mining Stats
- Nicknames
- Battle Pass
- Quests
- Daily Rewards
- config.yml
- autominer.yml
- autosell.yml
- block-rewards.yml
- enchants.yml
- currencies.yml
- multipliers.yml
- ranks.yml
- prestiges.yml
- pickaxe-levels.yml
- pickaxe-skins.yml
- pickaxe-quality.yml
- gangs.yml
- mines.yml
- bombs.yml
- blocks.yml
- history.yml
- mining-stats.yml
- rebirths.yml
- battlepass.yml
- quests.yml
- dailyrewards.yml
- efficiency.json
- fortune.json
- unbreaking.json
- haste.json
- speed.json
- fly.json
- nightvision.json
- jumpboost.json
- autosell.json
- tokenfinder.json
- gemfinder.json
- salary.json
- charity.json
- blessing.json
- gangvaluefinder.json
- prestigefinder.json
