Drops

Two separate systems live in drops.yml. Bonus tables hand out items or run commands. Farmpoint rules hand out points. They roll independently, so a single block can do both, either, or neither.

Bonus tables

Each table names a block list, a chance, and what a winning roll does.

tables:
  ores:
    blocks:
      - DIAMOND_ORE
      - DEEPSLATE_DIAMOND_ORE
    chance: 5.0
    mode: items
    items:
      lucky-diamond:
        material: DIAMOND
        amount: 1
        name: "&bLucky Diamond"
        lore:
          - "&7Dropped by CoreJobs."
Mode What a winning roll does
items Gives the items listed under items
commands Runs the commands under commands from console, {player} replaced
none Rolls and does nothing
none is for tuning

Set mode: none to leave a table in place while you work out the chance, or to switch a table off without deleting it.

chance is a percent from 0 to 100, checked once per block. Tables roll on their own, so a block listed in two tables gets two rolls.

Farmpoint rules

Separate from the tables so you can hand out points without also dropping items.

farmpoints:
  enabled: true
  rules:
    rare:
      blocks:
        - DIAMOND_ORE
        - EMERALD_ORE
        - ANCIENT_DEBRIS
      chance: 100.0
      min: 5
      max: 15

A winning roll awards a random amount between min and max, both included. A chance of 100 makes every matching block pay.

These fire per block, not per break

A multi-stage plant that counts sixteen blocks rolls sixteen times. Check what a chorus tree or a tall cane stack is worth before you raise a chance.

Prestige and drops

Two keys in jobs.yml connect prestige to this file:

Key Default Effect
scaling.farmpoints 1.0 Multiplies the points awarded, per prestige earned
scaling.drop-chance 1.0 Multiplies the roll chance, per prestige earned

Both are flat by default, so a prestige 8 miner gets the same points per ore as a brand new one. Chances still cap at 100 percent.

Turning drops off

Switch Effect
enabled: false at the top of drops.yml No bonus drops and no farmpoints from blocks
farmpoints.enabled: false Bonus tables still roll, no points from blocks
Placed blocks never roll

With anti-placement-dupe: true, a block the player placed by hand pays no drops when they break it again. See Jobs.

Next

The full file with every field is on drops.yml.