Fisherman
How the fisherman minion needs water, how its catch is picked and how to read the weighted loot table.
The fisherman catches fish, and anything else you choose, next to water. You decide what it pulls up with a weighted loot table, or hand the choice to the game's own fishing loot.
Water
settings:
require-water: true
minimum-water-blocks: 4| Key | Default | What it does |
|---|---|---|
require-water | true | Whether the minion only fishes when there is water in its area. With it off, it fishes anywhere. |
minimum-water-blocks | 4 | How many water source blocks must be in the area before it fishes. |
Only still water source blocks count. Flowing water and waterlogged blocks do not. The area is the range of the current level in every direction and height blocks up and down (2 in the shipped file). The block the minion stands in and the block under it are not part of its area.
A level 1 fisherman has a range of 1, so a ring of water around it, or a small pond next to it, is enough to reach four source blocks.
Loot mode
settings:
loot-mode: CUSTOM| Value | What the catch is |
|---|---|
CUSTOM | One entry from the weighted loot table in the type file. This is the default. |
VANILLA | The game's own fishing loot, the same fish, junk and treasure a player gets with a rod. |
The VANILLA fallback
If the game's fishing loot cannot be used on your server, every fisherman switches to its CUSTOM table until the next restart, and one warning in the console says why. That is why the loot table is still read when loot-mode is VANILLA, so keep it filled in.
In VANILLA mode, the rod's Luck of the Sea level raises the chance of treasure:
settings:
tool:
material: FISHING_ROD
enchantments:
luck_of_the_sea: 0The rod has no effect on the CUSTOM table.
The CUSTOM loot table
Each entry under settings.loot is one possible catch. Every action, one entry is picked and given in an amount between min-amount and max-amount.
settings:
loot:
cod:
weight: 50
material: COD
name: ""
lore: []
min-amount: 1
max-amount: 2
treasure:
weight: 5
material: NAUTILUS_SHELL
name: "<aqua>Nautilus Shell"
lore:
- "<gray>Pulled up from the deep."
min-amount: 1
max-amount: 1| Key | What it does |
|---|---|
weight | How likely this entry is compared to the others. Must be above 0, or the entry is skipped. |
material | The item given. |
name | A custom name for the item. Leave it empty to keep the normal name. |
lore | Lines shown under the name. |
min-amount | The smallest amount given in one catch. |
max-amount | The largest amount given in one catch. |
An entry also accepts custom-model-data, item-model, itemsadder and saved-item, the same as any other item in the plugin's files.
Weights are not percentages
A weight is not a chance out of 100. The chance of an entry is its weight divided by the total of all weights. The shipped table adds up to 91:
| Entry | Material | Weight | Share | Amount |
|---|---|---|---|---|
cod | COD | 50 | 54.9% | 1 to 2 |
salmon | SALMON | 25 | 27.5% | 1 to 2 |
pufferfish | PUFFERFISH | 10 | 11.0% | 1 |
treasure | NAUTILUS_SHELL | 5 | 5.5% | 1 |
ancient-pearl | HEART_OF_THE_SEA | 1 | 1.1% | 1 |
So adding a new entry with weight: 9 brings the total to 100 and lowers every other entry's share a little. To make one catch twice as likely as another, give it twice the weight. Weights can be decimals, such as 0.5.
If no entry in the table is usable, a CUSTOM fisherman catches nothing, and the console warns you when the file loads.
The catch list in the menu
The fisherman's minion menu has a Catches button (slot 24 in the shipped gui.yml). Hovering it lists every entry of the CUSTOM table with its real share, worked out from the weights the same way as the table above, so players can see their odds without reading the file. When the type uses VANILLA loot, it shows a single line saying the game's own fishing loot is used.
The look of each line is set in gui.yml under minion.items.catches, where %item% is the entry name and %chance% its share.
Experience
Each catch is worth 1 to 6 experience. It is only kept when output.collect-experience is on in config.yml, and players collect it from the minion menu. See Hunter for how stored experience works.
Related pages
- Minion type files to make a second fisherman type with a different table
- Filters to throw away the catches you do not want
- Levels and upgrades for range, speed and storage