Skip to content

Bait files

Any item can be bait. Each file in data/<namespace>/bait/ defines one:

json
{
  "item": "minecraft:sweet_berries",
  "minTicks": 1400,
  "maxTicks": 2400,
  "luck": 0.5
}
FieldTypeMeaning
itemitem idThe item used as bait
minTickspositive integerShortest wait between catches, in ticks (20 ticks = 1 second)
maxTickspositive integerLongest wait, at least minTicks
lucknumber, optional (default 0)Passed to the catch roll. Positive values favour treasure, negative values favour junk.

The wait is picked at random between minTicks and maxTicks, including both ends. For the maths behind luck, see how luck works.

Changing built-in bait

Overwrite a file at the same path, for example data/fishtrap/bait/worm_bait.json, to change a built-in bait. If two files use the same item, the one whose file id sorts last wins, and the server log notes it.

Current values

These are the values the mod ships with:

BaitCatch timeAverageLuck
Plant Bait120–240 s180 s-1
Worm Bait80–160 s120 s0
Fish Chum60–100 s80 s+1
Glow Bait45–70 s57.5 s+2
Prismarine Lure30–45 s37.5 s+3
Nautilus Lure20–30 s25 s+5

Released under the MIT License.