FishingLoot 5.46.0
The vanilla fishing loot table (gameplay/fishing): fish (weight 85, quality -1), junk (10, quality -2) and treasure (5, quality +2, only in open water). Each level of Luck of the Sea adds the quality to the weight, so it trades fish and junk for treasure. Treasure bows, rods and books are enchanted like a level 30 enchanting table.
Simplification: bamboo (jungle only junk) is not in the table, and treasure enchantments (Mending, Frost Walker...) are not rolled on books.
Constants
CATEGORY_FISH
php
public const CATEGORY_FISH = "fish"CATEGORY_JUNK
php
public const CATEGORY_JUNK = "junk"CATEGORY_TREASURE
php
public const CATEGORY_TREASURE = "treasure"Methods
categoryWeights()
php
public static function categoryWeights(int $luck, bool $openWater) : arrayWeights of the three categories for the given luck.
fish()
php
public static function fish() : \pocketmine\item\Itemjunk()
php
public static function junk() : \pocketmine\item\Itemroll()
php
public static function roll(int $luck, bool $openWater) : \pocketmine\item\Itemtreasure()
php
public static function treasure() : \pocketmine\item\Item