Content generated with AI — it may contain mistakes.

ExyliaMines/GuidesUpdated in v1.8.0

Control Fortune in mines

Decide what a Fortune pickaxe does in a mine, and give ranks a higher cap.

Page 9 of 286 min read

Choose how a Fortune pickaxe changes what a mine drops, for the whole server or for one mine, and give ranks a higher cap.

Before you start#

You need at least one mine. The defaults already work like vanilla Minecraft, so you only change something when you want to limit Fortune or make it stronger.

Steps#

Set the server-wide rule

Run /minesadmin, open Settings and pick Fortune. Click Fortune ▸ Mode to step through OFF, VANILLA, LINEAR and CHANCE (the modes are explained below). The same screen has Multiplies, Per level, Lucky per level, Highest level and Silk Touch.

Override it for one mine (optional)

Open the mine, pick Rewards and then Fortune. Left-click a button to go forward, right-click to go back. A setting left on "follow config" uses the server rule from step 1.

Give a rank a higher cap (optional)

Give the rank the permission exyliamines.fortune.<n>, for example exyliamines.fortune.5. Its pickaxes then count up to that level even in a mine capped lower.

Check that it works#

Mine a block with a Fortune pickaxe in the mine. Under LINEAR with the default per-level of 0.25, Fortune III gives about 1.75 times the items. In a mine capped at 0 the pickaxe drops as if it had no Fortune.

The server-wide rules#

Fortune works in a mine on two layers. Vanilla drops are worked out by the server's own loot tables with the tool in hand, so under VANILLA and CHANCE Fortune and Silk Touch behave there exactly as anywhere else. Custom loot (the loot tables, the money they pay, the lucky rewards) is never seen by those tables, so the plugin adds Fortune to it itself. OFF and LINEAR take over the vanilla drops too.

plugins/ExyliaMines/config.yml
yaml
fortune:
  mode: VANILLA
  target: ITEMS
  per-level: 0.25
  lucky-per-level: 0.0
  max-level: -1
  silk-touch: true
KeyDefaultWhat it does
modeVANILLAHow Fortune changes the mine's drops. See the table below.
targetITEMSWhat the mode multiplies: ITEMS (vanilla drops included), MONEY or BOTH. Commands are never multiplied.
per-level0.25What each level adds with LINEAR and CHANCE: 0.25 makes Fortune III ×1.75. Each mine may set its own.
lucky-per-level0.0Each level raises the chance of every lucky reward by this share: 0.1 makes Fortune III ×1.3. 0 leaves them alone.
max-level-1The highest Fortune level counted in mines, for vanilla drops and custom loot alike. -1 counts any level, 0 turns Fortune off.
silk-touchtrueWhether Silk Touch works in mines.

The modes#

ModeVanilla dropsCustom loot at Fortune level L
OFFFortune is taken off the tool: a Fortune pickaxe drops as one without it.Nothing. Custom loot ignores Fortune.
VANILLAAs in Minecraft: ores only.The ore formula: the amount is multiplied by 1, or by 2 up to L + 1, the bonus coming up more often the higher the level — ×2.2 on average at Fortune III, as a diamond ore drops.
LINEAREvery drop, plain blocks included, is multiplied by 1 + L × per-level instead of Minecraft's formula, so a diamond block grows like a diamond ore.The amount is multiplied by 1 + L × per-level, the fraction rolled: ×1.75 at Fortune III with the default, so 1 item becomes 2 three times in four.
CHANCEAs in Minecraft: ores only.Amounts stay as they are; the chance of every line rises instead, to chance × (1 + L × per-level), at most 100.

LINEAR only takes over the vanilla drops when target is ITEMS or BOTH; with target: MONEY they stay as in Minecraft. A tool that keeps Silk Touch drops the block itself, which LINEAR never multiplies.

With target: MONEY or BOTH, VANILLA and LINEAR multiply the money a line pays the same way. CHANCE ignores target: it raises the chance of every line of the table, money and command lines included.

lucky-per-level works whatever the mode, OFF included, and counts the level after the mine's limits.

Each mine's own settings#

Rewards → Fortune on a mine's setup screen opens the mine's Fortune screen, which overrides four of those settings for that mine alone. Mode, highest level and Silk Touch step through their values on a click — left-click forward, right-click back — and back to following config.yml:

ButtonSteps through
ModeFollow config.yml → OFF → VANILLA → LINEAR → CHANCE → follow config.yml
Highest levelFollow config.yml → 0 (no Fortune) → 1 → … → 5 → any → follow config.yml
Per levelLeft-click asks for the share each level adds, from 0 to 10, prefilled with the current one; right-click goes back to config.yml's per-level.
Silk TouchFollow config.yml → allowed → denied → follow config.yml

A setting the mine leaves to the file reads "(default)" next to its value in the menu, so you always see what actually applies; the Fortune button on the rewards page shows all four. target and lucky-per-level are server-wide only.

Rank caps#

exyliamines.fortune.<n> raises the highest level counted for whoever holds it: with exyliamines.fortune.5, a Fortune V pickaxe counts in full in a mine capped at 3. The largest number a player holds wins, and a node below the mine's cap is ignored. It only raises a cap that exists: a mine at 0 keeps Fortune off and a mine at -1 already counts any level. The cap it raises is the mine's own highest level, or max-level when the mine follows config.yml. See Permissions.

How the limits apply#

The highest level and the Silk Touch switch are applied to a copy of the tool the drops are worked out with: a Fortune V pickaxe in a mine capped at 2 drops as a Fortune II one, and a Silk Touch pickaxe in a mine that denies it drops as if it had no Silk Touch. The real pickaxe is untouched and still takes the durability.

With ExyliaSurvivalCore installed, its enchantment limits for the place are applied first, then the mine's.

Silk Touch and experience

A tool that still has Silk Touch after the limits gets no experience from ores, as in vanilla: the ore itself drops instead.

Something missing on this page? Tell us on Discord